OKEx Demo

Configuring the OKEx Demo Account

The TSLab development team recommends to start learning the TSLab OKEx Edition program on an OKEx demo account. To switch your OKEx account into demo mode, go to the official OKEx exchange page and log in.

On the OKEx website, select the menu item: Assets - Start Paper Trading

To connect the TSLab terminal to the OKEx demo server, you need to create an API key. In the My Profile menu, select Paper trading API.

On the API page, click on the Create V3 Paper Trading API Key button.

On the page that opens, you need to fill in the fields:

  1. Label - the name of a new API key

  2. Passphrase - API key password. Save your password, because if you lose it, you will need to create a new API key.

  3. Permissions - to trade through the TSLab platform, select the items: Read, Trade.

  4. Enter the two-factor authentication code generated in your phone app.

Click on the Confirm button

After the new API key is created, you can view the key details in the Account - API section.

For more information, you need to click on the View button and then enter the Passphrase and the 2FA code.

Issuing a license key for the OKEx data provider

In order to issue a free license key for the TSLab program, go to the TSLab website.

In your TSLab user’s Account (Cabinet) select the Shop menu item. A list of available data providers will be displayed on the site page.

Select OKEx exchange from the list of data providers. To continue, click on the Details green button located opposite the selected tariff.

On the page that opens, you need to place an order for receiving a TSLab license key:

  • In the API Key (public) field, you need to enter a unique API key created in your personal OKEx cryptocurrency exchange account.

Attention! The received license will be valid only for the specified API Public Key. If you enter the wrong number, the data provider will not work!

  • Move the slider to select the license term (validity period).

  • Confirm your agreement with the User Agreement. To register a license key, click on the Get for free button.

After the license key is issued, a letter with the license key for the data provider in the TSLab program will be sent to your mail. You can also find license information in your personal account on the TSLab website. To do this, go to the Contracts page.

For detailed information about the purchased license in the Contracts window, click on the ellipsis in the line with the selected license.

Configuring the OKEx Demo Data Provider

Launch the TSLab program, wait until the loading of the software components and the Trader's Workspace is complete. In the upper left corner of the Workspace you will see the Data Providers window.

Double-click on the DEMO Okex Spot data provider.

In the Data provider settings window, fill in the required fields:

  1. API public - public API key created in your OKEx account;

  2. API secret - secret API key created in your OKEx account;

  3. Pass Phrase - passphrase to the API key.

To trade on a demo server, you need to select items:

  • Okex.SimulatedTrading - trading on the OKEx Demo Server

  • Okex.PaperTRealDataForSimulatedTradingrading - Enabling the use of the real market quotes, for simulated trading.

Additional settings (optional):

  • Use local time - use the time specified in your regional computer settings

  • Subs. to trades with quotes - Enables subscription to trades with instruments that have ever been requested from the View | Quotes

  • EnableDebugLogs - Enabling maximum logging of the data provider. Enable only if asked by TSLab support team.

  • Orders blocking timeout (sec.) - Blocks orders placement for a specified time interval after establishing a connection with a data provider.

  • Cache settings - The cache storage period settings allow you to specify how long your executed orders, deals and canceled orders will be stored.

  • Offline orders/Trades visibility - Enables the visibility of your deals in agents while the data provider is off.

To confirm the entered data, click on the OK button.

Entering the license key

In the Data Providers window, select the DEMO Okex Spot data provider. Click on the Key button located to the right.

In the Key window that opens, enter the key created for the data provider in your TSLab account. Click on the OK button.

After the key is entered, the button for launching the data provider will become available to you in the Operation column. Click the button to establish a connection.

The program will inform you about the connection status in the Data Providers window:

  • red color of the button means connection establishment error,

  • yellow color of the button means connection establishment process,

  • green color means that connection have been established and you can carry out trading operations.

Last updated