Health checks and API version discovery endpoints. These endpoints are publicly accessible and do not require authentication.
True Markets CeFi REST (v1.0.4)
This API allows clients to interact with the CeFi trading platform for order management, market data retrieval, and account information.
Certain API requests must be authenticated using HMAC-SHA256 signature authentication.
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_01Supported Versions:
| Version | Status | Description |
|---|---|---|
v2024_01_01 | Current (Default) | Original API format - responses return raw data arrays/objects |
v2026_01_23 | Current | New 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 deprecatedSunset: Date when the version will be removed
- 📖 Full API Documentation: https://docs.truex.co/
- 📧 Support: support@truex.co
https://docs.truemarkets.co/_mock/apis/cefi-direct/rest/v1/
https://prod.truex.co/
- Mock server
https://docs.truemarkets.co/_mock/apis/cefi-direct/rest/v1/api/v1/market/quote
https://prod.truex.co/api/v1/market/quote
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.truemarkets.co/_mock/apis/cefi-direct/rest/v1/api/v1/market/quote?instrument_id=string'[ { "id": "78901949723181070", "symbol": "BTC-PYUSD", "info": { … } } ]
Request
Calculate a quote preview for an asset using current visible order book depth. Supports both base quantity and quote (notional) quantity via the required qty_unit parameter. In schema v2024_01_01, successful responses contain only qty and price. For qty_unit=QUOTE, the exchange computes the largest executable base quantity that fits within the requested quote amount while respecting the instrument's base increment at the final consumed price level. As a result, in schema v2026_01_23 the returned notional may be slightly less than the requested quote amount and the difference is reported in notional_residual.
Quote request parameters. qty_unit is required and has no default.
The quantity to quote. Interpretation depends on qty_unit: for BASE this is the base asset amount, for QUOTE this is the notional (e.g. USD) amount.
The instrument ID for which to calculate the quote. Must be a valid non-zero numeric ID.
The side of the quote request. BUY calculates the price to buy the base asset, SELL calculates the price to sell.
- Mock server
https://docs.truemarkets.co/_mock/apis/cefi-direct/rest/v1/api/v1/markets/quote
https://prod.truex.co/api/v1/markets/quote
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.truemarkets.co/_mock/apis/cefi-direct/rest/v1/api/v1/markets/quote \
-H 'Content-Type: application/json' \
-d '{
"qty": "1.5",
"instrument_id": "1",
"side": "BUY",
"qty_unit": "BASE"
}'Successful operation.
The base quantity. For qty_unit=QUOTE, this is the computed base amount. For qty_unit=BASE, this echoes back the requested base quantity.
The calculated VWAP (Volume-Weighted Average Price) across consumed order book levels.
Schema v2026_01_23 only. The expected quote amount consumed from visible order book liquidity.
{ "qty": "1.5", "price": "50025.50", "notional": "75038.25", "notional_residual": "0.10" }
Change Log
| Version | Date | Notes |
|---|---|---|
| v1.0.4 | 2026-03-12 | Compute quote now works for both base and qoute bases. |
| v1.0.3 | 2026-01-27 | Pluralize all endpoints. Deprecate singular versions. |
| v1.0.2 | 2026-01-24 | Add API versioning support and versions endpoint. |
| v1.0.1 | 2025-10-24 | Add gateway health endpoint. |
| v1.0.0 | 2025-10-16 | Initial Release. |