Authentication
Access to the Oraclyst API requires a valid API Key. We utilize a Bearer Token authentication scheme for read operations and a cryptographic signature system for execution privileges.
Obtaining an API Key
Log in to the Oraclyst Terminal.
Navigate to Settings > Developer > API Keys.
Click "Generate New Key".
Store your
API_KEYandAPI_SECRETsecurely. The secret is shown only once.
Authenticating Requests
For standard data fetching (GET requests), include your API Key in the HTTP Header.
HTTP
GET /v1/markets HTTP/1.1
Host: api.oraclyst.app
X-API-Key: YOUR_API_KEY_HERESigning Execution Requests (POST)
For security, all endpoints that move funds (e.g., POST /order) require a signature derived from your API_SECRET. This prevents unauthorized trades even if your public API Key is leaked.
Signature Generation Algorithm:
Construct the payload string:
timestamp + method + path + body.Create an HMAC-SHA256 hash of the payload using your
API_SECRET.Include the timestamp and signature in the headers.
Headers Required:
X-API-Key: Your public key.X-Signature: The generated HMAC hash.X-Timestamp: Unix timestamp (requests older than 30 seconds are rejected).
Last updated
