Fills by Market
curl --request GET \
--url https://codex-api.nomos.trade/v1/fills \
--header 'Authorization: Bearer <token>'import requests
url = "https://codex-api.nomos.trade/v1/fills"
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', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"block": 94812405,
"completeThroughTs": 1790862115,
"fills": [
[
0,
1790856012,
94808210,
33,
0,
0,
2000000000,
462000000,
3,
1,
920000
],
[
0,
1790856012,
94808210,
34,
0,
1,
2000000000,
462000000,
3,
0,
0
]
],
"next": "1790856012,94808210,34"
}{
"error": "the window is at most 604800 seconds (7 days)"
}{
"error": "unknown or revoked API key"
}{
"error": "rate limit: 600 requests a minute; retry in 1 s"
}{
"error": "trades are off"
}Fills
Fills by Market
Every fill of up to 100 markets in a window of up to 7 days, oldest first, as integer rows: [market, ts, block, logIndex, outcome, side, shares, usd, exchange, isTaker, fee]. market is the place in your markets list; side 0 is buy; shares and usd in micro-units (divide by 1,000,000); fee in micro-shares on V1 buys (exchange 1 or 2, side 0), else micro-USDC. Strict: malformed parameters are refused, never clamped. Combo fills are not included.
GET
/
v1
/
fills
Fills by Market
curl --request GET \
--url https://codex-api.nomos.trade/v1/fills \
--header 'Authorization: Bearer <token>'import requests
url = "https://codex-api.nomos.trade/v1/fills"
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', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"block": 94812405,
"completeThroughTs": 1790862115,
"fills": [
[
0,
1790856012,
94808210,
33,
0,
0,
2000000000,
462000000,
3,
1,
920000
],
[
0,
1790856012,
94808210,
34,
0,
1,
2000000000,
462000000,
3,
0,
0
]
],
"next": "1790856012,94808210,34"
}{
"error": "the window is at most 604800 seconds (7 days)"
}{
"error": "unknown or revoked API key"
}{
"error": "rate limit: 600 requests a minute; retry in 1 s"
}{
"error": "trades are off"
}Authorizations
Your API key: codex_ and 48 hex characters.
Query Parameters
1 to 100 condition ids, comma separated, no spaces, no repeats.
Unix seconds, inclusive.
Unix seconds, exclusive; at most 604,800 after from.
Required range:
1 <= x <= 50000The previous page's next.
Response
OK. Gzipped when you send Accept-Encoding: gzip.