Backtest

This endpoint allows you to get a snapshot of the bot's performance, showcasing its ability to generate profitable positions etc.

Get Backtest Results

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

Query Params

Name
Type
Required
Description

template_id

integer

Unique id of the bot template

initial_fund

float

Fund allocation for the bot

exchange_pair_id

integer

frequency

integer

options are, 1,5,15,60,240,1440

strategy

string

Options are Long, Short

base_order_percentage

integer

Percentage of Fund used for the base order

extra_order_percentage

integer

Remaining Fund not used in base order are used to create extra orders. The number indicates percentage used for the next order.

base_order_type

string

Options static, dynamic. Static will always use the same Base Order Limit set, regardless of the bots performance. Dynamic allows the bot to use profits from it’s previous trades for it’s next trade or lowers the base order if it has encountered a loss previously

order_type

string

Options are limit,market . Limit order is normally used to ensure price level especially when your take profit level is small. Market order is typically used when you need to ensure immediate Filled condition

profit

float

Take profit percentage

stop_loss

float

Stop loss percentage

bot_indicators

Object

indicator_triggers_entry

integer

Number of entry indicators

indicator_triggers_exit

integer

Number of exit indicators

back_test_start

timestamp

Timestamp of start date

back_test_end

timestamp

Timestamp of end date

Bot's Backtest Summary

The backtest performed returned a success code (200) with the key statistics provided for the performance evaluation of the trading bot over a specified time frame. Below is a brief summary of the key metrics:

  • Total Positions Evaluated: 67

  • Profitable Positions: 40, indicating a win-loss ratio of approximately 59.7%

  • Average Return Value: -2.26

  • Total Performance: -22.62%

  • Average Deal Duration: About 1 day and 23 hours

  • Annual Percentage Yield (APY): 0.02%

  • Average Monthly Deals: 11.23

  • Maximum Drawdown: 6.31%, reflecting the largest drop from peak to trough during the specified backtest period.

