Template Detail

This endpoint allows you to retrieve configurations of a Template

Get template detail

GET https://api.aitrade.com/api/templates/{template_id}

Query Params

None

Response

  • Success (200): Returns the details of the template with configurations.

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

  • Failure (500): Server error.

{
    "code": 200,
    "message": "Success",
    "template": {
        "id": 3,
        "owner_id": 19,
        "bot_id": 18,
        "status": "approved",
        "title": "Market Neutral, BEST BOT AWARD",
        "description": "This bot trades in up, down and range bound market to deliver consistent returns. Please ensure that you have at least 7x the price of the stock that you want to trade,  allocated for this bot. For e.g., if a stock price is $1, you need $7 for fund. \r\nhttps://blog.stockhero.ai/market-neutral-bot-outperforms-amidst-brutal-august-to-september-markets/",
        "apy": 22.62,
        "performance": 85.81,
        "reason": null,
        "wl_ratio": 100,
        "total_deal": 17,
        "avg_monthly_deal": 3.29,
        "total_profit": 0,
        "created_at": "2022-10-01 06:11:44",
        "updated_at": "2024-04-03 10:11:26",
        "deleted_at": null,
        "image": "https://stockhero.s3.ap-southeast-1.amazonaws.com/public/templates/production/bot6.png",
        "view_count": 8632,
        "like_count": 69,
        "strategy": "Long",
        "total_thumbs_up": 69,
        "bot": {
            "id": 18,
            "strategy": "Long",
            "initial_fund": 100000,
            "profit": 1.88,
            "stop_loss": 0,
            "updated_at": "2024-04-01 15:45:29",
            "created_at": "2021-10-17 07:20:55",
            "deleted_at": null,
            "pair_id": 1,
            "order_type": "market",
            "frequency":15
            "base_order_percentage":24,
            "base_order_type":"static"
            "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,
                "deleted_at": 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,
                "deleted_at": null,
            }
        ],
        "real_performances": {
            "id": 31283,
            "template_id": 3,
            "total_deal": 886,
            "avg_wl": 88.37,
            "total_deal_3_months": 414,
            "avg_wl_3_months": 87.43,
            "win_rate": 92,
            "track_record": 90,
            "bot_activity": 50,
            "created_at": "2023-04-18 08:29:49",
            "updated_at": "2024-03-31 00:01:15"
        }
    }
}

Last updated