Active/Inactive Bot
This endpoint updates the status of the bot to active or inactive
POST
https://api.aitrade.com/api/update_bot_status
Request Body
Name
Type
Required
Description
id
integer
The id of the bot to active/inactive
status
string
active
or inactive
Responses:
{
"code": 200,
"message": "Success",
"bot": {
"id": 12516,
"user_id": 1,
"name": "1365 SOLAR-IDR 5m 1102",
"checked_at": "2024-07-01 09:18:00",
"status": "active",
...
}
}
{
"code": 200,
"message": "Success",
"bot": {
"id": 12516,
"user_id": 1,
"name": "1365 SOLAR-IDR 5m 1102",
"checked_at": "2024-07-01 09:18:00",
"status": "active",
"frequency": 15,
"exchange_pair_id": 1365,
"strategy": "Long",
"initial_fund": 15000000,
"base_order_percentage": 50,
"base_order_type": "static",
"extra_order_percentage": 25,
"profit": 10,
"stop_loss": 5,
"back_test_time_frame": 90,
"updated_at": "2024-07-11 03:32:17",
"created_at": "2024-06-12 06:28:20",
"deleted_at": null,
"indicator_triggers_entry": 1,
"indicator_triggers_exit": null,
"pair_id": 1365,
"exchange_id": 1,
"type": "advance",
"min_tp": 0,
"rent_id": null,
"order_type": "market",
"user": {
"id": 1,
"user_id": 271558,
"name": "zakiezakaria",
"email": "viet@novum.global",
"device_id": null,
"google_id": null,
"apple_id": null,
"facebook_id": null,
"email_verified_at": "2024-05-13 09:17:53",
"first_name": "",
"last_name": "zakiezakaria",
"date_of_birth": null,
"phone_number": "",
"device_security_enable": 0,
"status": null,
"is_admin": 0,
"created_at": "2024-05-13 09:17:53",
"updated_at": "2024-07-11 03:17:17",
"deleted_at": null,
"currency_id": 1,
"platform": null,
"referral_code": null,
"current_exchange": 0,
"google2fa_secret": null,
"role": "normal"
},
"exchange_pair": {
"id": 1365,
"exchange_id": 1,
"pair_id": 1365,
"name": "SOLA",
"price_precision": 0,
"amount_precision": 0,
"flags": 0,
"is_active": 1,
"deleted_at": null,
"future_type": null,
"future_time": null,
"contract_value": 100,
"company_name": "Xolare RCR Energy Tbk."
}
}
}
```
Last updated