curl --request GET \
--url https://api.omnibook.xyz/v1/portfolio/orders \
--header 'DX-ACCESS-KEY: <api-key>' \
--header 'DX-ACCESS-SIGNATURE: <api-key>' \
--header 'DX-ACCESS-TIMESTAMP: <api-key>'import requests
url = "https://api.omnibook.xyz/v1/portfolio/orders"
headers = {
"DX-ACCESS-KEY": "<api-key>",
"DX-ACCESS-TIMESTAMP": "<api-key>",
"DX-ACCESS-SIGNATURE": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'DX-ACCESS-KEY': '<api-key>',
'DX-ACCESS-TIMESTAMP': '<api-key>',
'DX-ACCESS-SIGNATURE': '<api-key>'
}
};
fetch('https://api.omnibook.xyz/v1/portfolio/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"orders": [
{
"order_id": "182390",
"client_order_id": "182390",
"market_id": 123,
"side": "buy",
"outcome": "yes",
"tick": 5000,
"qty": 123,
"tif": "gtc",
"expiry_ts": "182390",
"max_cost": "182390",
"group_id": 123,
"flags": 123,
"status": "resting",
"reason": "<string>",
"filled_qty": 123,
"remaining_qty": 123,
"created_seq": "182390",
"created_ts": "182390",
"last_update_seq": "182390"
}
],
"cursor": "<string>",
"as_of_seq": "182390"
}{
"error": {
"code": "unknown_field",
"num": null,
"origin": "gateway",
"message": "unknown_field",
"details": null
}
}{
"error": {
"code": "unauthorized",
"num": null,
"origin": "gateway",
"message": "unauthorized",
"details": null
}
}{
"error": {
"code": "missing_scope",
"num": null,
"origin": "gateway",
"message": "missing_scope",
"details": null
}
}{
"error": {
"code": "rate_limited",
"num": null,
"origin": "gateway",
"message": "rate limited",
"details": {
"retry_after_ms": "10"
}
}
}List the caller's orders
curl --request GET \
--url https://api.omnibook.xyz/v1/portfolio/orders \
--header 'DX-ACCESS-KEY: <api-key>' \
--header 'DX-ACCESS-SIGNATURE: <api-key>' \
--header 'DX-ACCESS-TIMESTAMP: <api-key>'import requests
url = "https://api.omnibook.xyz/v1/portfolio/orders"
headers = {
"DX-ACCESS-KEY": "<api-key>",
"DX-ACCESS-TIMESTAMP": "<api-key>",
"DX-ACCESS-SIGNATURE": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'DX-ACCESS-KEY': '<api-key>',
'DX-ACCESS-TIMESTAMP': '<api-key>',
'DX-ACCESS-SIGNATURE': '<api-key>'
}
};
fetch('https://api.omnibook.xyz/v1/portfolio/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"orders": [
{
"order_id": "182390",
"client_order_id": "182390",
"market_id": 123,
"side": "buy",
"outcome": "yes",
"tick": 5000,
"qty": 123,
"tif": "gtc",
"expiry_ts": "182390",
"max_cost": "182390",
"group_id": 123,
"flags": 123,
"status": "resting",
"reason": "<string>",
"filled_qty": 123,
"remaining_qty": 123,
"created_seq": "182390",
"created_ts": "182390",
"last_update_seq": "182390"
}
],
"cursor": "<string>",
"as_of_seq": "182390"
}{
"error": {
"code": "unknown_field",
"num": null,
"origin": "gateway",
"message": "unknown_field",
"details": null
}
}{
"error": {
"code": "unauthorized",
"num": null,
"origin": "gateway",
"message": "unauthorized",
"details": null
}
}{
"error": {
"code": "missing_scope",
"num": null,
"origin": "gateway",
"message": "missing_scope",
"details": null
}
}{
"error": {
"code": "rate_limited",
"num": null,
"origin": "gateway",
"message": "rate limited",
"details": {
"retry_after_ms": "10"
}
}
}Authorizations
The public API key (alphanumeric access_key string).
Request timestamp, Unix milliseconds (decimal). ±5000 ms replay window.
base64(HMAC-SHA256(secret, "timestamp\nMETHOD\npath?query\nbody")). For the WS handshake the body is empty and the path is /v1/ws.
Query Parameters
Comma-separated list of order statuses to filter by.
"resting,partially_filled"
A u64-domain value rendered as a decimal string.
^[0-9]+$"182390"
Opaque pagination cursor from a prior response; omit for the first page.
Page size.
1 <= x <= 1000Response
A page of order objects.
Hide child attributes
Hide child attributes
null until the order reaches the stream
^[0-9]+$"182390"
A u64-domain value rendered as a decimal string.
^[0-9]+$"182390"
buy, sell yes, no Price tick in pips, in the outcome's own space. 1 pip = 0.01¢. Domain 1–9999 (4700 = 47.00¢). Old 1–99 cents are rejected.
1 <= x <= 9999gtc, gtt, ioc, fok ns; "0" when not gtt
^[0-9]+$"182390"
pips; "0" when unset
^[0-9]+$"182390"
bitfield: bit0 post_only, bit1 reduce_only, bit2 cancel_on_pause, bit3 stp_maker
resting, partially_filled, executed, canceled, expired, rejected CANCELED/REJECTED reason name when terminal
A u64-domain value rendered as a decimal string.
^[0-9]+$"182390"
A u64-domain value rendered as a decimal string.
^[0-9]+$"182390"
A u64-domain value rendered as a decimal string.
^[0-9]+$"182390"
A u64-domain value rendered as a decimal string.
^[0-9]+$"182390"