Accounts & Keys
List accounts
The venue accounts this engine trades, and this key's permissions on each.
GET/accountsself-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.
An account is venue:name, one set of credentials at one venue. Permissions are per account and nothing is implied: a key that may trade may not grant, and a key that may grant may not trade.
Response
An array of accounts.
import os
import httpx
TOKEN = os.environ["SYNPATH_ACCESS_TOKEN"]
r = httpx.get("http://127.0.0.1:8000/trading/accounts", headers={"Authorization": f"Bearer {TOKEN}"})
r.raise_for_status()
print(r.json())200
[
{
"account": "kalshi:desk-a",
"venue": "kalshi",
"permissions": [
"view",
"trade"
]
},
{
"account": "polymarket:default",
"venue": "polymarket",
"permissions": [
"view"
]
}
]
