|
| 1 | +[trades] |
| 2 | +DataFrame |
| 3 | +{"shape":[0,0],"dtypes":{},"index_dtype":"int64","index_name":null,"columns":[]} |
| 4 | +# Empty DataFrame |
| 5 | + |
| 6 | +[stock_positions] |
| 7 | +DataFrame |
| 8 | +{"shape":[8,6],"dtypes":{"order_book_id":"object","symbol":"object","quantity":"float64","last_price":"float64","avg_price":"float64","market_value":"float64"},"index_dtype":"datetime64[ns]","index_name":"date","columns":["order_book_id","symbol","quantity","last_price","avg_price","market_value"]} |
| 9 | +,order_book_id,symbol,quantity,last_price,avg_price,market_value |
| 10 | +2024-06-11 00:00:00,688550.XSHG,瑞联新材,1445.0,33.39,31.79,48248.55 |
| 11 | +2024-06-12 00:00:00,688550.XSHG,瑞联新材,1445.0,34.18,31.79,49390.1 |
| 12 | +2024-06-13 00:00:00,688550.XSHG,瑞联新材,1445.0,34.7,31.79,50141.5 |
| 13 | +2024-06-14 00:00:00,688550.XSHG,瑞联新材,1879.0,26.0,24.1077,48854.0 |
| 14 | +2024-06-17 00:00:00,688550.XSHG,瑞联新材,1879.0,25.87,24.1077,48609.73 |
| 15 | +2024-06-18 00:00:00,688550.XSHG,瑞联新材,1879.0,25.55,24.1077,48008.45 |
| 16 | +2024-06-19 00:00:00,688550.XSHG,瑞联新材,1879.0,25.48,24.1077,47876.92 |
| 17 | +2024-06-20 00:00:00,688550.XSHG,瑞联新材,1879.0,25.58,24.1077,48064.82 |
| 18 | + |
| 19 | +[stock_account] |
| 20 | +DataFrame |
| 21 | +{"shape":[8,4],"dtypes":{"cash":"float64","transaction_cost":"float64","market_value":"float64","total_value":"float64"},"index_dtype":"datetime64[ns]","index_name":"date","columns":["cash","transaction_cost","market_value","total_value"]} |
| 22 | +,cash,transaction_cost,market_value,total_value |
| 23 | +2024-06-11 00:00:00,1000000.0,0.0,48248.55,1048248.55 |
| 24 | +2024-06-12 00:00:00,1000000.0,0.0,49390.1,1049390.1 |
| 25 | +2024-06-13 00:00:00,1000000.0,0.0,50141.5,1050141.5 |
| 26 | +2024-06-14 00:00:00,1000650.25,0.0,48854.0,1049504.25 |
| 27 | +2024-06-17 00:00:00,1000650.25,0.0,48609.73,1049259.98 |
| 28 | +2024-06-18 00:00:00,1000650.25,0.0,48008.45,1048658.7 |
| 29 | +2024-06-19 00:00:00,1000650.25,0.0,47876.92,1048527.17 |
| 30 | +2024-06-20 00:00:00,1000650.25,0.0,48064.82,1048715.07 |
| 31 | + |
| 32 | +[portfolio] |
| 33 | +DataFrame |
| 34 | +{"shape":[8,6],"dtypes":{"cash":"float64","total_value":"float64","market_value":"float64","unit_net_value":"float64","units":"float64","static_unit_net_value":"float64"},"index_dtype":"datetime64[ns]","index_name":"date","columns":["cash","total_value","market_value","unit_net_value","units","static_unit_net_value"]} |
| 35 | +,cash,total_value,market_value,unit_net_value,units,static_unit_net_value |
| 36 | +2024-06-11 00:00:00,1000000.0,1048248.55,48248.55,1.00221,1045936.55,1.0 |
| 37 | +2024-06-12 00:00:00,1000000.0,1049390.1,49390.1,1.003302,1045936.55,1.0022 |
| 38 | +2024-06-13 00:00:00,1000000.0,1050141.5,50141.5,1.00402,1045936.55,1.0033 |
| 39 | +2024-06-14 00:00:00,1000650.25,1049504.25,48854.0,1.003411,1045936.55,1.004 |
| 40 | +2024-06-17 00:00:00,1000650.25,1049259.98,48609.73,1.003177,1045936.55,1.0034 |
| 41 | +2024-06-18 00:00:00,1000650.25,1048658.7,48008.45,1.002603,1045936.55,1.0032 |
| 42 | +2024-06-19 00:00:00,1000650.25,1048527.17,47876.92,1.002477,1045936.55,1.0026 |
| 43 | +2024-06-20 00:00:00,1000650.25,1048715.07,48064.82,1.002656,1045936.55,1.0025 |
| 44 | + |
| 45 | +[summary] |
| 46 | +dict |
| 47 | +{} |
| 48 | +{ |
| 49 | + "strategy_name":"strategy", |
| 50 | + "start_date":"2024-06-11", |
| 51 | + "end_date":"2024-06-20", |
| 52 | + "starting_cash":"STOCK:1000000.0", |
| 53 | + "alpha":NaN, |
| 54 | + "beta":NaN, |
| 55 | + "sharpe":4.627769423802232, |
| 56 | + "excess_sharpe":NaN, |
| 57 | + "information_ratio":NaN, |
| 58 | + "tracking_error":NaN, |
| 59 | + "sortino":7.861996788106883, |
| 60 | + "volatility":0.015298451977415738, |
| 61 | + "max_drawdown":0.0015372499801217182, |
| 62 | + "excess_max_drawdown":NaN, |
| 63 | + "excess_returns":NaN, |
| 64 | + "excess_annual_returns":NaN, |
| 65 | + "win_rate":0.5, |
| 66 | + "total_value":1048715.07, |
| 67 | + "cash":1000650.25, |
| 68 | + "total_returns":0.002656490013662971, |
| 69 | + "annualized_returns":0.08715966696778854, |
| 70 | + "unit_net_value":1.002656490013663 |
| 71 | +} |
0 commit comments