Docs

List maker takeable offers

GET
/v0/midnight/takeable-offers

Returns one maker's active offers. A fresh offer is withheld until measured, unless indexed ratifier state proves both a blocker and maker intent through the tree signature, signer-authorization history, or root history. Eligible blocked offers return with units set to 0; missing state and unproven offers naming the maker remain hidden.

Query Parameters

maker*string

Maker EVM address. Matching is case-insensitive.

market_ids?string

Comma-separated market IDs (32-byte hex). Matches takeable offers in any of the provided markets. Maximum 20 IDs. Combined with groups using AND semantics.

groups?string

Comma-separated group IDs (32-byte hex). Matches takeable offers in any of the provided groups. Maximum 20 IDs.

limit?number

Maximum number of items to return.

cursor?string

Opaque pagination cursor from a previous response.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v0/midnight/takeable-offers?maker=0x7b093658BE7f90B63D7c359e8f408e503c2D9401&market_ids=0x0000000000000000000000000000000000000000000000000000000000000001%2C0x0000000000000000000000000000000000000000000000000000000000000002&groups=0x0000000000000000000000000000000000000000000000000000000000000001%2C0x0000000000000000000000000000000000000000000000000000000000000002&limit=10&cursor=eyJncm91cCI6IjB4MTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsImhhc2giOiIweDIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIiLCJtYXJrZXRJZCI6IjB4MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMyJ9"
{  "cursor": "eyJncm91cCI6IjB4MTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsImhhc2giOiIweDIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIiLCJtYXJrZXRJZCI6IjB4MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMyJ9",  "data": [    {      "market_id": "0x25690ae1aee324a005be565f3bcdd16dbf8daf7969b26c181c8b8f467dad9f67",      "units": "369216000000000000000000",      "offer": {        "market": {          "chain_id": 8453,          "midnight": "0x2F7a3AA739ba5792Ce1b4eA046117f2C0095BCA6",          "loan_token": "0xC9A9C45C0eB717f8b5F193Af6bAa05A1c0Ac5078",          "collaterals": [            {              "token": "0x34Cf890dB685FC536E05652FB41f02090c3fb751",              "lltv": "860000000000000000",              "liquidation_cursor": "300000000000000000",              "oracle": "0x45093658BE7f90B63D7c359e8f408e503c2D9401"            }          ],          "maturity": 1761922799,          "rcf_threshold": "0",          "enter_gate": "0x0000000000000000000000000000000000000000",          "liquidator_gate": "0x0000000000000000000000000000000000000000"        },        "buy": false,        "maker": "0x7b093658BE7f90B63D7c359e8f408e503c2D9401",        "max_units": "369216000000000000000000",        "start": 1761922790,        "expiry": 1761922799,        "tick": 495,        "group": "0x000000000000000000000000000000000000000000000000000000000008b8f4",        "callback": "0x0000000000000000000000000000000000000000",        "callback_data": "0x",        "receiver_if_maker_is_seller": "0x7b093658BE7f90B63D7c359e8f408e503c2D9401",        "ratifier": "0x0000000000000000000000000000000000000002",        "reduce_only": false,        "max_assets": "0",        "continuous_fee_cap": "115792089237316195423570985008687907853269984665640564039457584007913129639935"      },      "ratifier_data": "0x000000000000000000000000000000000000000000000000000000000000001b12121212121212121212121212121212121212121212121212121212121212123434343434343434343434343434343434343434343434343434343434343434",      "warning": null    }  ]}
{  "error": {    "code": "VALIDATION_ERROR",    "message": "Limit must be greater than 0.",    "details": [      {        "field": "limit",        "issue": "Limit must be greater than 0."      }    ],    "request_id": "req-123"  }}
{  "error": {    "code": "VALIDATION_ERROR",    "message": "Limit must be greater than 0.",    "details": [      {        "field": "limit",        "issue": "Limit must be greater than 0."      }    ],    "request_id": "req-123"  }}