Skip to main content
Deribit FIX API is a subset of FIX version 4.4, but also includes some tags from 5.0 version and several custom tags. Deribit uses the standard header and trailer structure for all messages. To enable the API, sign in and go to Account > Security > API Tab and use the checkbox. ‘Client Secret’ is the user’s secret key provided by Deribit. Important Note: Do not reveal to anybody your ‘Client Secret’, as it can be used to gain full control over your account.
IMPORTANT ANNOUNCEMENTDue to recent technical issues with one of our service providers, we have updated the FIX public endpoint. The FIX endpoint will no longer be accessible over the internet via www.deribit.com. Going forward, customers should connect using fix.deribit.com for production and fix-test.deribit.com for test environment.

Connection Endpoints

The FIX server can be reached at:
  • Production:
    • fix.deribit.com:9881 (raw tcp)
    • fix.deribit.com:9883 (ssl)
  • Test Network:
    • fix-test.deribit.com:9881 (raw tcp)
    • fix-test.deribit.com:9883 (ssl)

Message Structure

Request Message Headers

Each request message can include:
TagNameTypeRequiredComments
8BeginStringStringYesIdentifies beginning of new message and protocol version. Must always be first in the message
9BodyLengthLengthYesMessage length in bytes, not including fields BeginString(8), BodyLength(9) and CheckSum(10). The length must be calculated by counting the number of octets in the message up to and including the end of field delimiter (Start of Heading) of the field immediately preceding the CheckSum(10) field. Must always be the second in the message. Please refer to FIX specification for more details
35MsgTypeStringYesThe type of the message. See below for available types
49SenderCompIDStringYesA user defined client name
56TargetCompIDStringYesConstant value: DERIBITSERVER
34MsgSeqNumSeqNumYesA sequence number for the message, starts with 1, and must be incremented by 1 for every message
52SendingTimeUTCTimestampNoThe time the request is sent. This field is ignored by the server
10CheckSumStringYesThe checksum of all of all preceding messages. In order to calculate checksum, sum up the binary value of each octet up to and including the end of field delimiter (Start of Heading) of the field immediately preceding the CheckSum(10). Afterwards calculate modulo 256 of that sum. The calculated modulo 256 checksum must then be encoded as an ISO 8859-1 three-octet representation of the decimal value. For example, if the message length sum of character values has been calculated to be 274 then the modulo 256 value is 18 (256 + 18 = 274). This value would be encoded in the CheckSum(10) field as “10=018”. CheckSum must always be the last field in the message. Please refer to FIX specification Annex A for more details

Response Message Headers

Responses sent by the server will at least include:
TagNameTypeComments
8BeginStringStringIdentifies beginning of new message and protocol version. Must always be first in the message
9BodyLengthLengthMessage length in bytes, not including fields BeginString(8), BodyLength(9) and CheckSum(10). Please refer to FIX specification for more details
35MsgTypeStringThe type of the message. See below for available types
49SenderCompIDStringConstant value: DERIBITSERVER
56TargetCompIDStringA user defined client name
34MsgSeqNumSeqNumA server-chosen sequence number for the message
52SendingTimeUTCTimestampThe time the request is sent. This field is ignored by the server
10CheckSumStringThe checksum of all of all preceding messages. Please refer to FIX specification Annex A for more details

Message Types

The FIX API supports the following message types organized by category:

Session Management

Market Data

Order Management

Position Management

User Management

Market Maker Protection

Mass Quoting

Trade Capture

Security Definition

Changes Log