For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /api/institutional/get-orders-plural-cefi.md.
Get orders
Fetches all orders for a client entered within the past 24 hours on the exchange. A filter can be provided to limit the results.
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.
size?integerNumber of records to return per page. Maximum allowed value is 100.
1 <= value <= 10010skip?integerNumber of records to skip before returning results. Used for offset-based pagination.
0 <= value <= 2147483647timestamp*stringA Unix UTC timestamp in nanoseconds used as a reference point for fetching orders. The query will retrieve results created before this timestamp, enabling precise time-based filtering and ensuring stable pagination. If omitted, the server responds with 400 BAD REQUEST.
^[0-9]{19}$status?stringComma-separated list of order statuses to filter by.
x-truex-auth-userid?stringHMAC only. The client the request acts for. Omit it with a JWT, which carries your client id.
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]?A single trade execution against an order.
curl -X GET 'https://api.truex.co/v1/cefi/orders?timestamp=1741523275598727336&status=ACTIVE' \ -H 'x-truex-auth-timestamp: string'[ { "client_id": "78901968715907076", "external_id": "550e8400-e29b-41d4-a716-446655440000", "instrument_id": "78901968728948750", "order_id": "8005237327190949926", "trade_price": "111480.5", "trade_qty": "0.06089", "side": "BUY", "trade_fee_bps": "5", "trade_fee_rate": "0.0005", "liq_flag": "TAKER", "match_id": "147670564223998146302870408890920992792", "timestamp": "1752163579133484200" }]Get client fees GET
Returns a client's maker and taker fee tiers and the fee rates those tiers currently resolve to. Rates are in basis points of trade notional ("30" is 0.3%, "0.5" is half a basis point). A tier with no configured fee resolves to "0". JWT callers may omit client_id to read their own client; an HMAC caller without client_id reads the client named by X-Truex-Auth-UserId.
Create order POST
Create a new order for a specific instrument.