For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /api/account/get-trading-setup.md.

Get the user's trading setup

Organization tokenNo token

GET
/me/trading

Returns how the user is set up to trade and to settle.

  • wallets lists the wallets the user holds: main, their own wallet, and strategies, the wallet strategies trade from. A wallet the user does not hold is omitted. Each main address reports settlement_authority: whether the user has authorized settlement of CeFi trades on that chain.
  • trading.cefi is enabled once the user has a CeFi trading account; accounts lists them, each naming the wallet it settles against and its client_id.
  • trading.defi is enabled once the user holds a main wallet.
  • settlement.defi is enabled when CeFi trading is enabled and every main address has settlement authority. settlement.paxos is enabled once the user has a Paxos account.

A CeFi listing can be traded when trading.cefi.enabled and the settlement rail the listing settles on are both enabled.

An organization token reads one of its users' setup with TM-On-Behalf-Of.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

An access token from POST /v1/auth/api-key/token. An organization token lasts one hour and has no refresh token; a personal token can be refreshed.

Header Parameters

TM-On-Behalf-Of?string

Act as one of your organization's users. The value is the user_id returned when the user was created; the request then reads that user's account. Requires an organization token and a user your organization created: 400 for a personal token, a repeated header or a non-UUID, 403 for a user outside your organization.

Formatuuid

Response Body

The user's trading setup

application/json
  1. response

How a user is set up to trade and to settle what they trade

id*string

The user's id

Formatuuid
wallets*array<>

The wallets the user holds, main first; empty when they hold none

trading*

The venues the user can trade on

settlement*

The custody rails the user's CeFi trades can settle on

Example Request
curl -X GET 'https://api.truemarkets.co/v1/account/me/trading' \  -H 'TM-On-Behalf-Of: 3f6d2c0e-8a41-4c2b-9f1e-2b7d5c0a9e11'
Example Response
{  "id": "9f1c2a4e-3b7d-4e1a-8c2f-5d6e7f8a9b0c",  "wallets": [    {      "name": "main",      "provider": "turnkey",      "addresses": [        {          "chain": "solana",          "address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",          "settlement_authority": true        },        {          "chain": "evm",          "address": "0x3f1eA2C5fE0f8eB7dB1c9a1F9c3B0b5C1d2E3f40",          "settlement_authority": true        }      ]    },    {      "name": "strategies",      "provider": "turnkey",      "addresses": [        {          "chain": "solana",          "address": "4mPqzVZ8r1Tq6Yd3dS5bVb1h7cS2kJ9uWm8xL3nQe2Pf"        },        {          "chain": "evm",          "address": "0x9d2B4e6F8a0C1d3E5f7A9b0C2d4E6f8A0b1C3d5E"        }      ]    }  ],  "trading": {    "cefi": {      "enabled": true,      "accounts": [        {          "wallet": "main",          "client_id": "79054348114451737"        }      ]    },    "defi": {      "enabled": true    }  },  "settlement": {    "defi": {      "enabled": true    },    "paxos": {      "enabled": false    }  }}