Commit Graph

1414 Commits

Author SHA1 Message Date
c9s
b02c2ae16c fix import sorting 2020-08-11 08:41:01 +08:00
c9s
e2fef7b6d2 fix slack hook naming 2020-08-11 08:37:27 +08:00
c9s
0d9b503278 use log fields instead of log prefix 2020-08-11 08:36:36 +08:00
c9s
094da9d3d3 adjust pnl timer 2020-08-10 13:27:28 +08:00
c9s
4f3432d4bf add profit report text 2020-08-08 10:13:35 +08:00
c9s
cd7411d530 add math.Abs 2020-08-07 21:19:31 +08:00
c9s
a9a9c2744e add min notional check 2020-08-07 09:27:17 +08:00
c9s
695ab28246 pull out mask listen key method 2020-08-07 09:17:35 +08:00
c9s
87e5019b08 improve error logging 2020-08-07 09:15:50 +08:00
c9s
6b478b4e87 fix title and layout 2020-08-07 00:11:29 +08:00
c9s
080cfe25d9 adjust pretty print 2020-08-06 23:51:56 +08:00
c9s
8281ec33cb adjust slack attachment 2020-08-06 23:49:47 +08:00
c9s
5ffd751701 fix truncate 2020-08-06 23:45:30 +08:00
c9s
0fffc379fc show symbol name in the order submit message 2020-08-06 14:21:01 +08:00
c9s
cb2ee2d502 improve price formatter 2020-08-06 13:42:50 +08:00
c9s
bfe38b8815 use UnrealizedProfit for color 2020-08-06 13:31:41 +08:00
c9s
1d6b69e406 add unrealized profit 2020-08-06 13:27:35 +08:00
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
a9431bec10 add checkpoint finder for pnl 2020-08-03 18:41:01 +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