Requests made through API key authentication can fail with the following error codes:
api_key_not_found
— The API key provided could not be found.failed_to_parse_timestamp
— The timestamp provided could not be parsed.timestamp_too_far
— The timestamp is too far from the server timestamp (more than 30 seconds in the past or future)failed_to_decode_hex_signature
— The hex signature could not be decoded.signature_mismatch
— There is a mismatch in the signature.key_doesnt_have_scope
— The API key does not have the required scope for the endpoint.ip_not_permitted
— The IP address making the request is not whitelisted for this API key.Some of the endpoints require authentication through API keys.
To generate an API Key
https://trade.enclave.market/spot/AVAX-USDC
Important: The secret key should be treated the same way as a password and not stored in an unencrypted manner. Please place this information in a password manager or key vault.
It is strongly recommended to whitelist the IP addresses which are allowed to make requests for the given API key.
IP addresses can be added in the API KEYS page or immediately after creation.
Up to 16 IP addresses can be added per API key. Only IPv4 addresses are supported at this time.