Skip to main content

API reference

Every endpoint of every True Markets API. Requests and responses are JSON, and authenticated calls carry a bearer token.

Trading, Accounts, Authentication and Market data share one host, api.truemarkets.co. CeFi direct REST, which institutional clients use to trade on the exchange, has its own host, api.truex.co.

How the reference is organized​

Each API has its own section below, with its base URL and every endpoint. The REST sections are generated from our OpenAPI specs, and the WebSocket sections from our AsyncAPI specs. Each endpoint page lists every field, response and error code, and has a Try it panel.

The reference tells you what each endpoint accepts. For which calls to make and in what order, follow the guides for Gateway or the Trading API.

Authentication​

Mint a token from your API key with POST /v1/auth/api-key/token, then send it in Authorization: Bearer. When a Gateway client acts for one of its users, the request also carries TM-On-Behalf-Of. Authentication has the flow, and API keys explains the keys.

CeFi direct REST signs each request with HMAC instead. Its reference has the recipe.

An authenticated request
curl https://api.truemarkets.co/v1/gateway/balances \
-H "Authorization: Bearer $TOKEN"

Errors​

Every error returns the same body. type sets the HTTP status, code names the specific condition, and request_id identifies the request when you write to support. Errors has the full table and what to retry.

Authentication REST

Exchange an API key signature for a token, and refresh it.

Open reference
Base URL
https://api.truemarkets.co/v1/auth

Accounts REST

Create the users your organization trades for, with their wallets, and read deposit details.

Open reference
Base URL
https://api.truemarkets.co/v1/account

Trading REST

Quotes, orders, transfers, balances and transactions, for your own account or for a user you act for.

Open reference
Base URL
https://api.truemarkets.co/v1/gateway

CeFi direct REST

Order entry, balances and market data on the CeFi venue, for firms with direct access.

Open reference
Base URL
https://api.truex.co

CeFi direct FIX

Order entry, drop copy and market data over FIX 5.0 SP2 sessions, for Institutional clients.

Open reference

Market data REST

Prices, candles and history across venues, without a token.

Open reference
Base URL
https://api.truemarkets.co
Endpoints