Cardiv
Market maker programmeAPI reference

Your orders

Returns only orders belonging to the market maker party; there is no endpoint exposing other participants' orders. Aggregate activity of other participants is visible through the public market-data endpoints (GET /orderbook, GET /trades). Used to reconcile fills and to recover after a submission whose connection dropped.

GET/orders

Authorization

AuthorizationBearer <token>

Authorization: Bearer mm_ak_.. The part before the dot is a public handle, safe to log. The part after is the secret.

In: header

Query Parameters

pair?string

Filter by pair.

status?string

OPEN returns all resting states (OPEN, PARTIALLY_FILLED, PENDING_TRIGGER).

side?string

Filter by side.

Value in

  • "BUY"
  • "SELL"
from?string

Lower bound on order creation time, ISO 8601.

Formatdate-time
to?string

Upper bound on order creation time, ISO 8601.

Formatdate-time
refreshCalden?boolean

When true (the default) the wallet service is re-queried, which can add tens of seconds. Polling loops should set false.

Defaulttrue
limit?integer
Default50

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/orders"
{  "ok": true,  "data": {    "orders": [      {        "contractId": "string",        "orderId": "string",        "pair": "CBTC/cETH",        "side": "BUY",        "type": "LIMIT",        "price": "string",        "quantity": "string",        "filled": "string",        "status": "OPEN",        "stopPrice": "string",        "timestamp": "2019-08-24T14:15:22Z",        "updatedAt": "2019-08-24T14:15:22Z",        "correlationId": "string"      }    ],    "pagination": {      "limit": 0,      "cursor": "string",      "hasMore": true    }  }}

Need help

Write to support@wolfedgelabs.com and include your party ID.