Fills State
curl --request GET \
--url https://codex-api.nomos.trade/v1/fills/state \
--header 'Authorization: Bearer <token>'import requests
url = "https://codex-api.nomos.trade/v1/fills/state"
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/state', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"block": 94812405,
"blockTs": 1790862117,
"completeThroughTs": 1790862115,
"openHoles": 0,
"unresolvedSinceTs": null,
"unresolvedTokens": 0
}{
"error": "unknown or revoked API key"
}{
"error": "rate limit: 600 requests a minute; retry in 1 s"
}Fills
Fills State
How far the fills table is complete, from one cheap query. Poll it to know when a window is final.
GET
/
v1
/
fills
/
state
Fills State
curl --request GET \
--url https://codex-api.nomos.trade/v1/fills/state \
--header 'Authorization: Bearer <token>'import requests
url = "https://codex-api.nomos.trade/v1/fills/state"
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/state', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"block": 94812405,
"blockTs": 1790862117,
"completeThroughTs": 1790862115,
"openHoles": 0,
"unresolvedSinceTs": null,
"unresolvedTokens": 0
}{
"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.
Response
OK. Gzipped when you send Accept-Encoding: gzip.
The trades table's cursor (can run a batch ahead of positions).
Its time. Unix seconds.
Unix seconds.
Gaps still being filled.
The oldest fill still waiting for its market. Unix seconds.
Tokens whose market is not known yet.