{
    "code": 200,
    "message": "Success",
    "bot": {
        "user_id": 1,
        "strategy": "Long",
        "frequency": "5",
        "exchange_id": 1,
        "pair_id": 358,
        "exchange_pair_id": "358",
        "initial_fund": "10000000",
        "base_order_percentage": "100",
        "base_order_type": "static",
        "extra_order_percentage": "25",
        "profit": "6",
        "stop_loss": "1",
        "back_test_time_frame": "365",
        "indicator_triggers_entry": "1",
        "type": "advance",
        "back_test_start": null,
        "back_test_end": null,
        "dca_setting": {
            "entry_type": null,
            "value": null,
            "value2": null,
            "value3": null,
            "martingale": 0
        },
        "bot_indicators": [
            {
                "bot_id": null,
                "name": "Bollinger Band",
                "period_num": 20,
                "value2": 2,
                "value3": 2,
                "value4": null,
                "value5": null,
                "value6": null,
                "indicator_id": 1,
                "type": "entry"
            },
            {
                "bot_id": null,
                "name": "Volume",
                "period_num": 2,
                "value2": 0,
                "value3": 0,
                "value4": null,
                "value5": null,
                "value6": null,
                "indicator_id": 6,
                "type": "entry"
            },
            {
                "bot_id": null,
                "name": "EMA",
                "period_num": 50,
                "value2": 9,
                "value3": null,
                "value4": null,
                "value5": null,
                "value6": null,
                "indicator_id": 2,
                "type": "entry"
            },
            {
                "bot_id": null,
                "name": "MACD",
                "period_num": 12,
                "value2": 26,
                "value3": 9,
                "value4": null,
                "value5": null,
                "value6": null,
                "indicator_id": 5,
                "type": "entry"
            }
        ],
        "back_test": {
            "min_idx": 0,
            "max_idx": 54790,
            "total_position": 27,
            "profitable_position": 3,
            "positions": [
                {
                    "start_idx": 0,
                    "return_value": -156248,
                    "accumulated_asset": 9843752,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 252,
                            "quantity": 39062,
                            "filled": 39062,
                            "average": 252,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-05-21 10:20:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 256,
                            "quantity": 39062,
                            "filled": 39062,
                            "average": 256,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-05-21 09:00:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -156248,
                    "avg_price": 256,
                    "start_fund": {
                        "base": 0,
                        "quote": 10000000
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 9843752
                    },
                    "timestamp": 1716282000
                },
                {
                    "start_idx": 85,
                    "return_value": 634912,
                    "accumulated_asset": 10478664,
                    "deal_trade_histories": [
                        {
                            "name": "TP",
                            "price": 268,
                            "quantity": 39682,
                            "filled": 39682,
                            "average": 268,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-05-27 09:35:00",
                            "order_name": "Take Profit"
                        },
                        {
                            "name": "BO",
                            "price": 252,
                            "quantity": 39682,
                            "filled": 39682,
                            "average": 252,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-05-21 10:25:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": 634912,
                    "avg_price": 252,
                    "start_fund": {
                        "base": 0,
                        "quote": 9843752
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 10478664
                    },
                    "timestamp": 1716287100
                },
                {
                    "start_idx": 8680,
                    "return_value": -145984,
                    "accumulated_asset": 10332680,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 270,
                            "quantity": 36496,
                            "filled": 36496,
                            "average": 270,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-05-27 09:55:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 274,
                            "quantity": 36496,
                            "filled": 36496,
                            "average": 274,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-05-27 09:40:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -145984,
                    "avg_price": 274,
                    "start_fund": {
                        "base": 0,
                        "quote": 10478664
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 10332680
                    },
                    "timestamp": 1716802800
                },
                {
                    "start_idx": 8700,
                    "return_value": -220584,
                    "accumulated_asset": 10112096,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 266,
                            "quantity": 36764,
                            "filled": 36764,
                            "average": 266,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-05-27 10:10:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 272,
                            "quantity": 36764,
                            "filled": 36764,
                            "average": 272,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-05-27 10:00:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -220584,
                    "avg_price": 272,
                    "start_fund": {
                        "base": 0,
                        "quote": 10332680
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 10112096
                    },
                    "timestamp": 1716804000
                },
                {
                    "start_idx": 8715,
                    "return_value": -150372,
                    "accumulated_asset": 9961724,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 262,
                            "quantity": 37593,
                            "filled": 37593,
                            "average": 262,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-05-27 10:55:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 266,
                            "quantity": 37593,
                            "filled": 37593,
                            "average": 266,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-05-27 10:15:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -150372,
                    "avg_price": 266,
                    "start_fund": {
                        "base": 0,
                        "quote": 10112096
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 9961724
                    },
                    "timestamp": 1716804900
                },
                {
                    "start_idx": 8760,
                    "return_value": -152668,
                    "accumulated_asset": 9809056,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 258,
                            "quantity": 38167,
                            "filled": 38167,
                            "average": 258,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-05-27 16:00:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 262,
                            "quantity": 38167,
                            "filled": 38167,
                            "average": 262,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-05-27 11:00:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -152668,
                    "avg_price": 262,
                    "start_fund": {
                        "base": 0,
                        "quote": 9961724
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 9809056
                    },
                    "timestamp": 1716807600
                },
                {
                    "start_idx": 10080,
                    "return_value": -153844,
                    "accumulated_asset": 9655212,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 256,
                            "quantity": 38461,
                            "filled": 38461,
                            "average": 256,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-05-28 13:35:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 260,
                            "quantity": 38461,
                            "filled": 38461,
                            "average": 260,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-05-28 09:00:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -153844,
                    "avg_price": 260,
                    "start_fund": {
                        "base": 0,
                        "quote": 9809056
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 9655212
                    },
                    "timestamp": 1716886800
                },
                {
                    "start_idx": 10360,
                    "return_value": -155036,
                    "accumulated_asset": 9500176,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 254,
                            "quantity": 38759,
                            "filled": 38759,
                            "average": 254,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-05-29 10:00:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 258,
                            "quantity": 38759,
                            "filled": 38759,
                            "average": 258,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-05-28 13:40:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -155036,
                    "avg_price": 258,
                    "start_fund": {
                        "base": 0,
                        "quote": 9655212
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 9500176
                    },
                    "timestamp": 1716903600
                },
                {
                    "start_idx": 11585,
                    "return_value": -314960,
                    "accumulated_asset": 9185216,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 246,
                            "quantity": 39370,
                            "filled": 39370,
                            "average": 246,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-05-30 09:00:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 254,
                            "quantity": 39370,
                            "filled": 39370,
                            "average": 254,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-05-29 10:05:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -314960,
                    "avg_price": 254,
                    "start_fund": {
                        "base": 0,
                        "quote": 9500176
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 9185216
                    },
                    "timestamp": 1716977100
                },
                {
                    "start_idx": 12965,
                    "return_value": -161288,
                    "accumulated_asset": 9023928,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 244,
                            "quantity": 40322,
                            "filled": 40322,
                            "average": 244,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-05-30 10:05:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 248,
                            "quantity": 40322,
                            "filled": 40322,
                            "average": 248,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-05-30 09:05:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -161288,
                    "avg_price": 248,
                    "start_fund": {
                        "base": 0,
                        "quote": 9185216
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 9023928
                    },
                    "timestamp": 1717059900
                },
                {
                    "start_idx": 13030,
                    "return_value": -165288,
                    "accumulated_asset": 8858640,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 238,
                            "quantity": 41322,
                            "filled": 41322,
                            "average": 238,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-10 13:50:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 242,
                            "quantity": 41322,
                            "filled": 41322,
                            "average": 242,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-05-30 10:10:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -165288,
                    "avg_price": 242,
                    "start_fund": {
                        "base": 0,
                        "quote": 9023928
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 8858640
                    },
                    "timestamp": 1717063800
                },
                {
                    "start_idx": 29095,
                    "return_value": -168064,
                    "accumulated_asset": 8690576,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 234,
                            "quantity": 42016,
                            "filled": 42016,
                            "average": 234,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-11 09:35:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 238,
                            "quantity": 42016,
                            "filled": 42016,
                            "average": 238,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-06-10 13:55:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -168064,
                    "avg_price": 238,
                    "start_fund": {
                        "base": 0,
                        "quote": 8858640
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 8690576
                    },
                    "timestamp": 1718027700
                },
                {
                    "start_idx": 30280,
                    "return_value": -169488,
                    "accumulated_asset": 8521088,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 232,
                            "quantity": 42372,
                            "filled": 42372,
                            "average": 232,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-11 14:45:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 236,
                            "quantity": 42372,
                            "filled": 42372,
                            "average": 236,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-06-11 09:40:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -169488,
                    "avg_price": 236,
                    "start_fund": {
                        "base": 0,
                        "quote": 8690576
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 8521088
                    },
                    "timestamp": 1718098800
                },
                {
                    "start_idx": 30590,
                    "return_value": -170940,
                    "accumulated_asset": 8350148,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 230,
                            "quantity": 42735,
                            "filled": 42735,
                            "average": 230,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-11 16:00:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 234,
                            "quantity": 42735,
                            "filled": 42735,
                            "average": 234,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-06-11 14:50:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -170940,
                    "avg_price": 234,
                    "start_fund": {
                        "base": 0,
                        "quote": 8521088
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 8350148
                    },
                    "timestamp": 1718117400
                },
                {
                    "start_idx": 31680,
                    "return_value": -258618,
                    "accumulated_asset": 8091530,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 226,
                            "quantity": 43103,
                            "filled": 43103,
                            "average": 226,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-12 09:35:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 232,
                            "quantity": 43103,
                            "filled": 43103,
                            "average": 232,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-06-12 09:00:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -258618,
                    "avg_price": 232,
                    "start_fund": {
                        "base": 0,
                        "quote": 8350148
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 8091530
                    },
                    "timestamp": 1718182800
                },
                {
                    "start_idx": 31720,
                    "return_value": -178568,
                    "accumulated_asset": 7912962,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 220,
                            "quantity": 44642,
                            "filled": 44642,
                            "average": 220,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-14 15:45:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 224,
                            "quantity": 44642,
                            "filled": 44642,
                            "average": 224,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-06-12 09:40:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -178568,
                    "avg_price": 224,
                    "start_fund": {
                        "base": 0,
                        "quote": 8091530
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 7912962
                    },
                    "timestamp": 1718185200
                },
                {
                    "start_idx": 34980,
                    "return_value": -181816,
                    "accumulated_asset": 7731146,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 216,
                            "quantity": 45454,
                            "filled": 45454,
                            "average": 216,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-19 09:00:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 220,
                            "quantity": 45454,
                            "filled": 45454,
                            "average": 220,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-06-14 16:00:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -181816,
                    "avg_price": 220,
                    "start_fund": {
                        "base": 0,
                        "quote": 7912962
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 7731146
                    },
                    "timestamp": 1718380800
                },
                {
                    "start_idx": 41765,
                    "return_value": -185184,
                    "accumulated_asset": 7545962,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 212,
                            "quantity": 46296,
                            "filled": 46296,
                            "average": 212,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-19 10:40:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 216,
                            "quantity": 46296,
                            "filled": 46296,
                            "average": 216,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-06-19 09:05:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -185184,
                    "avg_price": 216,
                    "start_fund": {
                        "base": 0,
                        "quote": 7731146
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 7545962
                    },
                    "timestamp": 1718787900
                },
                {
                    "start_idx": 41865,
                    "return_value": -186912,
                    "accumulated_asset": 7359050,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 210,
                            "quantity": 46728,
                            "filled": 46728,
                            "average": 210,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-19 15:00:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 214,
                            "quantity": 46728,
                            "filled": 46728,
                            "average": 214,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-06-19 10:45:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -186912,
                    "avg_price": 214,
                    "start_fund": {
                        "base": 0,
                        "quote": 7545962
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 7359050
                    },
                    "timestamp": 1718793900
                },
                {
                    "start_idx": 42125,
                    "return_value": -188676,
                    "accumulated_asset": 7170374,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 208,
                            "quantity": 47169,
                            "filled": 47169,
                            "average": 208,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-19 16:00:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 212,
                            "quantity": 47169,
                            "filled": 47169,
                            "average": 212,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-06-19 15:05:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -188676,
                    "avg_price": 212,
                    "start_fund": {
                        "base": 0,
                        "quote": 7359050
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 7170374
                    },
                    "timestamp": 1718809500
                },
                {
                    "start_idx": 43200,
                    "return_value": 666666,
                    "accumulated_asset": 7837040,
                    "deal_trade_histories": [
                        {
                            "name": "TP",
                            "price": 224,
                            "quantity": 47619,
                            "filled": 47619,
                            "average": 224,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-24 09:00:00",
                            "order_name": "Take Profit"
                        },
                        {
                            "name": "BO",
                            "price": 210,
                            "quantity": 47619,
                            "filled": 47619,
                            "average": 210,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-06-20 09:00:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": 666666,
                    "avg_price": 210,
                    "start_fund": {
                        "base": 0,
                        "quote": 7170374
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 7837040
                    },
                    "timestamp": 1718874000
                },
                {
                    "start_idx": 48965,
                    "return_value": -178568,
                    "accumulated_asset": 7658472,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 220,
                            "quantity": 44642,
                            "filled": 44642,
                            "average": 220,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-24 09:30:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 224,
                            "quantity": 44642,
                            "filled": 44642,
                            "average": 224,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-06-24 09:05:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -178568,
                    "avg_price": 224,
                    "start_fund": {
                        "base": 0,
                        "quote": 7837040
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 7658472
                    },
                    "timestamp": 1719219900
                },
                {
                    "start_idx": 48995,
                    "return_value": -180180,
                    "accumulated_asset": 7478292,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 218,
                            "quantity": 45045,
                            "filled": 45045,
                            "average": 218,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-25 09:05:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 222,
                            "quantity": 45045,
                            "filled": 45045,
                            "average": 222,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-06-24 09:35:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -180180,
                    "avg_price": 222,
                    "start_fund": {
                        "base": 0,
                        "quote": 7658472
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 7478292
                    },
                    "timestamp": 1719221700
                },
                {
                    "start_idx": 50410,
                    "return_value": -272724,
                    "accumulated_asset": 7205568,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 214,
                            "quantity": 45454,
                            "filled": 45454,
                            "average": 214,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-25 09:25:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 220,
                            "quantity": 45454,
                            "filled": 45454,
                            "average": 220,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-06-25 09:10:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -272724,
                    "avg_price": 220,
                    "start_fund": {
                        "base": 0,
                        "quote": 7478292
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 7205568
                    },
                    "timestamp": 1719306600
                },
                {
                    "start_idx": 50430,
                    "return_value": 642194,
                    "accumulated_asset": 7847762,
                    "deal_trade_histories": [
                        {
                            "name": "TP",
                            "price": 232,
                            "quantity": 45871,
                            "filled": 45871,
                            "average": 232,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-28 09:20:00",
                            "order_name": "Take Profit"
                        },
                        {
                            "name": "BO",
                            "price": 218,
                            "quantity": 45871,
                            "filled": 45871,
                            "average": 218,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-06-25 09:30:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": 642194,
                    "avg_price": 218,
                    "start_fund": {
                        "base": 0,
                        "quote": 7205568
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 7847762
                    },
                    "timestamp": 1719307800
                },
                {
                    "start_idx": 54745,
                    "return_value": -172412,
                    "accumulated_asset": 7675350,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 228,
                            "quantity": 43103,
                            "filled": 43103,
                            "average": 228,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-28 10:05:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 232,
                            "quantity": 43103,
                            "filled": 43103,
                            "average": 232,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-06-28 09:25:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -172412,
                    "avg_price": 232,
                    "start_fund": {
                        "base": 0,
                        "quote": 7847762
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 7675350
                    },
                    "timestamp": 1719566700
                },
                {
                    "start_idx": 54790,
                    "return_value": -173912,
                    "accumulated_asset": 7501438,
                    "deal_trade_histories": [
                        {
                            "name": "SL",
                            "price": 226,
                            "quantity": 43478,
                            "filled": 43478,
                            "average": 226,
                            "status": "filled",
                            "side": "SELL",
                            "created_at": "2024-06-28 11:00:00",
                            "order_name": "Stoploss"
                        },
                        {
                            "name": "BO",
                            "price": 230,
                            "quantity": 43478,
                            "filled": 43478,
                            "average": 230,
                            "status": "filled",
                            "side": "BUY",
                            "created_at": "2024-06-28 10:10:00",
                            "order_name": "Base"
                        }
                    ],
                    "performance": -173912,
                    "avg_price": 230,
                    "start_fund": {
                        "base": 0,
                        "quote": 7675350
                    },
                    "end_fund": {
                        "base": 0,
                        "quote": 7501438
                    },
                    "timestamp": 1719569400
                }
            ],
            "return_value_avg": -24.99,
            "total_performance": -2498562,
            "trade_interval": -119019230.76923077,
            "trade_interval_display": "-",
            "avg_deal_duration": 114788888.8888889,
            "avg_deal_duration_display": "2D 7h 53m",
            "wl_ratio": 11.11,
            "apy": -0.92,
            "avg_monthly_deal": 18.41,
            "trades": 0,
            "max_drawdown": 31.57,
            "sharpe_ratio": 0
        },
        "settings": [
            {
                "name": "user_id",
                "value": 1
            },
            {
                "name": "strategy",
                "value": "Long"
            },
            {
                "name": "frequency",
                "value": "5"
            },
            {
                "name": "back_test_start",
                "value": null
            },
            {
                "name": "exchange_id",
                "value": 1
            },
            {
                "name": "pair_id",
                "value": 358
            },
            {
                "name": "exchange_pair_id",
                "value": "358"
            },
            {
                "name": "initial_fund",
                "value": "10000000"
            },
            {
                "name": "base_order_percentage",
                "value": "100"
            },
            {
                "name": "base_order_type",
                "value": "static"
            },
            {
                "name": "extra_order_percentage",
                "value": "25"
            },
            {
                "name": "profit",
                "value": "6"
            },
            {
                "name": "stop_loss",
                "value": "1"
            },
            {
                "name": "back_test_time_frame",
                "value": "365"
            },
            {
                "name": "indicator_triggers_entry",
                "value": "1"
            },
            {
                "name": "type",
                "value": "advance"
            },
            {
                "name": "bot_indicators",
                "value": [
                    "{\"id\":null,\"name\":\"Bollinger Band\",\"description\":null,\"period_num\":20,\"value2\":2,\"value3\":2,\"value4\":null,\"value5\":null,\"value6\":null,\"updated_at\":null,\"created_at\":null,\"indicator_id\":1,\"ind_key\":7856,\"type\":\"entry\"}",
                    "{\"id\":null,\"name\":\"Volume\",\"description\":null,\"period_num\":2,\"value2\":0,\"value3\":0,\"value4\":null,\"value5\":null,\"value6\":null,\"updated_at\":null,\"created_at\":null,\"indicator_id\":6,\"ind_key\":808,\"type\":\"entry\"}",
                    "{\"id\":null,\"name\":\"EMA\",\"description\":null,\"period_num\":50,\"value2\":9,\"value3\":null,\"value4\":null,\"value5\":null,\"value6\":null,\"updated_at\":null,\"created_at\":null,\"indicator_id\":2,\"ind_key\":1887,\"type\":\"entry\"}",
                    "{\"id\":null,\"name\":\"MACD\",\"description\":null,\"period_num\":12,\"value2\":26,\"value3\":9,\"value4\":null,\"value5\":null,\"value6\":null,\"updated_at\":null,\"created_at\":null,\"indicator_id\":5,\"ind_key\":6007,\"type\":\"entry\"}"
                ]
            }
        ],
        "tsls": [],
        "tps": []
    }
}

Last updated