Commit Graph

193 Commits

Author SHA1 Message Date
c9s
887400eb83 parse QuoteQuantity 2020-08-06 13:18:41 +08:00
c9s
409332a56c improve trade layout 2020-08-06 13:12:27 +08:00
c9s
65f5a75bf1 fix slack attachment rendering 2020-08-06 13:11:03 +08:00
c9s
130407191a display more trade information 2020-08-06 12:56:14 +08:00
c9s
4ffade49ea improve trade attachment 2020-08-06 12:53:34 +08:00
c9s
fc82f446f5 improve kline attachment display 2020-08-06 12:51:48 +08:00
c9s
80f50ecb19 fix fee calculation 2020-08-05 20:07:53 +08:00
c9s
78be592fee fix fee calculation 2020-08-05 18:49:32 +08:00
c9s
c8849e76a1 calculate currency fee 2020-08-05 18:39:08 +08:00
c9s
12dde9f57b remove unused SetCurrencyPrice 2020-08-05 18:34:33 +08:00
c9s
f276520186 improve error messages 2020-08-04 20:04:15 +08:00
c9s
ef2fd84dce check stock quantity 2020-08-04 19:05:20 +08:00
c9s
a37117a593 add stock manager to the context 2020-08-04 18:45:36 +08:00
c9s
caf7ea3679 add more assertions 2020-08-04 17:12:01 +08:00
c9s
7741cb11d6 add squash method 2020-08-04 17:10:29 +08:00
c9s
3017bbbf13 fix stock calculation 2020-08-04 17:03:57 +08:00
c9s
350c0b3b87 add pending sell test case 2020-08-04 15:25:09 +08:00
c9s
03595f2382 add stock manager tests 2020-08-04 14:14:19 +08:00
c9s
c7379e6fc0 remove debug log 2020-08-04 13:59:52 +08:00
c9s
52c16715fa add stock management 2020-08-04 13:50:27 +08:00
c9s
a46462a5e4 add stock calculation 2020-08-04 09:47:54 +08:00
c9s
aef57a5ae4 fix slack arg index 2020-08-03 20:08:14 +08:00
c9s
9d50f49989 consider trading fee currency for pnl 2020-08-03 20:06:33 +08:00
c9s
23b422f6fd fix slack arg filtering 2020-08-03 19:41:33 +08:00
c9s
994e2f8eee add stock to the pnl report 2020-08-03 18:47:36 +08:00
c9s
5d3c8003e2 add ethusdt market 2020-08-03 18:02:46 +08:00
c9s
d79e4f544d fix pnl calculation 2020-08-03 16:42:33 +08:00
c9s
2e13b67968 implement trade sync 2020-08-03 15:25:06 +08:00
c9s
bdbc8c2427 use trade service to query and insert trades 2020-08-03 13:17:17 +08:00
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
62e27957c1 fix deploy 2020-07-11 13:13:41 +08:00
c9s
ce89835a7d refactor binance exchange factory 2020-07-11 13:08:50 +08:00
c9s
0ae851a085 abstract binance exchange 2020-07-11 13:02:53 +08:00
c9s
5665f6db97 add log label 2020-07-11 12:52:51 +08:00
c9s
2a168031f3 merge connect and read method 2020-07-11 12:51:02 +08:00
c9s
db5b203e9d move trade struct to types 2020-07-11 12:42:28 +08:00
c9s
9288b6801f add binance buyer, maker label 2020-07-11 12:37:09 +08:00
c9s
ea33db5aa1 rename Trade.Market to Symbol 2020-07-11 12:16:42 +08:00
c9s
5cf88af5d6 add QueryAveragePrice api 2020-07-11 12:15:45 +08:00
c9s
0e9bd1547d fix stream issue and pnl issues 2020-07-11 12:07:24 +08:00
c9s
19b225737f refactor pnl calculator 2020-07-11 11:23:48 +08:00
c9s
a177e55172 add more refactoring 2020-07-10 21:34:39 +08:00
c9s
1ca46435c3 parse ResultEvent 2020-06-29 10:55:00 +08:00
c9s
4cd96360b3 parse event from the binance private stream 2020-06-29 03:11:05 +08:00
c9s
338d2443b9 refactor private stream 2020-06-29 03:08:13 +08:00
c9s
778d046820 support config reloading 2020-06-28 13:45:55 +08:00
c9s
e6aca05a51 add precesion in the format message 2020-06-24 22:25:06 +08:00
c9s
14d2cc0faf add min profit price tick 2020-06-24 22:13:18 +08:00
c9s
bdc4161fb3 fix btc volume precision 2020-06-24 21:25:47 +08:00
c9s
fea95d1633 fix format 2020-06-24 19:29:58 +08:00
c9s
c6f1f58b98 rename field 2020-06-20 20:23:26 +08:00
c9s
180e1063b2 adjust parameters 2020-06-19 22:12:41 +08:00