All Fills
curl --request GET \
--url https://codex-api.nomos.trade/v1/fills/all \
--header 'Authorization: Bearer <token>'import requests
url = "https://codex-api.nomos.trade/v1/fills/all"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://codex-api.nomos.trade/v1/fills/all', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"block": 94812405,
"completeThroughTs": 1790862115,
"fills": [
[
1790856012,
94808210,
33,
"0x3f6a0c0d1d7f4b0a9e2c6b8f51a2e94d7c03b6a1e8f5d2c47a9b0e1f3c5d7e9a",
"0x56687bf447db6ffa42ffe2204a05edaa20f55839",
0,
"85254962656314962064648492774584063365849461315753521676016468731069088672",
"0x8db33416a2d1ebde7438c80129e898f89a5deb3852ca64b37c4bf46513204409",
0,
2000000000,
462000000
]
],
"next": "1790856012,94808210,33"
}{
"error": "the window is at most 3600 seconds (1 hour)"
}{
"error": "unknown or revoked API key"
}{
"error": "rate limit: 600 requests a minute; retry in 1 s"
}Fills
All Fills
Every order-book fill of every market in a window of up to an hour, oldest first, rows whose market is still unknown included: [ts, block, logIndex, tx, wallet, side, asset, conditionId, outcome, shares, usd]. Rows without a market always come after completeThroughTs: read them again later.
GET
/
v1
/
fills
/
all
All Fills
curl --request GET \
--url https://codex-api.nomos.trade/v1/fills/all \
--header 'Authorization: Bearer <token>'import requests
url = "https://codex-api.nomos.trade/v1/fills/all"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://codex-api.nomos.trade/v1/fills/all', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"block": 94812405,
"completeThroughTs": 1790862115,
"fills": [
[
1790856012,
94808210,
33,
"0x3f6a0c0d1d7f4b0a9e2c6b8f51a2e94d7c03b6a1e8f5d2c47a9b0e1f3c5d7e9a",
"0x56687bf447db6ffa42ffe2204a05edaa20f55839",
0,
"85254962656314962064648492774584063365849461315753521676016468731069088672",
"0x8db33416a2d1ebde7438c80129e898f89a5deb3852ca64b37c4bf46513204409",
0,
2000000000,
462000000
]
],
"next": "1790856012,94808210,33"
}{
"error": "the window is at most 3600 seconds (1 hour)"
}{
"error": "unknown or revoked API key"
}{
"error": "rate limit: 600 requests a minute; retry in 1 s"
}Authorizations
Your API key: codex_ and 48 hex characters.
Query Parameters
Unix seconds, inclusive.
Unix seconds, exclusive; at most 3,600 after from.
Required range:
1 <= x <= 20000The previous page's next.
Response
OK. Gzipped when you send Accept-Encoding: gzip.
The trades table's cursor (can run a batch ahead of positions).
Every fill at or before it is in the answer; 0: nothing claimable yet. Unix seconds.
Send it as after, with the same window.
Mixed rows: tx, wallet, asset and conditionId are strings.