Scale Order
This section documents the scale_order action
Example Request
This example will place 5 equal
limit orders to open a long position
on BTC
between the price of 100,000
and 98,000
using a total size of $100 USD
This example will place 3 equal
limit orders to close a long position
on BTC
between the price of 105,000
and 106,000
using 100% of current position size
coin*
This required parameter indicates which coin to use for the action.
is_buy*
This required parameter indicates the direction of the trade.
True
can open a Long position or close a Short positionFalse
can open a Short position or close a Long position
reduce_only*
This parameter is only available for Perps.
This required parameter indicates whether an order should only be used to close an existing position (true) or for both opening and closing/reducing positions. (false)
A value of
true
will only allow closing/reducing positionA value of
false
will allow both opening and closing position
start_price*
This required parameter indicates the price to place the first limit order
A value of
100000
places the first limit order at the price100,000
end_price*
This required parameter indicates the price to place the last limit order
A value of
98000
places the last limit order at the price98,000
num_orders*
This required parameter indicates the total numer of limit orders to place
A value of
5
will place5
different limit orders
skew
This parameter indicates the size difference between the first and last limit order.
A value of 2 will result in the last order being twice as large in size as the first order
Sizes
size
This parameter indicates a size in contracts to use for the trade.
A value of
0.005
is equal to0.005 BTC
(requested coin)
size_usd
This parameter indicates a size in USD to use for the trade
A value of
100
is equal to$100 USD
size_pct
This parameter indicates either a size % of available balance to use when opening an order, or a size % of the current position when closing an order.
A value of
0.1
is equal to10%
slippage_pct
This parameter indicates the Max. % slippage allowed for the trade to execute.
A value of
0.05
is equal to5%
delay
This parameter indicates a number of seconds to wait before triggering the action
A value of
5
is equal to a5 seconds
delayMax. allowed delay is
10 seconds
Last updated
Was this helpful?