Summary
curl --request GET \
--url https://codex-api.nomos.trade/v1/wallets/{wallet}/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://codex-api.nomos.trade/v1/wallets/{wallet}/summary"
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/wallets/{wallet}/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"wallet": "0x885783760858e1bd5dd09a3c3f916cfa251ac270",
"block": 94812402,
"tooLarge": false,
"maxPositions": 50000,
"summary": {
"positions": 41,
"realizedPnl": 1830.44,
"volume": {
"bought": 14210.5,
"sold": 9888.12
},
"fees": 61.2,
"fills": 133,
"redemptions": 9,
"merges": 0,
"markets": {
"traded": 27,
"decided": 22,
"won": 13,
"lost": 9,
"wonUsd": 3912.08,
"lostUsd": -2081.64
},
"best": {
"conditionId": "0x8db33416a2d1ebde7438c80129e898f89a5deb3852ca64b37c4bf46513204409",
"pnl": 902.4
},
"worst": {
"conditionId": "0x44e2a0b1c2d3e4f5061728394a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7",
"pnl": -611
},
"holdSeconds": 9417600,
"firstActivityAt": 1746921600,
"lastActivityAt": 1790411022,
"open": {
"positions": 4,
"redeemable": 1,
"cost": 1288.4,
"legs": [
{
"wallet": "0x885783760858e1bd5dd09a3c3f916cfa251ac270",
"outcomeIndex": 0,
"shares": 1200,
"costBasis": 312,
"avgPrice": 0.26,
"avgBuyPrice": 0.26,
"realizedPnl": 0,
"boughtShares": 1200,
"boughtUsd": 312,
"soldShares": 0,
"soldUsd": 0,
"avgSellPrice": 0,
"splitShares": 0,
"mergedShares": 0,
"mergeUsd": 0,
"redeemedShares": 0,
"redeemUsd": 0,
"fees": 1.25,
"fills": 3,
"firstTradeAt": 1783987320,
"lastTradeAt": 1790862117,
"partialHistory": false,
"basisApprox": false,
"converted": false,
"amm": false,
"tokenId": "85254962656314962064648492774584063365849461315753521676016468731069088672",
"conditionId": "0x8db33416a2d1ebde7438c80129e898f89a5deb3852ca64b37c4bf46513204409",
"resolved": false,
"settle": null,
"resolvedAt": null,
"settledPnl": 0,
"invested": 312,
"sharesIn": 1200,
"entryPrice": 0.26,
"pnlPct": 0,
"avgExitPrice": null,
"open": true,
"redeemable": false,
"exitAt": null
}
],
"truncated": false
},
"quality": {
"amm": 0,
"converted": 0,
"partial": 0,
"basisApprox": 1
}
}
}{
"error": "unknown or revoked API key"
}{
"error": "rate limit: 600 requests a minute; retry in 1 s"
}Wallets
Summary
The wallet’s lifetime in one call: settled PnL, volume, fees, markets won and lost, best and worst market, and its open legs for you to value (an open combo is worth its cost).
GET
/
v1
/
wallets
/
{wallet}
/
summary
Summary
curl --request GET \
--url https://codex-api.nomos.trade/v1/wallets/{wallet}/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://codex-api.nomos.trade/v1/wallets/{wallet}/summary"
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/wallets/{wallet}/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"wallet": "0x885783760858e1bd5dd09a3c3f916cfa251ac270",
"block": 94812402,
"tooLarge": false,
"maxPositions": 50000,
"summary": {
"positions": 41,
"realizedPnl": 1830.44,
"volume": {
"bought": 14210.5,
"sold": 9888.12
},
"fees": 61.2,
"fills": 133,
"redemptions": 9,
"merges": 0,
"markets": {
"traded": 27,
"decided": 22,
"won": 13,
"lost": 9,
"wonUsd": 3912.08,
"lostUsd": -2081.64
},
"best": {
"conditionId": "0x8db33416a2d1ebde7438c80129e898f89a5deb3852ca64b37c4bf46513204409",
"pnl": 902.4
},
"worst": {
"conditionId": "0x44e2a0b1c2d3e4f5061728394a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7",
"pnl": -611
},
"holdSeconds": 9417600,
"firstActivityAt": 1746921600,
"lastActivityAt": 1790411022,
"open": {
"positions": 4,
"redeemable": 1,
"cost": 1288.4,
"legs": [
{
"wallet": "0x885783760858e1bd5dd09a3c3f916cfa251ac270",
"outcomeIndex": 0,
"shares": 1200,
"costBasis": 312,
"avgPrice": 0.26,
"avgBuyPrice": 0.26,
"realizedPnl": 0,
"boughtShares": 1200,
"boughtUsd": 312,
"soldShares": 0,
"soldUsd": 0,
"avgSellPrice": 0,
"splitShares": 0,
"mergedShares": 0,
"mergeUsd": 0,
"redeemedShares": 0,
"redeemUsd": 0,
"fees": 1.25,
"fills": 3,
"firstTradeAt": 1783987320,
"lastTradeAt": 1790862117,
"partialHistory": false,
"basisApprox": false,
"converted": false,
"amm": false,
"tokenId": "85254962656314962064648492774584063365849461315753521676016468731069088672",
"conditionId": "0x8db33416a2d1ebde7438c80129e898f89a5deb3852ca64b37c4bf46513204409",
"resolved": false,
"settle": null,
"resolvedAt": null,
"settledPnl": 0,
"invested": 312,
"sharesIn": 1200,
"entryPrice": 0.26,
"pnlPct": 0,
"avgExitPrice": null,
"open": true,
"redeemable": false,
"exitAt": null
}
],
"truncated": false
},
"quality": {
"amm": 0,
"converted": 0,
"partial": 0,
"basisApprox": 1
}
}
}{
"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.
Path Parameters
The wallet: 0x and 40 hex.
Pattern:
^0x[0-9a-fA-F]{40}$