Key, secret, and permissions
- Put the Broker API Key in the KEY request header.
- Use the Secret Key on your server to generate SIGN. Never send the Secret Key.
- Enable the product and read or read-write permissions required by the endpoint. DexBuilder Platform endpoints also require dex_builder permission.
- If your Key has an IP allowlist, send requests from an allowed server egress IP.
Required headers
Signature string
Join these five values with a single newline character between each pair:- HTTP_METHOD is uppercase, such as GET or POST.
- REQUEST_PATH is the external path with the /api/v4 prefix, without the domain or query string. For example: /api/v4/broker/prediction/positions.
- QUERY_STRING keeps the order of the sent parameters and uses their unencoded values for signing. Use an empty string when there is no query.
- REQUEST_BODY is the exact body sent. Hash the empty string for requests without a body. Changing JSON field order, whitespace, or line breaks changes the hash.
- TIMESTAMP must equal the Timestamp header.
- X-User-Wallet-Address is a separate header and is not included in the REST signature string.