Skip to main content
GET
GET /dca-order/orders/{id} returns one order of a strategy created with your API key. An order is one execution of the strategy: Olympex creates it as the strategy runs, and it sells totalAmount / iterations of the strategy’s tokenAddressFrom. Get order IDs from GET /dca-order/strategies/{id}/orders, and read the order again to follow its status.

Order status

Treat any other value as not final. DCA orders are read-only: Olympex creates and updates them, and no endpoint changes or cancels one. To stop a strategy’s remaining orders, cancel the strategy and lower the maker’s allowance.

Execution fields

Not found

404 NOT_FOUND with the message “DCA order not found” means that no order with this ID belongs to one of your strategies: the ID doesn’t exist, or the order belongs to a strategy that another API key created.

Authorizations

x-api-key-id
string
header
required

Your API key ID (UUID). See Sign requests.

x-value-info
string
header
required

Base64 of timestamp + "\n" + nonce + "\n" + bodyHash, where timestamp is Unix seconds, nonce is 24 new hexadecimal characters and bodyHash is the unpadded base64url SHA-256 of the canonical body.

x-passphrase
string
header
required

Your account passphrase. Treat it like the secret key.

x-signature
string
header
required

Lowercase hex HMAC-SHA256 (signature v2), keyed with your secret key string (UTF-8, not decoded), of seven lines joined with \n, with no trailing newline: OLPX-HMAC-SHA256-V2, timestamp, nonce, the uppercase method, path, canonicalQuery and bodyHash. path is the request path including /api/v1, without the query string, for example /api/v1/limit-order/<id>. canonicalQuery is the query parameters decoded (+ is a space), sorted by key and then by value, re-encoded per RFC 3986 and joined with &, or the empty string when there is no query. Headers signed for one request are rejected on any other. See Sign requests.

Path Parameters

id
string
required

DCA order ID, as returned when it was created.

Response

The order.

success
enum<boolean>
required
Available options:
true
data
object
required

One execution of a DCA strategy. Olympex creates these as the strategy runs. DCA orders are read-only. Olympex can add fields; ignore the ones you don't use.

meta
object
required