Account · Account and platform
Account requests
/v1/account/requestsaccountRequestsThe account's own request log, newest first, for the last seven days: every REST call, MCP call, export call and WebSocket connection made with any of its keys. Only the calling account's requests are ever returned. query has credential-like parameters removed. This call appears in the log after it completes. meta.coverage.durable is false when the log is held in memory only and resets on a restart.
Example request
curl -sS "https://api.ordermap.si/v1/account/requests" \
-H "Authorization: Bearer $ORDERMAP_API_KEY"const res = await fetch("https://api.ordermap.si/v1/account/requests", {
headers: { Authorization: `Bearer ${process.env.ORDERMAP_API_KEY}` },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const { data, meta } = await res.json();
console.log(data, meta.coverage);
// Paginated: repeat with cursor_id set to pagination.next_cursor_id until it is null.Set ORDERMAP_API_KEY to your key. Replace the dates with a recent trading date.
Parameters
6 parameters, none required.
| Parameter | Type and limits | Description |
|---|---|---|
start_queryoptional | integerunix-msmin 946684800000max 4102444800000 | Only requests at or after this time. Defaults to the start of the 7-day retention window. |
end_queryoptional | integerunix-msmin 946684800000max 4102444800000 | Only requests before this time. Defaults to now. |
statusqueryoptional | stringat most 3 characterspattern ^([1-5][0-9]{2}|[1-5][xX]{2})$ | Only responses with this HTTP status (for example 429) or class of statuses (2xx, 3xx, 4xx or 5xx). |
routequeryoptional | stringat most 200 characterspattern ^/[A-Za-z0-9/_{}*.-]{0,199}$ | Only requests to this route template, for example /v1/options/flow. |
limitqueryoptional | integerdefault 100min 1max 500 | Maximum rows to return. |
cursor_queryoptional | stringat most 1024 characters | Opaque cursor returned as pagination.next_cursor_id; resumes the same query on the next page. |
Response
| Status | Meaning | Body |
|---|---|---|
200 | Successful response. | Schema below |
400 | Invalid, unknown or repeated parameters, or an invalid cursor. | Error object |
401 | Missing or invalid API key. | Error object |
403 | The plan, dataset release or account state does not allow this request. | Error object |
429 | Rate limit, burst limit or cooldown; wait Retry-After seconds.Retry-After | Error object |
500 | Internal error. | Error object |
503 | Data temporarily unavailable; retry after Retry-After seconds.Retry-After | Error object |
504 | The request timed out. | Error object |
Authenticated responses carry the X-RateLimit-* headers (see rate limits); 429 and 503 add Retry-After.
200 response body
dataarray<object>required19 fields insidebytes_outintegerrequiredResponse bytes sent (after compression).client_ipstringrequiredClient address as seen by the API.duration_msnumberrequiredTime to produce the response, in milliseconds.error_codestring | nullrequiredError code of a failed request, otherwise null.key_prefixstringrequiredPublic prefix of the key that made the request.methodstringrequiredHTTP method.pathstringrequiredRequest path.querystringrequiredQuery string as sent, with credential-like parameters removed.request_idstringrequiredThe X-Request-ID of the request.routestringrequiredRoute template, for example /v1/options/flow.rowsintegerrequiredRows in the response.statusintegerrequiredHTTP status (101 for a WebSocket upgrade).timestampintegerunix-msrequiredWhen the request was received. Unix epoch milliseconds (UTC).user_agentstringrequiredUser-Agent header.ws_bytes_outinteger | nullrequiredBytes sent over a closed WebSocket connection; set on its closing summary row.ws_close_codeinteger | nullrequiredClose code of a closed WebSocket connection; set on its closing summary row.ws_duration_msinteger | nullrequiredDuration of a closed WebSocket connection in milliseconds; set on its closing summary row.ws_event_typestring | nullrequiredWebSocket event type; null on other requests.ws_messages_outinteger | nullrequiredMessages sent over a closed WebSocket connection; set on its closing summary row.
metaobjectrequiredMeta objectpaginationobjectrequiredPagination object
Example response
{
"data": [
{
"bytes_out": 18234,
"client_ip": "203.0.113.7",
"duration_ms": 41.2,
"error_code": null,
"key_prefix": "om_abcd1234",
"method": "GET",
"path": "/v1/options/flow",
"query": "underlying_symbol=SPX&limit=100",
"request_id": "0199f3c2-5b1e-7a40-9d3c-2f6b8e1a4c70",
"route": "/v1/options/flow",
"rows": 100,
"status": 200,
"timestamp": 1760659200123,
"user_agent": "curl/8.7.1",
"ws_bytes_out": null,
"ws_close_code": null,
"ws_duration_ms": null,
"ws_event_type": null,
"ws_messages_out": null
}
],
"meta": {
"as_of": 1760659200123,
"coverage": {
"complete": true
},
"delay_ms": 0,
"delayed": false,
"request_id": "0199f0c2-5a1e-7c3b-9d4e-2b6f8a1c3d5e",
"source": "derived"
},
"pagination": {
"count": 1,
"has_more": false,
"limit": 100,
"next_cursor_id": null,
"next_url": null
}
}Values are illustrative. Missing values are null, never 0.