Cardiv
Market maker programmeAPI reference

Order book snapshot

Primary market-data source. Poll at 1 to 2 second intervals; faster is wasteful because this reads a database projection, not the ledger.

GET/orderbook/{pair}

Path Parameters

pair*string

URL-encoded, e.g. CBTC%2FCC

Query Parameters

depth?integer

Levels per side.

Default20

Response Body

application/json

application/json

curl -X GET "https://example.com/orderbook/CBTC%2FCC"
{  "ok": true,  "data": {    "pair": "string",    "bids": [      [        "string",        "string"      ]    ],    "asks": [      [        "string",        "string"      ]    ],    "asOf": {      "updateId": 0,      "sequence": 0,      "source": "string"    }  }}

Need help

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