Synpath
Accounts & Keys

Who am I

The user this key belongs to, and what it may touch.

GET/meself-hosted · access token · any key

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.

Response

The key's identity and grants.

import os
import httpx

TOKEN = os.environ["SYNPATH_ACCESS_TOKEN"]

r = httpx.get("http://127.0.0.1:8000/trading/me", headers={"Authorization": f"Bearer {TOKEN}"})
r.raise_for_status()
print(r.json())
200
{
  "key_id": "k_7f1c",
  "user_id": "u_owner",
  "name": "owner",
  "accounts": [
    {
      "account": "*",
      "venue": null,
      "permissions": [
        "view",
        "trade",
        "manage_credentials",
        "manage_members"
      ]
    }
  ]
}