curl --request POST \
--url https://alphainsider.com/api/stopBot \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"bot_id": "<string>",
"close_on_stop": true
}
'{
"success": true,
"response": {
"bot_id": "h_zZfeqsX9o8hgB8DVc0P",
"user_id": "user_1",
"leverage": "2.000000000000000",
"slippage": "0.005000000000000",
"rebalance_on_start": true,
"close_on_stop": false,
"broker": "alpaca",
"type": "stock",
"live": false,
"account_id": "PA3815FAJZJV",
"status": "stopping",
"notifications": [
"info",
"warning",
"error"
],
"updated_at": "2024-10-23T14:47:32.896Z",
"created_at": "2024-10-23T14:36:02.484Z"
}
}Stop bot.
curl --request POST \
--url https://alphainsider.com/api/stopBot \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"bot_id": "<string>",
"close_on_stop": true
}
'{
"success": true,
"response": {
"bot_id": "h_zZfeqsX9o8hgB8DVc0P",
"user_id": "user_1",
"leverage": "2.000000000000000",
"slippage": "0.005000000000000",
"rebalance_on_start": true,
"close_on_stop": false,
"broker": "alpaca",
"type": "stock",
"live": false,
"account_id": "PA3815FAJZJV",
"status": "stopping",
"notifications": [
"info",
"warning",
"error"
],
"updated_at": "2024-10-23T14:47:32.896Z",
"created_at": "2024-10-23T14:36:02.484Z"
}
}