Tip: Orders are indexed by timestamp; if start_time is not specified, the response will take longer as it will parse through your full order history. Queries with start_time parameter could be up to 10x faster than queries without start_time.
Place orders
Limit and market orders
Submitted orders will immediately return a response saying that the order is in 'processing' status and will include an order ID. To verify the status of the order is 'confirmed', we recommend subscribing to the accounts websocket channel. Alternatively, check the order status by order ID.
To keep an orderly market, RabbitX has a 1,000 open order limit per account.
Position stop loss and take profits
Parameters{ market_id: 'BTC-USD', price:19800, side: 'long',// 'long' or 'short' size: 1.00, // size is percentage of the position. 0.5 means 50% of the position. 1.0 means 100% of the position.
type: 'stop_loss' // 'stop_loss' or 'take_profit' type: 'limit' // 'market' or 'limit' client_order_id: '' // (optional) trigger_price: 20000// required time_in_force: 'post_only' // (optional) 'good_till_cancel' 'post_only' 'immediate_or_cancel' 'fill_or_kill'}
Stop limit and stop market
Parameters{ market_id: 'BTC-USD', price:19800,// required for stop_limit order type side: 'long',// 'long' or 'short' size:0.45, type: 'stop_limit' // 'stop_limit' or 'stop_market' client_order_id: '' // (optional) trigger_price: 20000// required time_in_force: 'post_only' // (optional) 'good_till_cancel' 'post_only' 'immediate_or_cancel' 'fill_or_kill'}