Connecting Os Engine to Deribit Api.

Connecting Os Engine to Deribit Api.

In this article, we will learn how to connect OsEngine to the cryptocurrency exchange Deribit through the Api. The exchange does not have a large number of tickers, but it is very technologically advanced. It is very popular among options traders.

Register via the link and get a 10% discount on fees!

 

1. Creating API keys on the exchange.

The connector can connect to a real server (real trading) and a test server.

To connect to the exchange, you need to create API keys.

Click add a new key.

Fill in the fields as shown in the example. You can set read_write everywhere, the question is only about security (money can be withdrawn through the API if attackers get hold of the keys), name at your discretion (you can leave it blank). And press the Create new API key button at the bottom.

To view the previously created key, you need to click on the load button, here:

Then save the ClientId and Client Secret to your computer. This data will be needed to enter into OsEngine. These are the access keys to the Deribit Api.

 

2. Don't forget about proper collateral for futures types.

Different currencies are needed as collateral for different contracts. Using bitcoin contracts as an example:

1. BTC-Perpetual - you need to have BTC in your account to trade them.

2. BTC-USDC-Perpetual - you need to have USDC in your account to trade them.

3. BTC-USDT-Perpetual - you need to have USDT in your account to trade them.

 

3. Open OsEngine and go to the connection settings.

In the main menu, go to Bot Station Light.

Next, go to the server connections and select the "Deribit" connection:

An interface for connecting to the Deribit exchange will appear:

1. Enter the Client ID in the first field, copied from the API keys page.

2. Enter the Client Secret in the second field, copied from the API keys page.

3. In the third field, choose the Real or Test server from the list.

4. Click on the "Connect" button!

 

4. Enable any robot and start trading!

 

IMPORTANT NUANCES

Futures on the exchange are divided into inverse (where collateral is in the coin) and linear. Inverse futures have collateral in BTC and ETH (BTC- PERPETUAL, ETH- PERPETUAL, etc). Linear futures have collateral in USDC and USDT (BTC_USDC-PERPETUAL, ETH_USDT-PERPETUAL, etc.).

The connector also supports trading in the SPOT section.

OsEngine supports the terminal.