Hoppa till huvudinnehållet
Den webbläsare du använder stöds inte längre. Klicka här för att se vilka rekommenderade webbläsare som stöds.

How do I log in to the Nordnet External API?

You can log in to the Nordnet External API by using the /api/2/login/start and /api/2/login/verify endpoints. See the Getting started guide for a detailed description.

How do I log in to the Nordnet External Feeds?

To log in to the Nordnet External Feeds, you must first log in to the Nordnet External API and then send a login request to the feed. Documentation can be found here.

Where can I find the accid of my default account?

Fetch all your accounts from the /api/2/accounts endpoint. The default account’s accid can be found in the list of accounts where the default field is set to true.

How do I find the API key to use when logging in

The API key is generated by Nordnet when you upload your public key to the Nordnet web. See the Getting started guide for information about how to do this.

If you have already uploaded a public key, you may find it’s corresponding API key value again as follows:

  1. Log in to Nordnet web, go to your profile page My pages -> Settings -> My profile, and find the API key setting under the Security section.

  2. Click the "Edit" button.

    If you have uploaded a public key, you will now see your API key along with the date of the upload.

How do I revoke/replace a public key

  1. Log in to Nordnet web, go to your profile page My pages -> Settings -> My profile, and find the API-key setting under the Security section.

  2. Click the "Edit" button.

    If you have uploaded a public key, you now will see the corresponding API key along with the date of the upload.

  3. You can only have one public key active at a time, so before uploading a new key you must revoke the existing one by clicking the "Revoke" button.

  4. Confirm by clicking "Revoke" in the pop-up window.

  5. Proceed to add a new key as described under in the Getting started guide.

How do I find the tradable ID for an instrument?

The tradable ID consists of a market ID and an identifier of the instrument on that market. The market ID is an integer, and the identifier is a string. To find the data for an instrument, you can search for it using the /api/2/main_search endpoint.

From the response from the search above you can retrieve the field named instrument_id, which you then can use with the /api/2/instruments/{instrument_id} endpoint. This should (amongst other data) return the fields market_id and identifier which can be used when for instance placing an order or subscribing to events on the public feed.

How do I place an order?

To place an order, use the endpoint /api/2/accounts/{accid}/orders.

Example body for creating order:

{"volume":1,
 "side":"BUY",
 "order_type":"LIMIT",
 "currency":"SEK",
 "price":123.45,
 "market_id":11,
 "identifier":"101"}

How do I fetch the latest price on an instrument?

Price information can be received from the public feed. You need to log in to the public feed and subscribe to price events for the instrument in question. For details on this, please refer to the feeds documentation.

Example subscribe command:

{"cmd":"subscribe",
 "args":
   {"t":"price",
    "m":11,
    "i":"101"}}

How do I fetch order depth on an instrument?

Order depth can be received from the public feed. You need to log in to the public feed and subscribe to order depth events for the instrument in question. For details on this, please refer to the feeds documentation.

Example subscribe command:

{"cmd":"subscribe",
 "args":
   {"t":"depth",
    "m":11,
    "i":"101"}}

Do you recommend the javascript repos that exist on GitHub?

We do not endorse any libraries for communicating with the API. We do provide some example code. Please note the disclaimer.

Are there any limitation to which markets to trade on?

Nordnet’s entire offer of exchange-traded instruments is available.

Are there any limitation to realtime prices?

Nasdaq Nordic is available as realtime prices. Oslobörsen only for Norwegian trial customers.

Main search is a free text search where you can search for e.g. identifiers by name, symbol, isin etc that you then can use to subscribe in publicfeed or place orders. As a few examples, you could search broadly for Ericsson main_search?query=ericsson or Ericsson, but only Bull certificates main_search?query=ericsson%20bull

You can add how many results you want to get in your response by setting a limit (6 in the examples above):

main_search?query=ericsson%20bull&limit=20
main_search?query=ericsson%20bull&limit=6

You can limit what type you want in your response:

main_search?query=ericsson%20bull&search_space=INSTRUMENTS
main_search?query=ericsson%20bull&search_space=ALL

Or Instrument groups:

main_search?query=ericsson&instrument_group=ETC