Add Manual Safety Trade

Description: Creates a new additional safety manual trade entry

Permission: BOTS_WRITE Security: SIGNED

POST

/ver1/deals/{deal_id}/add_funds

Path Parameter

deal_id integer required Unique 3Commas ID Deal entity

Body Parameters

quantity number required Specifies the amount for the manual safety trade

is_market boolean required Indicates the type of order: true for a market order, false for a limit order

response_type string Defines the response format: empty;deal;market_order deal is using only for 1 pair bot. Default: empty

rate number required Sets the rate for the safety order. Required if a limit order is used

Response Parameters

Response format depends on choosing response_type:

None

Example Request

POST /ver1/deals/2295672969/add_funds
Body:

{
   "quantity": 0.01,
   "is_market": false,
   "response_type": "market_order",
   "rate": 0.2970
}

Example Response and errors

Status: 201 Created

{
    "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"
}
Status: 400 Bad request

``` { "error": "record_invalid", "error_description": "Invalid parameters", "error_attributes": { "rate": [ "is missing" ] } } ```

Last updated

Was this helpful?