Skip to main content
GET
GET /dca-order/strategies/{id}/orders returns the orders Olympex has created so far for one of your strategies, oldest first. Olympex creates a strategy’s orders as the strategy runs, and there is no endpoint to create one. A new strategy has none until its first order is scheduled. To read one order, use GET /dca-order/orders/{id}.

What the list contains

  • Orders that exist so far. Olympex creates each order as the strategy runs, so while the strategy is active, the list can be shorter than iterations.
  • One status per order. Order status explains each value and the fields it sets.
  • Amounts in human-readable units, as JSON numbers. amount is the amount of the token sold in the order. Once the order executes, amountReceived is the amount of the token bought.
  • Everything at once. The list is unpaginated and takes no filters.

After you cancel the strategy

Cancelling a strategy stops new orders. The orders already in this list are read-only: no endpoint changes or cancels a DCA order. To make sure none of them executes, lower the maker’s allowance to the order contract: see Stop everything.

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

Strategy ID, as returned when it was created.

Response

The strategy's orders.

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

The strategy's orders, oldest first. Unpaginated.

meta
object
required