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
  • Connection to the Deribit exchange
  • Registration on the Deribit exchange website. Creating an API key
  • Installing the TSLab program
  • Creating and configuring the Deribit data provider in the TSLab
  • Adding a new Deribit data provider
  • Deribit data provider settings
  • Entering a license key for the Deribit Data Provider

Was this helpful?

Export as PDF
  1. Data providers
  2. Cryptocurrency exchanges

Deribit Cryptocurrency Exchange

Deribit Exchange is a professional cryptocurrency options and futures trading platform.

Last updated 2 years ago

Was this helpful?

Attention! A powerful computer is required to work with options!

Attention! If you expect breaks in work, then it is not recommended to build strategies on tick or second charts.

Connection to the Deribit exchange

In order to access the trading servers of the Deribit exchange through the TSLab platform, you need to:

  1. Open an account on the Deribit exchange. Detailed information on the terms of service and tariffs can be found on the official website of the Deribit exchange:

  2. Create an API key. The API Key is required to link the TSLab trading platform with your Deribit account.

  3. Download and install the TSLab trading platform. You can download the latest version of the TSLab program by clicking on the link:

  4. Subscribe to the Deribit Data Provider. To subscribe, you need to register on the TSLab website. In the User's Cabinet, open the Store section. Select Deribit Data Provider and subscribe.

  5. Set up a Data Provider. To connect to the trading servers of the Deribit exchange, you need to configure the data provider in the TSLab program

Registration on the Deribit exchange website. Creating an API key

Register an account on the Deribit exchange website:

Open the account settings menu located in the upper right corner. Select My Account.

Go to the API section. In the menu that opens, you need to create a new API key. Click the Add New Key button

Set the API key settings as shown in the image below

After the new keys have been created, the Client ID (Client ID) and Client Secret (Client Secret) will be available to you. This data will be required to issue a license key in the TSLab personal account, as well as when setting up the Deribit data provider in the program itself

Installing the TSLab program

Download and install the TSLab program on your computer:

Note! TSLab program supports Windows operating system. TSLab requires Microsoft .NET 6 to work

Creating and configuring the Deribit data provider in the TSLab

Please watch the video from our partners, which describes the process of creating and configuring the Deribit data provider step by step

Adding a new Deribit data provider

To get started with TSLab, you need to select a data provider.

Method №1

Open the Providers window. In the Main Menu, select Data - Data Providers

Click on the Add button

Select Online data and click Next

Method №2

In the Main Menu, select Data - Add online data provider

Select the Deribit data provider from the list and give it a name under which it will be saved in your list of providers. Click on the Next button

Deribit data provider settings

In the Data provider settings, you need to enter the Client ID (API Public) and API Secret created in the Personal Account on the Deribit exchange website.

Menu item
Description

Max of requested trades

The number of requested trades in one request. The default is 50000.

Use local time

It is advisable to set local time in cases where several data providers are connected to the program.

Use PostOnly orders

Optional. Additional exchange settings.

Cache settings

For canceled applications 7 days, you can set less.

If you are connecting a test circuit of the exchange, change the URL:

  • By default, the program connects to the trading server https://www.deribit.com

  • Test circuit https://test.deribit.com

Please pay attention! The Client ID for the test server is different from the Client ID for the main trading server

Starting from version 2.1 of the program, we calculate all indicators of scripts and agents in bitcoins. In addition to MFE and MAE for the correct calculation of stop losses in scripts. Enabled "Initial deposit" support in portfolio simulation in agents (script properties).

Entering a license key for the Deribit Data Provider

In the Data Providers window, select the created data provider and click the Key button.

Enter the key created in your TSLab personal account (TSLab Personal Account - Contracts) and click the OK button.

After the key is entered, you will be able to access the button to launch the data provider 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 an error in establishing connection,

  • yellow color means that the connection is in progress,

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

Check the box in the Status bar column to activate the slider button in the Status bar. The color of the slider button in the Status bar also informs you about the connection status.

Using the Schedule manager menu, you can configure the automatic start of the data provider on the day and time you specify.

Note. To start the data provider automatically, the TSLab application must be running.

To configure the automatic start of the provider, click on the button with three dots in the Schedule manager column.

In the Edit Schedule window that opens, fill in the data for the provider's automatic launch schedule. Click on the OK button

To start the created schedule, in the Providers window, move the Schedule manager slider to the extreme right position. In this case, manual control of the launch of the data provider will be blocked.

You can read more about the TSLab installation process in the section.

Note. You can also load Historical data into the program. You can read more about working with Historical data in the section

TSLab Installation
Historical data
https://www.deribit.com/
https://www.tslab.pro/download
LogoCrypto Futures and Options Exchange - Deribit
LogoTrade System LaboratoryTrade System Laboratory
Page cover image