Deribit Trade Connector
Features
crypto-deribitConnector Key✗
Order Status Request
✓
Cancel On Disconnect
✓
Commission
✓
Post Only
✗
Fast Cancel
✗
Fast Replace
Notes
Quantity and Price Precision
Important: Deribit implicitly rounds amount and price if they do not meet instrument increments.
Rate Limits
To maintain fair and stable access to our API, Deribit uses a credit-based rate limiting system.
Order Quantity
For perpetual and futures the order size is in USD units, for options it is amount of corresponding cryptocurrency contracts, e.g. BTC or ETH.
Market Orders
Deribit allows only GOOD_TILL_CANCEL Time In Force for MARKET orders.
Iceberg Orders
Deribit supports setting display quantity both for order submissions and replaces.
Error codes
https://docs.deribit.com/articles/errors
"invalid_credentials"
Possible cause:
- Wrong local time. If WS auth works but HTTP auth fails with "invalid_credentials" then it's possible that local machine has incorrect time (diff from Deribit is greater than 1 minute).
- Temporary ban. May be caused by rate limit violation OR by just many recent requests that finished with error (any error).
Symbology
Instrument list available via the following request: https://deribit.com/api/v2/public/get_instruments?currency=BTC
where currency is BTC, ETH, or USDT
Configuration
Connector settings
| Parameter | Default Value | Description |
|---|---|---|
| rejectPostOnly | true | If an order is considered post-only and this field is set to true then the order is put to the order book unmodified or the request is rejected. Otherwise, if the new price would cause the order to be filled immediately (as taker), the price will be changed to be just below the spread. |
| optionAdvanced | Switches price units for options. Possible values: USD, IMPLV |
Supported order attributes
| Key | Description |
|---|---|
| 18 | 6 value used for post only orders submission. |
| 6001 | Advanced option order type. (Only for options). Possible value: usd, implv |
| 6044 | Direct attribute for order price. Should be used when price values in % (when advanced=implv). |
Config sample
connectors {
DERIBIT: ${template.connector.crypto.deribit} {
settings {
apiKeys: [{
apiKey = "<API_KEY>"
apiSecret = "<API_SECRET>"
}]
}
}
}