Bot Detail

This endpoint allows you get details of the bot created.

Get the Details of a Bot

GET https://api.aitrade.com/api/bot

Query Params

Name
Type
Required
Description

id

integer

A unique ID to identify the bot

Responses:

  • Success (200): Returns the bot detail.

  • Failure (401): Unauthenticated, indicating you're not logged in or lack permission to carry out the request.

{
    "code": 200,
    "message": "Success",
    "bot": {
        "id": 13432,
        "user_id": 3,
        "name": "New Bot",
        "status": "active",
        "frequency": 1440,
        "exchange_pair_id": 2,
        "strategy": "Long",
        "initial_fund": 1000,
        "base_order_percentage": 50,
        "base_order_type": "static",
        "extra_order_percentage": 25,
        "profit": 5,
        "stop_loss": 0,
        "updated_at": "2024-03-28 10:55:31",
        "created_at": "2024-03-28 10:55:31",
        "deleted_at": null,
        "pair_id": 1,
        "exchange_id": 0,
        "type": "advance",
        "min_tp": 0,
        "rent_id": null,
        "order_type": "market",
        "deals_analysis": {
            "min_idx": 0,
            "max_idx": 0,
            "total_position": 0,
            "profitable_position": 0,
            "positions": [],
            "return_value_avg": 0,
            "total_performance": 0,
            "trade_interval": 0,
            "trade_interval_display": "",
            "avg_deal_duration": 0,
            "avg_deal_duration_display": "",
            "wl_ratio": 0,
            "apy": 0,
            "avg_monthly_deal": 0,
            "trades": 0,
            "max_drawdown": 0,
        },
        "deal_status": 2,
        "deal_status_name": "Waiting For Entry",
        "deal_status_name_short": "WAITING",
        "bot_indicators": [
            {
                "id": 34284,
                "bot_id": 13432,
                "indicator_id": 1,
                "name": "Bollinger Band",
                "type": "entry",
                "period_num": 20,
                "value2": 2,
                "value3": 2,
                "value6": null,
                "value5": null,
                "value4": null,
            },
            {
                "id": 34285,
                "bot_id": 13432,
                "indicator_id": 2,
                "name": "EMA",
                "type": "entry",
                "period_num": 50,
                "value2": 9,
                "value3": null,
                "value6": null,
                "value5": null,
                "value4": null,
                
            }
        ],
        "tv_alerts": [],
        "exchange_pair": {
            "id": 2,
            "exchange_id": 0,
            "pair_id": 1,
            "name": "AAPL/USD",
            "price_precision": 2,
            "amount_precision": 0,
            "pair": {
                "id": 1,
                "from": "AAPL",
                "to": "USD",
                "name": "AAPL-USD",
                "kline_exchange_id": 16,
                "quote_image": "https://stockhero.s3.ap-southeast-1.amazonaws.com/public/coins/USD.png",
                "base_image": "https://stockhero.s3.ap-southeast-1.amazonaws.com/public/coins/AAPL.png"
            }
        },
        "deals": [],
        "category": "manual",
    }
}

Last updated