Add manual safety trade
POST
/ver1/deals/:deal_id/add_fundsCreates a new additional safety manual trade entry.
Path Parameter
Body Parameters
Indicates the type of order: true
for a market order, false
for a limit order.
Defines the response format: deal
; market_order
; empty
.
Value deal
is using only for 1 pair bot.
default:
empty
Example Request
POST
/ver1/deals/2295672969/add_funds{
"quantity": 0.01,
"is_market": false,
"response_type": "market_order",
"rate": 0.2970
}
Response Parameters
Response format depends on choosing response_type
:
- market_order
- deal
- empty
The type of the order to be created by this trade.
Hide allowed valuesShow allowed values
- Base;
- Take profit;
- Stop Loss;
- Safety;
- Manual Safety;
More attributes
If successful, the response includes an updated copy of the Deals entity.
None
Example Responses
- 201 Created
- 400 Bad Request
{
"order_id": "1110817001",
"order_type": "SELL",
"deal_order_type": "Manual Safety",
"cancellable": true,
"status_string": "Active",
"created_at": "2024-11-11T16:46:59.479Z",
"updated_at": "2024-11-11T16:46:59.479Z",
"quantity": "0.0",
"quantity_remaining": "0.0",
"total": "0.0",
"rate": "0.297",
"average_price": "0.0"
}
{
"error": "record_invalid",
"error_description": "Invalid parameters",
"error_attributes": {
"rate": [
"is missing"
]
}
}