Shares resting ahead of an order (price-time priority)
curl --request GET \
--url https://api.omnibook.xyz/v1/portfolio/orders/{order_id}/queue_position \
--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/{order_id}/queue_position"
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/{order_id}/queue_position', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"shares_ahead": "1200",
"as_of_seq": "182390"
}{
"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": "unknown_order",
"num": 260,
"origin": "core",
"message": "unknown_order",
"details": null
}
}{
"error": {
"code": "rate_limited",
"num": null,
"origin": "gateway",
"message": "rate limited",
"details": {
"retry_after_ms": "10"
}
}
}Shares resting ahead of an order (price-time priority)
Shares resting ahead of the caller’s order at its canonical YES-space
price level, by time priority. Exact for the resting
orders it reports on (the read model never evicts a resting order); a
lower bound on wait (counts only already-resting size). 404 unknown_order covers unknown / foreign / already-terminal.
GET
/
v1
/
portfolio
/
orders
/
{order_id}
/
queue_position
Shares resting ahead of an order (price-time priority)
curl --request GET \
--url https://api.omnibook.xyz/v1/portfolio/orders/{order_id}/queue_position \
--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/{order_id}/queue_position"
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/{order_id}/queue_position', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"shares_ahead": "1200",
"as_of_seq": "182390"
}{
"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": "unknown_order",
"num": 260,
"origin": "core",
"message": "unknown_order",
"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.
Path Parameters
A u64-domain value rendered as a decimal string.
Pattern:
^[0-9]+$Example:
"182390"
Response
Shares ahead under price-time priority.
⌘I