Copy DCA Bot

Description: Copies the bot from or to another linked exchange account connected to 3Commas

Permission: BOTS_WRITE Security: SIGNED

POST

/ver1/bots/{bot_id}/copy_and_create

Path Parameter

bot_id integer required Unique 3Commas ID for this DCA Bot entity you want to copy

Body Parameters

name string required The name for new DCA Bot specified by the user

secret string required A unique code used for copying this bot, retrieved from the url_secret parameter

amount number Maximum amount allocated for bot usage. Calculated based on the current rate

Response Parameters

bot_id integer Unique 3Commas ID for this DCA Bot entity

bot_required_amount string The minimum amount of funds required to launch this bot

Example Request

POST /ver1/bots/12345678/copy_and_create
Body:

{
   "name": "Name DCA Bot",
   "secret": "ab7b22d2f1"
}

Example Response and Errors

Status: 201 Created

{
    "bot_id": 23456789,
    "bot_required_amount": 240
}
Status: 400 Bad Request

{
    "error": "record_invalid",
    "error_description": "Invalid parameters",
    "error_attributes": {
        "name": [
            "is missing"
        ]
    }
}
Status: 401 Unauthorized

{
    "error": "signature_invalid",
    "error_description": "Provided signature is invalid"
}

Last updated

Was this helpful?