The INTX FIX API uses its own authentication scheme detailed in the FIX Overview.
Generating an API Key
Certain API endpoints require authentication to access. To interact with these resources, you must create an API key via the Coinbase International Exchange website.Signing Requests
The INTX REST API requests must include an access signature header.Selecting a Timestamp
TheCB-ACCESS-TIMESTAMP header MUST be number of seconds since Unix Epoch in UTC. Decimal values are not allowed. Make sure to use an integer.
Your timestamp should be within 5 seconds of the API service time or your request is considered expired and will be rejected.
Creating a Signature
TheCB-ACCESS-SIGN header is generated by creating an HMAC-SHA-256 using the secret key on the prehash string timestamp + method + requestPath + body (where + represents string concatenation) and Base64-encode the output.
-
timestampis the same as theCB-ACCESS-TIMESTAMPheader. -
methodshould be UPPER CASE, e.g.,GETorPOST. -
requestPathshould only include the path of the API endpoint. Do NOT include the base URL or query parameters when creating the signature. Valid requestPath example to include in the string for hashing:Invalid requestPath example: -
bodyis the request body string or omitted if there is no request body (typically forGETrequests).
Code Samples
The following examples demonstrate how to sign a message by generating an HMAC signature, setting the headers, and making a GET request to the specified URL.- Python
- Ruby
- JavaScript