Positions
List positions
Positions as the engine's ledger has them: net on the YES leg, per market and book.
GET/positionsself-hosted · access token · view
Self-hosted. Served by synpath serve on your own machine or host, which must be running; the engine and its order types live there. Nothing on this page runs on Synpath's servers.
long holds YES, short holds NO. On Polymarket the two token inventories are kept beside the net figure.
Response
A page of positions.
client = synpath.Client(synpath.load_credentials())
for p in await client.fetch_positions():
print(p.market_id, p.side, p.contracts, p.entry_price)200
{
"data": [
{
"venue": "kalshi",
"account": {
"venue": "kalshi",
"name": "desk-a",
"subaccount": null
},
"market_id": "kalshi:KXELONMARS-99",
"side": "long",
"contracts": "2",
"inventory_yes": null,
"inventory_no": null,
"entry_price": "0.10",
"mark_price": "0.11",
"unrealized_pnl": "0.02",
"realized_pnl": "0",
"margin": "0.20",
"resolved": false,
"final": false,
"won": null,
"payout": null,
"redeemable": null,
"timestamp": 1789655011496
}
],
"next_cursor": null,
"count": 1
}
