curl --request GET \
--url https://api.omnibook.xyz/v1/portfolio/fills \
--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/fills"
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/fills', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"fills": [
{
"seq": "182390",
"ts": "182390",
"market_id": 123,
"order_id": "182390",
"role": "maker",
"side": "buy",
"outcome": "yes",
"qty": 123,
"tick_yes": 5000,
"path": "direct",
"fee": "182390"
}
],
"cursor": "<string>",
"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": "rate_limited",
"num": null,
"origin": "gateway",
"message": "rate limited",
"details": {
"retry_after_ms": "10"
}
}
}The caller's fills (either role), newest-first
curl --request GET \
--url https://api.omnibook.xyz/v1/portfolio/fills \
--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/fills"
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/fills', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"fills": [
{
"seq": "182390",
"ts": "182390",
"market_id": 123,
"order_id": "182390",
"role": "maker",
"side": "buy",
"outcome": "yes",
"qty": 123,
"tick_yes": 5000,
"path": "direct",
"fee": "182390"
}
],
"cursor": "<string>",
"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": "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
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 fills.
Hide child attributes
Hide child attributes
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"
maker, taker 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 <= 9999The FILL path flag.
direct, mint, merge pips
^[0-9]+$"182390"
A u64-domain value rendered as a decimal string.
^[0-9]+$"182390"