For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /api/institutional/get-clients-cefi.md.
Get clients
Query for a user's information.
x-truex-auth-token<token>Legacy authentication, being phased out in favour of JWT. Clients must compute and send an HMAC signature in x-truex-auth-signature.
Compute the payload exactly as:
timestamp + method + path + body
Then compute the signature as:
Base64( HMAC_SHA256(secret, payload) )
Rules:
timestampisx-truex-auth-timestampin seconds since Unix epoch.timestampmust be no older than 15 seconds and no more than 1 second in the future.methodis uppercase HTTP method (GET,POST,DELETE, etc.).pathis everything after the domain, including the leading/and the raw query string exactly as sent, still percent-encoded (e.g./v1/cefi/orders/EXT-1?id_type=client). Leave out the?when the query is empty.- Signatures over the path without its query are still accepted while signers move over.
bodyis the exact raw request body string. Use an empty string for requests with no body.
Example payload:
1700000000POST/v1/cefi/orders{"client_id":"7","instrument_id":"1","qty":"1","price":"100"}
Example signature (shell):
printf '%s' "$PAYLOAD" | openssl dgst -sha256 -hmac "$SECRET" -binary | base64
Required headers:
x-truex-auth-token: The ID of the HMAC key being used (API key).x-truex-auth-signature: The signature generated from processing the payload with the HMAC key.x-truex-auth-timestamp: Current time as seconds since epoch.x-truex-auth-userid: Client identifier, for organization keys. It is not signed, so keys that act on behalf of any client ignore it and name the client in the query or body.
id?stringID of client to query for.
^[1-9][0-9]*$1 <= lengthmnemonic?stringFilters clients by mnemonic (human readable text). Returns clients where the mnemonic is an exact match or contains the provided substring. Matching is case-sensitive.
x-truex-auth-timestamp*stringTimestamp when request was made in seconds since epoch. Must be no older than 15 seconds and no more than 1 second in the future. Required with both JWT and HMAC authentication; it guards against replayed requests.
x-truex-auth-token?stringHMAC only. The UUID affiliated with the HMAC key. Omit it with a JWT.
x-truex-auth-signature?stringHMAC only. The computed HMAC signature. Omit it with a JWT.
Successful operation.
application/json- response
[index: integer]?curl -X GET 'https://api.truex.co/v1/cefi/clients' \ -H 'x-truex-auth-timestamp: string'[ { "id": "78901949710204932", "status": "ACTIVE", "info": { "organization_id": "ed671d2b-bb9e-4cf5-9eb4-71b6db672207", "mnemonic": "CLIENT1", "type": "INDIVIDUAL", "maker_fee_tier": 1, "taker_fee_tier": 2, "self_trade_prevention": "CANCEL_AGGRESSIVE" }, "controls": { "rate_limit_tier": 0, "instrument_entitlements": [ "SPOT" ], "flags": 0 } }]Compute market quote POST
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. 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, the returned notional may be slightly less than the requested quote amount and the difference is reported in notional_residual.
Update settings PATCH
Update client level settings.