Order endpoints require theDocumentation Index
Fetch the complete documentation index at: https://docs.dojifunded.com/llms.txt
Use this file to discover all available pages before exploring further.
TRADE or MANAGE_ORDERS permission scope depending on the operation. See Authentication for scope details.
Place an order
TRADE
Single endpoint for all order types — market, limit, stop, take-profit — across all venues.
Request fields
UUID of the account to trade on. Must be owned by the authenticated user.
Tradable symbol, e.g.
BTC-USD, ETH-USD, AAPL-USD. See GET /v1/tickers for the full catalog. Symbol variants like BTCUSD, BTC/USD, and btc-usd are also accepted.BUY or SELL.Order type:
MARKET | LIMIT | STOP | TAKE_PROFIT.Base-asset quantity. Must be positive.
Limit price. Required when
kind is LIMIT.Trigger reference price. Required when
kind is STOP or TAKE_PROFIT.Time-in-force. One of:
| Value | Meaning |
|---|---|
GTC | Good till cancelled |
GTD | Good till date |
GTX | Post-only intent (same as GTC + post_only) |
IOC | Immediate or cancel |
FOK | Fill or kill |
Reject the order if it would be immediately matched as a taker.
Only reduce an existing position — never open or increase one.
For stop/TP orders: trigger against the index price.
For stop/TP orders: trigger against the mark price.
Your own deduplication ID. Retrying with the same
client_id is safe — the engine returns the original result rather than placing a duplicate. Surfaces in fills and audit logs.Execution venue override:
GMX | OSTIUM. Overrides the account default for this order only.UUID of a parent order. Links a TP or SL to its entry.
UUID of a specific open position to target when reducing.
Response
The created order with its current status.
Fills generated immediately by the order (market orders, IOC/FOK).
Non-empty when the order was rejected by a risk rule. Each entry includes
rule, severity, and a human-readable message. The order is not placed when violations are present.Risk-rule rejections come back with HTTP
200 but a non-empty violations array — check this field in every response.List open orders
READ_ONLY
Returns all working orders for the account.
Cancel an order
MANAGE_ORDERS
Cancels a working order. Returns the final order state.
Close a position
TRADE
Convenience endpoint that sends a reduce-only order against an open position.
Symbol of the position to close.
Partial close quantity. Omit to close the full position.
Order type for the closing order. Defaults to
MARKET.Limit price (required if
kind is LIMIT).Time-in-force for the closing order.
Deduplication ID. Safe to retry.
Idempotency
Always set a stableclient_id per trading intent. If a request times out or returns a 5xx error, retry with the same client_id — the engine returns the original result without placing a duplicate order. See Errors for retry guidance.
