How to make a purchase with trailing?
xLinuxUserx opened this issue · 0 comments
xLinuxUserx commented
Folks,
I need to make a buy, sell, trailing and stop-loss in just 1 request.
The only thing missing is trailing and I'm not getting it to work. Can someone help me please. Below is the payload I'm using:
payload={
"account_id": contaid,
"pair": coin,
"note": "pumpsniper",
"skip_enter_step": "true",
"position": {
"type": "buy",
"order_type": "market",
"units": {
"value": units
},
"price": {
"value": values
}
},
"take_profit": {
"enabled": "true",
"steps": [
{
"order_type": "limit",
"price": {
"value": values2,
"type": "bid"
},
"volume": 100,
}
]
},
"stop_loss": {
"enabled": "true",
"order_type": "market",
"conditional": {
"price": {
"value": stoploss,
"type": "bid"
}
}
}
}
Thanks!