Skip to content

Overview

This API allows clients to interact with the CeFi trading platform for order management, market data retrieval, and account information.

Base URL

https://prod.truex.co/api/v1/

Authentication

Certain API requests must be authenticated using HMAC-SHA256 signature authentication.

API Versioning

The API uses date-based versioning via the X-Truex-Version header. To request a specific API version, include the header in your request:

X-Truex-Version: v2024_01_01

Supported Versions:

VersionStatusDescription
v2024_01_01Current (Default)Original API format - responses return raw data arrays/objects
v2026_01_23CurrentNew envelope format - responses wrapped in { "data": [...], "pagination": {...} }

If no version header is provided, the API defaults to v2024_01_01. Use the /api/v1/versions endpoint to discover supported versions programmatically.

Response Format by Version:

  • v2024_01_01: [{...}, {...}] (raw array) or {...} (raw object)
  • v2026_01_23: { "data": [...], "pagination": { "size": 10, "next_cursor": "..." } }

Error Response Format by Version:

  • v2024_01_01: RFC 7807 Problem Details format
  • v2026_01_23: { "error": { ...RFC 7807 Problem Details... } }

Deprecation Policy: When a version is deprecated, responses will include RFC 8594 headers:

  • Deprecation: Date when the version was deprecated
  • Sunset: Date when the version will be removed
Download OpenAPI description
Languages
Servers
Mock server

https://docs.truemarkets.co/_mock/apis/cefi-direct/rest/v1/

https://prod.truex.co/

Service

Health checks and API version discovery endpoints. These endpoints are publicly accessible and do not require authentication.

Operations

Assets

Query available assets on the exchange by ID or name.

Operations

Instruments

Query tradeable instruments (market definitions) and their statistics.

Operations

Market Data

Real-time market quotes and VWAP computations. These endpoints are publicly accessible and do not require authentication.

Operations

Clients

Retrieve and update client account information and settings.

Operations

Orders

Create, modify, cancel, and query orders including status, trades, and activity history.

Operations

Balances

Query account balances across all assets.

Operations

Request

Query for balance information current allocated to the exchange.

Security
HMAC
Query
asset_idstringnon-empty^[1-9][0-9]*$

ID of asset to query balance information for.

asset_namestringnon-empty^[a-zA-Z0-9_-]+$

Name of asset to query balance information for. ASCII alphanumeric only.

client_idstringnon-empty^[1-9][0-9]*$

Exchange generated client ID to query balance information for.

Headers
x-truex-auth-useridstringrequired

Client identifier.

x-truex-auth-timestampstringrequired

Timestamp when request was made in seconds since epoch. Must be no older than 15 seconds and no more than 1 second in the future.

x-truex-auth-tokenstringrequired

The UUID affiliated with the HMAC key.

x-truex-auth-signaturestringrequired

The computed HMAC signature.

curl -i -X GET \
  'https://docs.truemarkets.co/_mock/apis/cefi-direct/rest/v1/api/v1/balances?asset_id=string&asset_name=string&client_id=string' \
  -H 'x-truex-auth-signature: string' \
  -H 'x-truex-auth-timestamp: string' \
  -H 'x-truex-auth-token: YOUR_API_KEY_HERE' \
  -H 'x-truex-auth-userid: string'

Responses

Successful operation.

Bodyapplication/jsonArray [
idstring

Exchange assigned entity ID.

Example: "78901985055342602"
statusstring

Exchange only status value, will always be INVALID.

Value"INVALID"
Example: "INVALID"
unsettled_feesstring

Current amount of fee asset that have been accrued due to trading but have yet to be settled with the exchange.

Example: "9210.236229375"
fees_holdstring

Current amount of fee asset that is being held by the exchange as a result of trading activity.

Example: "179300.4249165"
balancesArray of objects(Balance)
]
Response
application/json
[ { "id": "78901985055342602", "status": "INVALID", "unsettled_fees": "9210.236229375", "fees_hold": "179300.4249165", "balances": [] } ]

Get balance (deprecated)Deprecated

Request

DEPRECATED: Use /api/v1/balances instead. Query for balance information current allocated to the exchange.

Security
HMAC
Query
asset_idstringnon-empty^[1-9][0-9]*$

ID of asset to query balance information for.

asset_namestringnon-empty^[a-zA-Z0-9_-]+$

Name of asset to query balance information for. ASCII alphanumeric only.

client_idstringnon-empty^[1-9][0-9]*$

Exchange generated client ID to query balance information for.

Headers
x-truex-auth-useridstringrequired

Client identifier.

x-truex-auth-timestampstringrequired

Timestamp when request was made in seconds since epoch. Must be no older than 15 seconds and no more than 1 second in the future.

x-truex-auth-tokenstringrequired

The UUID affiliated with the HMAC key.

x-truex-auth-signaturestringrequired

The computed HMAC signature.

curl -i -X GET \
  'https://docs.truemarkets.co/_mock/apis/cefi-direct/rest/v1/api/v1/balance?asset_id=string&asset_name=string&client_id=string' \
  -H 'x-truex-auth-signature: string' \
  -H 'x-truex-auth-timestamp: string' \
  -H 'x-truex-auth-token: YOUR_API_KEY_HERE' \
  -H 'x-truex-auth-userid: string'

Responses

Successful operation.

Bodyapplication/jsonArray [
idstring

Exchange assigned entity ID.

Example: "78901985055342602"
statusstring

Exchange only status value, will always be INVALID.

Value"INVALID"
Example: "INVALID"
unsettled_feesstring

Current amount of fee asset that have been accrued due to trading but have yet to be settled with the exchange.

Example: "9210.236229375"
fees_holdstring

Current amount of fee asset that is being held by the exchange as a result of trading activity.

Example: "179300.4249165"
balancesArray of objects(Balance)
]
Response
application/json
[ { "id": "78901985055342602", "status": "INVALID", "unsettled_fees": "9210.236229375", "fees_hold": "179300.4249165", "balances": [] } ]

Transfers

Initiate and track fund transfers between accounts.

Operations

Change Log

VersionDateNotes
v1.0.42026-03-12Compute quote now works for both base and qoute bases.
v1.0.32026-01-27Pluralize all endpoints. Deprecate singular versions.
v1.0.22026-01-24Add API versioning support and versions endpoint.
v1.0.12025-10-24Add gateway health endpoint.
v1.0.02025-10-16Initial Release.