Commit Graph

7767 Commits

Author SHA1 Message Date
c9s
c5969bf879 refactor trade loader 2020-08-02 21:12:43 +08:00
c9s
4a4178286a rename trade volume to quantity and record quote quantity 2020-08-02 21:12:43 +08:00
c9s
da75905aeb insert trades into the mysql database 2020-08-02 21:12:43 +08:00
c9s
3e0a337479 rename QueryTrades to BatchQueryTrades 2020-08-02 21:12:42 +08:00
c9s
4d40afde06 do not calculate stock profit 2020-07-20 13:14:20 +08:00
c9s
099d58f23a print historical high and low 2020-07-20 11:49:20 +08:00
c9s
30e8cad7c8 print side 2020-07-18 20:35:37 +08:00
c9s
2453e2db73 write ping message 2020-07-18 10:43:27 +08:00
c9s
78f1aa59b7 clean up code 2020-07-18 10:15:10 +08:00
c9s
bf150248c0 do not calculate stock 2020-07-18 10:13:11 +08:00
c9s
c94c85d51f show wallet balance and move kline cache 2020-07-18 10:01:10 +08:00
c9s
60efce96b6 fix regression balance handling 2020-07-16 18:25:40 +08:00
c9s
f92108bd23 batch query kline for regression tests 2020-07-16 17:45:21 +08:00
c9s
cf59ffc32f support regression 2020-07-16 15:36:02 +08:00
c9s
9cf95b7c26 implement standard private stream support for regression trader 2020-07-15 21:02:08 +08:00
c9s
7d035d75ea add regression cmd 2020-07-15 12:20:44 +08:00
c9s
b5193ca67d use symbol from the strategy config file 2020-07-14 22:33:47 +08:00
c9s
9d828c99e2 adjust flatness param 2020-07-14 14:54:23 +08:00
c9s
acb0807a37 check min amount and min lot 2020-07-14 01:09:20 +08:00
c9s
79f9d078b6 adjust volume for balance 2020-07-14 00:38:52 +08:00
c9s
ef622b0c7c support balance load and update 2020-07-14 00:20:15 +08:00
c9s
762f965130 sort imports 2020-07-13 16:03:47 +08:00
c9s
923022e87b remove trade filtering 2020-07-13 14:28:20 +08:00
c9s
63dc2e8d55 fix graceful shutdown 2020-07-13 13:31:40 +08:00
c9s
9b042b5e8f fix subscription mech 2020-07-13 13:25:48 +08:00
c9s
79553212a7 add idea vcs file 2020-07-13 12:57:18 +08:00
c9s
d3df1c5082 clean up trader fields 2020-07-13 12:36:04 +08:00
c9s
40c9ea1596 move out slack components to the slack pkg 2020-07-13 12:34:15 +08:00
c9s
4fa8be76ea remove unused Errorf method 2020-07-13 12:31:39 +08:00
c9s
0f2faf315d clean up logger methods 2020-07-13 12:30:35 +08:00
c9s
a4a5231d78 implement account balance query 2020-07-13 12:28:40 +08:00
c9s
791a745951 move stream close call right after the connect 2020-07-13 12:20:09 +08:00
c9s
704c6eed96 fix sub 2020-07-13 01:55:16 +08:00
c9s
a9e25c08d7 fix reconnect close 2020-07-13 01:06:04 +08:00
c9s
906350a5bc fix pnl report and slack notifier 2020-07-13 01:01:33 +08:00
c9s
1f127a367a call notifier reportTrade method 2020-07-13 00:36:26 +08:00
c9s
6660b75dcb rename SlackReporter to SlackNotifier and simplify infof 2020-07-12 22:57:54 +08:00
c9s
f6a1c20cfe more trader refactoring 2020-07-12 22:52:49 +08:00
c9s
c329f6dc86 fix reconnect 2020-07-12 22:52:24 +08:00
c9s
707f96ae08 alias logrus to log 2020-07-12 19:45:03 +08:00
c9s
cdff2cf487 fix import alias 2020-07-12 19:44:05 +08:00
c9s
c0d0aca3b8 fix side issue 2020-07-11 21:44:38 +08:00
c9s
577caab3f5 refactor volume calculator 2020-07-11 20:40:19 +08:00
c9s
cb4afca815 add message for stream closed 2020-07-11 17:02:37 +08:00
c9s
73ae2603d9 drop kline fields from the trading context 2020-07-11 16:40:07 +08:00
c9s
73276996a7 move to stream callbacks 2020-07-11 16:07:09 +08:00
c9s
a105af35ce move strategy to the pkg/strategy 2020-07-11 15:27:26 +08:00
c9s
6c1f214d0f fix import 2020-07-11 15:19:36 +08:00
c9s
a3fa292dc5 move files 2020-07-11 15:18:31 +08:00
c9s
1c99ca52cb add color.go 2020-07-11 15:00:35 +08:00