Grid Order
This section documents the grid_order action
Example Request
This example will place 11 equal limit orders on BTC between the price of 100,000 and 98,000 using a total size of $150 USD split across each orders.
{
"action": "grid_order",
"coin": "BTC",
"size_usd": 150,
"upper_price": 120000,
"end_price": 100000,
"num_grids": 10,
"bot_id": BOT_ID,
"api_key": "API_KEY"
}coin*
This required parameter indicates which coin to use for the action.
is_buy
This parameter indicates the direction bias of the grid.
Truefor long-only positionsFalsefor short-only positions
upper_price*
This required parameter indicates the upper price of the gird.
A value of
100000places the last upper grid order at the price100,000
lower_price*
This required parameter indicates the lower price of the grid.
A value of
98000places the last lower grid order at the price98,000
num_grids*
This required parameter indicates the total number of grids to create.
A value of
5will create5grids (6 orders)
Sizes*
size
This parameter indicates a size in contracts.
A value of
0.005is equal to0.005 BTC
size_usd
This parameter indicates a size in USD.
A value of
100is equal to$100 USD
size_pct
This parameter indicates a size in percentage of available balance.
A value of
0.1is equal to10%
Take-Profit & Stop-Loss
These parameters allows you to add position take-profit and stop-loss orders.
Only available when specifying the is_buy parameter
sl_pct
This parameter indicates the % from entry to place your stop-loss.
A value of
0.01is equal to a1% stop-loss
tp_pct
This parameter indicates the % from entry to place your take-profit.
A value of
0.01is equal to a1% take-profit
sl
This parameter indicates a direct price to place your stop-loss.
tp
This parameter indicates a direct price to place your take-profit.
delay
This parameter indicates a number of seconds to wait before triggering the action.
A value of
5is equal to a5 secondsdelayMax. allowed delay is
10 seconds
Last updated
Was this helpful?