Commit Graph

37 Commits

Author SHA1 Message Date
c9s
dbfc1caa53 if dotenv file does not exist, do not load it 2021-02-04 20:34:31 +08:00
c9s
39fa0ef810 load dotenv file 2021-02-04 20:34:31 +08:00
c9s
621321f5db add basic desktop app 2021-02-04 20:34:31 +08:00
c9s
9ce9ecc910 compile local strategies into the wrapper binary 2020-10-24 15:38:13 +08:00
c9s
e1e8a16f97 rename Run to Execute to avoid confusion 2020-10-23 14:38:24 +08:00
c9s
048374566c move commands into pkg/cmd 2020-10-23 14:28:07 +08:00
c9s
6e033461bb use the time of the first trade as the report start time 2020-10-23 14:09:05 +08:00
c9s
3786792214 add more pnl report conditions 2020-10-23 00:23:04 +08:00
c9s
6b0f2b80d7 add multiple spec support 2020-10-23 00:21:03 +08:00
c9s
9c751f377a import buyandhold strategy 2020-10-22 16:04:37 +08:00
c9s
aea6a7c03d integrate AverageCostPnLReporter 2020-10-22 15:57:50 +08:00
c9s
678e4ef4ab add trade reporter 2020-10-22 10:47:54 +08:00
c9s
1f71fa623c add channel argument to the notify method 2020-10-21 17:10:47 +08:00
c9s
58265d14f9 move cmdutil package 2020-10-21 15:58:58 +08:00
c9s
a15e56f510 add run command to load strategies from config file 2020-10-21 15:57:14 +08:00
c9s
f62f3b8a02 define HomeDir and SourceDir helper functions 2020-10-20 11:46:44 +08:00
c9s
0d9c0bd51b move cost distribution to the accounting package 2020-10-18 11:33:13 +08:00
c9s
f9b21131fe fix pnl cmd 2020-10-18 11:18:12 +08:00
c9s
63ea81b648 simplify the calculator api 2020-10-16 10:19:53 +08:00
c9s
a6b99f6828 rename ProfitAndLossCalculator to AverageCostCalculator 2020-10-16 10:16:42 +08:00
c9s
300609e3db fix subscription initialization 2020-10-15 22:36:22 +08:00
c9s
d1b618850d add context parameter to the strategy method 2020-10-13 14:50:59 +08:00
c9s
6398f049d0 bind market data store and query avg price before we start 2020-10-12 22:46:06 +08:00
c9s
931ce434ef improve baseline calculator 2020-10-12 17:07:50 +08:00
c9s
8f129f0e0e change home config dir 2020-10-12 07:37:05 +08:00
c9s
ea7b501c26 add transfer history command for calculating baseline and show transfer records 2020-10-11 20:08:54 +08:00
c9s
3d5507a053 move files into pkg 2020-10-11 16:46:15 +08:00
c9s
5a3c043b43 rename func 2020-10-11 16:37:06 +08:00
c9s
0fe8a98706 support migration 2020-10-11 16:02:17 +08:00
c9s
7f6a478d4f fix max trades query for pnl calulcation 2020-10-10 17:50:49 +08:00
c9s
ce73979713 make pnl command public 2020-10-10 13:20:53 +08:00
c9s
530937eb46 cmd: delete empty file 2020-10-10 13:20:31 +08:00
c9s
ec8a69d4bb add cmd/bbgo 2020-10-10 13:18:40 +08:00
c9s
fab8d0bbdf replace api key secret var name 2020-10-10 13:17:04 +08:00
c9s
5fc6ecce05 add pnl command 2020-10-10 13:14:06 +08:00
Bo-Yi Wu
7ba31272f1 refactor: run gofmt -w -s 2020-10-09 13:21:42 +08:00
c9s
3989531788 move packages 2020-10-05 17:47:25 +08:00