Commit Graph

59 Commits

Author SHA1 Message Date
c9s
26cbd60a66
grid2: add one more test case for base + quote 2023-05-23 17:36:01 +08:00
c9s
1cf788c925
grid2: fix base + quote order placement and add test case 2023-05-23 17:34:03 +08:00
c9s
4c13171cb0
grid2: add more test for spec 2023-05-19 16:42:26 +08:00
c9s
3a2dbc934b
grid2: add TestStrategy_calculateBaseQuoteInvestmentQuantity test case 2023-05-19 16:37:44 +08:00
chiahung
8182840685 use fixedpoint.Value as key 2023-03-16 21:58:41 +08:00
chiahung
feabadeb59 FEATURE: make PinOrderMap's key from string to Pin 2023-03-16 17:34:02 +08:00
chiahung
e686a26dda FEATURE: verify the grids before emit filled orders 2023-03-15 20:15:53 +08:00
chiahung
4af8523144 new struct PinOrderMap 2023-03-14 10:47:25 +08:00
chiahung
7af4e3bf8a FEATURE: get filled orders when bbgo down 2023-03-14 10:47:23 +08:00
gx578007
83ba32bf2f mock SubmitOrders by DoAndReturn 2023-03-13 18:43:52 +08:00
c9s
3eae532e13
grid2: init filledOrderIDMap for tests 2023-03-10 17:11:51 +08:00
c9s
ccf567fdab
grid2: add ClearDuplicatedPriceOpenOrders option 2023-03-10 13:10:11 +08:00
chiahung
4288c82e25 FEATURE: recover grids with open orders by querying trades process and its buildPinOrderMap method 2023-03-09 17:10:44 +08:00
c9s
62eed9605d
grid2: round down quoteQuantity/baseQuantity after the fee reduction 2023-03-07 13:53:14 +08:00
c9s
9a89237c24
grid2: fix base/quote fee reduction 2023-03-03 14:30:58 +08:00
c9s
bd86a89667
grid2: return fee currency 2023-03-03 13:13:27 +08:00
c9s
5cbc6f191f
grid2: aggregate order fee instead of only base fee 2023-03-03 13:13:27 +08:00
c9s
4aa25db3ed
grid2: add one more calculateMinimalQuoteInvestment test case 2023-03-02 14:03:22 +08:00
c9s
1d8df08a74
fixedpoint: fix fixedpoint rounding 2023-03-01 22:21:24 +08:00
c9s
f553ee05a0
grid2: log base fee rounding precision 2023-03-01 21:49:15 +08:00
c9s
59ff86e4bb
grid2: fix metrics for tests 2023-02-24 00:44:50 +08:00
c9s
9c1110fb44
grid2: fix calculateMinimalQuoteInvestment 2023-02-21 17:48:40 +08:00
c9s
a5e134e98d
grid2: fix calculateMinimalQuoteInvestment tests 2023-02-17 17:33:12 +08:00
c9s
55476e4176
grid2: include the order dust for the quote investment calculation 2023-02-16 22:20:34 +08:00
c9s
9e3383606e
grid2: add quote quantity test case 2023-02-16 18:11:04 +08:00
c9s
35bfdfab8d
grid2: fix si index check 2023-02-15 16:51:12 +08:00
c9s
79f9f9c5bb
grid2: pull out quote investment variable 2023-02-15 15:41:35 +08:00
c9s
d1cbc6a9ca
grid2: add one more quote investment test case 2023-02-15 15:41:35 +08:00
c9s
74daa76e75
grid2: fix grid num calculation 2023-01-16 18:34:08 +08:00
c9s
6f2664b03e
grid2: fix test for orderTag 2022-12-19 18:51:39 +08:00
c9s
096defc331 add test flag and disable lfs in test 2022-12-09 17:34:24 +08:00
c9s
b515c24505 grid2: add earnBase test case 2022-12-07 14:48:51 +08:00
c9s
120a22f0cd grid2: add compound mode order test 2022-12-07 14:42:06 +08:00
c9s
9d24540826 grid2: add order executor mock for testing reverse order 2022-12-07 14:19:49 +08:00
c9s
e1e521cec5 grid2: add comment to the minimal quote investment test 2022-12-06 16:38:12 +08:00
c9s
46d1207adb grid2: fix TestStrategy_checkMinimalQuoteInvestment 2022-12-06 16:37:12 +08:00
c9s
b8e5bf1ddd grid2: add test case for testing checkMinimalQuoteInvestment 2022-12-06 16:09:46 +08:00
c9s
482b6f5e7b grid2: add test case for aggregateOrderBaseFee Retry 2022-12-06 15:46:21 +08:00
c9s
3d0cfd16b5 grid2: add test case for aggregateOrderBaseFee 2022-12-06 15:46:21 +08:00
c9s
c6ce223a13 all: refactor backtest functions so that we can run backtest in test 2022-12-06 13:16:12 +08:00
c9s
d1f3d201ef grid2: add todo in the test 2022-12-06 02:40:22 +08:00
c9s
2a22866d55 grid2: inject strategy into user config and run backtest 2022-12-06 02:40:22 +08:00
c9s
d9e230a433 grid2: add TestBacktestStrategy skeleton for backtesting in unit test 2022-12-06 02:40:22 +08:00
c9s
e7ff7a49db grid2: fix calculateQuoteInvestmentQuantity for profitSpread 2022-12-06 01:51:50 +08:00
c9s
a8c957fc8d grid2: fix profit spread behavior and tests 2022-12-06 01:17:29 +08:00
c9s
27b42db3d7 grid2: add test case for enough base investment 2022-12-05 11:23:21 +08:00
c9s
6df4a3c319 grid2: add TestStrategy_generateGridOrders 2022-12-05 11:21:07 +08:00
c9s
0b824a09fc grid2: fix tests 2022-12-05 00:47:08 +08:00
c9s
bec1103a64
grid2: add more parameters to the test strategy 2022-12-04 17:36:35 +08:00
c9s
5344b3d768
grid2: add TestStrategy_calculateProfit test 2022-12-04 17:35:35 +08:00