TSLab
TSLab.proSupportTSLab LiveTSVerse
Eng
Eng
  • TSLab trading platform
  • For newbies
    • A beginner's guide
      • Purchasing a license key for a data provider
      • An example of connecting text quotes
      • Example of connecting a data provider to a broker / exchange
      • An example of creating a script in TSLab
      • An example of creating a trading algorithm in TSLab
  • Installing TSLab
    • TSLab Installation Guide
      • System requirements
      • TSLab Installation manual
    • Update TSLab
      • Preparing for update
      • Release build
      • Nightly build
    • Restarting the TSLab program
    • TSLab Changelog
      • TSLab 2.1 Changelog
      • TSLab 2.2 Changelog
        • 2.2.26.0 - 2024/01/31
        • 2.2.25.0 - 2024/01/17
        • 2.2.24.0 - 2024/12/04
        • 2.2.23.0 - 2024/09/19
        • 2.2.22.0 - 2024/08/30
        • 2.2.21.0 - 2024/05/17
        • 2.2.20.0 - 2024/05/15
        • 2.2.19.0 - 2024/02/21
        • 2.2.18.0 - 2024/02/09
        • 2.2.17.0 - 2023/11/16
        • 2.2.16.0 - 2023/10/20
        • 2.2.15.0 - 2023/10/13
        • 2.2.14.0 - 2023/08/11
        • 2.2.13.0 - 2023/05/12
        • 2.2.12.0 - 2023/02/28
        • 2.2.11.0 - 2022/12/15
        • 2.2.10.0 - 2022/10/27
        • 2.2.9.0 - 2022/09/16
        • 2.2.7.0 - 2022/06/23
        • 2.2.5.0 - 2022/04/29
        • 2.2.3.0 - 2022/04/01
        • 2.2.2.0 - 2021/12/29
  • Data providers
    • Cryptocurrency exchanges
      • Binance Cryptocurrency Exchange
        • Registration on Binance
          • Registration on Binance Exchange website
          • Configure Binance Wallet
          • Creating a Binance API Key for TSLab
          • Binance. Transferring USDT from wallet to wallet without commission
        • Registration on TSLab [Binance]
          • Account registration on the TSLab website [Binance]
          • Creating a free Binance Data Provider for TSLab
        • Setting up a Binance Data Provider in TSLab
        • TSLab Binance Edition
          • Starting the program
          • Configuring the Binance Data provider
      • Bitget Cryptocurrency Exchange
        • Registration on the Bitget official website
        • Creating a Free Bitget Data Provider
        • Configuring the Bitget Data Provider in TSLab
      • ByBit Cryptocurrency Exchange
        • Registration on the ByBit website
        • Creating a free ByBit data provider
        • Configuring the ByBit Data Provider in TSLab
      • Deribit Cryptocurrency Exchange
        • Deribit data provider settings
        • Deribit. Frequently asked questions and useful information
        • Deribit. Possible problems and solutions
        • Deribit Margin Requirements Calculation
        • An example of a ready-made script for Deribit
      • Kucoin Cryptocurrency Exchange
        • Registration on the KuCoin official website
        • Creating an API key on the KuCoin website
        • Issuing a free license for KuCoin Data Provider
        • Setting up the KuCoin data provider in TSLab
      • OKX Cryptocurrency Exchange
        • Setting up an OKX account
          • Registration on the OKX website
          • OKX API Key creation
          • Issuing a free license for OKX Data Provider
          • Setting up the OKX data provider in TSLab
          • OKX demo account
        • TSLab OKX Edition
          • First launch of TSLab OKEx Edition
          • Configuring the OKEx data provider
          • Trading in TSLab [OKEx]
          • OKEx Demo
    • Historical Data
      • YahooFinance
      • Offline data provider in CSV format
      • An example of connecting text quotes
      • Text files with historical data
    • Interactive Brokers
      • Getting Started with Interactive Brokers Data Provider
        • Installing and configuring the Trader Workstation (TWS) terminal
        • Installing and configuring the IB Gateway terminal
      • Features of working with Interactive Brokers data provider
      • Known issues for Interactive Brokers Data Provider
      • Loading instruments in a package
  • Working with the program
    • Main menu
      • File
        • Program Settings
      • View
        • Chart
          • Features of working with the Chart in TSLab
          • Chart Controls
        • Depth of Market
        • Quotes
        • All Trades
      • Data
        • Data Providers window
        • Add online data provider
        • Add offline data provider
      • Lab
        • Scripts window
          • Script Container
      • Trading
        • Accounts window
        • Positions window
        • My trades window
        • My orders window
          • Move orders and deals to an agent
        • Autotrading Control Center window
          • Agent window
          • Agent trading settings
            • Event recalculations
            • Slippage
          • "Forget errors" of the agent
        • Orders manager
          • Linking a manually completed order to an agent
        • Agent Control Center window
      • Tools
        • Data backup and recovery
        • Notifications manager
          • Notifications Manager Filters
          • Reference List of Service Message Numbers
          • Example of setting up notifications for Gmail
        • Export to Excel
    • Common interface
      • Status bar
      • Tab
      • Workspace
      • Spreadsheets
    • Visual editor
      • Toolbar
        • Compress and Decompress Blocks
      • List of visual blocks
        • Service Elements
        • Cycles
        • TSChannel
      • The syntax of the Formula, Boolean expression and String expression blocks.
    • Autotrading Control Center
      • Agent trade settings
        • Agent trade settings - Placing orders
        • Agent trading settings - Script execution
        • Agent trading settings - Events
    • TSLab API
      • API Introduction
        • Visual Studio Installation
        • First script (API)
        • First Indicator (API)
        • Script Debugging
        • Logging
      • Writing scripts on the API
        • Trading Instrument Data
        • Working with positions
        • List of deals
        • The order queue
        • Standard Indicators and Handlers
        • Script parameters
        • Caching
        • Local and global cache
        • Multiple Tools
      • Writing indicators on the API
        • Stream indicator
        • Bar indicator
        • Pre-processed indicator
        • Indicator with multiple calculations
      • Additional features
        • The ability to create your own optimizers *
        • C ++ / CLI script
        • API Control Panel
        • Result from script
        • * Оптимизация. Пул массивов.
      • Examples
        • Get script results
        • Get script parameters
        • Get script and agent settings
        • Get position balance (net worth)
        • An example of a strategy Breakout of the Donchian channel
        • Example of a Moving Average Crossover strategy
        • Indicator example
        • How to speed up the processing of a script on the API
        • Links to examples
      • Question - Answer
        • HandlerParameter Attribute
    • Optimization
      • Insufficient load on a multicore processor
  • Examples of scripts and indicators
    • Examples of algorithms and indicators
    • Examples of implementing strategies in TSLab
      • A trading system based on indicator CCI
      • A trading system based on Standard Deviation
      • A trading system based on Aroon
      • A trading system based on ADX and DI technical indicators
      • A trading system based on the RSI indicator
      • Example of a trading strategy without parameters
  • TSLab website
    • TSLab Support Service
      • Memory dump of TSLab application
      • TSLab program log files
Powered by GitBook
LogoLogo

Мы в соцсетях

  • Группа в Telegram
  • Новости TSLab
  • Vkontakte
  • YouTube канал TSLab Live

Наши веб-сайты

  • TSLab
  • Служба поддержки
On this page
  • Configuring the OKEx Demo Account
  • Issuing a license key for the OKEx data provider
  • Configuring the OKEx Demo Data Provider
  • Entering the license key

Was this helpful?

Export as PDF
  1. Data providers
  2. Cryptocurrency exchanges
  3. OKX Cryptocurrency Exchange
  4. TSLab OKX Edition

OKEx Demo

Last updated 3 years ago

Was this helpful?

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.

Trade System LaboratoryTrade System Laboratory
Logo