GET /v1/orders/{order_id}
Get an order by ID
ApiKeyAuthorizationBearer <token>Send Authorization: Bearer over HTTPS. Each key is associated with an account and environment. Invalid, expired or revoked keys return 401.
order_id*stringUUID identifier; server responses use lowercase canonical spelling.
uuid36 <= length <= 36Current order report with immutable quote terms
application/json- response
order_id*IdentifierUUID identifier; server responses use lowercase canonical spelling.
uuid36 <= length <= 36status*stringCurrent order status.
"pending""filled""cancelled"updated_at*UtcTimestampTime the quote was accepted.
date-timetrade_id*IdentifierUUID identifier; server responses use lowercase canonical spelling.
uuid36 <= length <= 36quote*Quoted price, final pay/receive amounts and expiry. Use pay and receive as the complete exchange amounts.
accepted_at*UtcTimestampTime the quote was accepted.
date-timecurl -X GET 'https://api.elkcrypto.com/sandbox/v1/orders/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe", "status": "pending", "updated_at": "2019-08-24T14:15:22Z", "trade_id": "716cb486-5256-4659-973c-189b58daa723", "quote": { "quote_id": "3c071a1d-db86-46a7-9dc8-72ba3fbca992", "symbol": "string", "market": "string", "side": "buy", "price": "string", "pay": { "asset": "string", "amount": "string" }, "receive": { "asset": "string", "amount": "string" }, "issued_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z" }, "accepted_at": "2019-08-24T14:15:22Z"}GET/v1/ordersList account orders
Returns up to 50 orders. No body, Content-Type or Idempotency-Key is needed. Requires ViewQuotes and market access. Results are scoped to your account.
GET/v1/balancesAccount balances and credit
Returns asset balances, holds, available funds and USD credit. Requires a linked account, current KYC, an approved IP and ViewQuotes. Available credit equals limit minus outstanding exposure minus holds. A zero credit limit permits funded orders only. No request body is required.