Skip to main content

Trading account

System environments

The information on this page is applicable to Production environment of the system. Authorization in Test environment comes with some differences. For details about authorization in Test environment, see the corresponding article.

Most requests to the trading system API provide access to data related to a certain portfolio and the ability to perform operations associated with it. To authorize the requests with appropriate access rights, bind to the Developer account a trading account using which you will interact with the trading system.


Getting account

Trading account means an account of the ALOR Broker client.

To get the ability to make transactions with real financial instruments in Production environment, open a brokerage account.


Binding account

To bind a trading account to the developer account, follow the steps below:

  1. Log in to your developer account on the https://alor.dev portal
  2. Go to the API Access Tokens page
  3. Enter your trading account login and password in the relevant fields and click Bind

If the credentials are correct, a list of previously created Refresh Tokens will be displayed on the page and the Create Token button will appear to create new ones.


Unbinding account

Only one trading account can be bound to a developer account simultaneously, so the list of portfolios available for use is limited to the portfolios of this account. To bind another trading account with a different list of portfolios, you must first unbind the previous one.

To unbind a trading account, follow the steps below:

  1. Log in to your developer account on the https://alor.dev portal
  2. Go to the API Access Tokens page
  3. Click Unbind Trading Account below the list of Refresh Tokens

This will clear the list of tokens on the page and allow you to bind a new trading account. All Refresh tokens created for the previous trading account will remain active and can be used to create Access tokens.


Features and limitations

Note the following features and restrictions when binding trading accounts to a developer account:

  • One trading account can be bound to multiple developer accounts simultaneously
  • One developer account can have only one trading account bound at a time
  • Tokens created for a trading account are available to all developer accounts to which this trading account is bound. It is not possible to restrict token usage for individual developer accounts bound to a trading account
  • Unbinding a trading account from a developer account does not affect the functionality of created tokens

What's next?

Additionally, we recommend reading the following related articles: