Cancel an existing order.
Request containing accountId and orderId to cancel
Response indicating success or failure
Modify an existing order's size or price.
Request containing orderId and fields to modify
Response indicating success or failure
Place a new order.
Order details including type, side, size, and prices
Response containing the new orderId
// Market order
await client.orders.place({
accountId: 123,
contractId: 'CON.F.US.ENQ.M25',
type: OrderType.Market,
side: OrderSide.Buy,
size: 1,
});
// Limit order
await client.orders.place({
accountId: 123,
contractId: 'CON.F.US.ENQ.M25',
type: OrderType.Limit,
side: OrderSide.Buy,
size: 1,
limitPrice: 5000.00,
});
Search historical orders within a date range.
Search parameters including accountId and optional date range
Array of orders matching the search criteria
Get all currently open (working) orders for an account.
Request containing the accountId
Array of open orders
API for managing orders - place, cancel, modify, and search.
Example