c9s
|
bd895149ad
|
if dotenv file does not exist, do not load it
|
2021-02-04 20:34:31 +08:00 |
|
c9s
|
621321f5db
|
add basic desktop app
|
2021-02-04 20:34:31 +08:00 |
|
c9s
|
d8d1249293
|
fix env var prefix by using os.Getenv directly
|
2021-02-04 15:14:54 +08:00 |
|
c9s
|
7c6fce076f
|
use ping try the api server
|
2021-02-04 13:48:21 +08:00 |
|
c9s
|
6db1924f87
|
add setup struct for setup mode options
|
2021-02-04 13:29:43 +08:00 |
|
c9s
|
f21b7f06d7
|
update static files and fix page routes
|
2021-02-03 18:54:35 +08:00 |
|
c9s
|
b3aa7e7511
|
add darwin os check
|
2021-02-03 18:54:34 +08:00 |
|
c9s
|
c73e5f00f3
|
refactor server routes
|
2021-02-03 18:09:33 +08:00 |
|
c9s
|
bf8508d4fb
|
update description
|
2021-02-03 17:41:48 +08:00 |
|
c9s
|
4e31c7f68a
|
change default config path to just bbgo.yaml
|
2021-02-03 17:39:53 +08:00 |
|
c9s
|
8aa96c4546
|
integrate strateg adding api
|
2021-02-03 02:26:41 +08:00 |
|
c9s
|
d458519ba5
|
add setup flag
|
2021-02-02 18:17:39 +08:00 |
|
c9s
|
17d5e301dc
|
refine setup steps
|
2021-02-02 17:26:35 +08:00 |
|
c9s
|
73762d9888
|
support exchange session test from the setup wizard
|
2021-02-02 11:44:07 +08:00 |
|
c9s
|
06f648448b
|
pull out wrapper runner
|
2021-02-01 20:44:15 +08:00 |
|
c9s
|
eebb568b0c
|
add dotenv string flag for changing dotenv filename
|
2021-02-01 20:44:15 +08:00 |
|
c9s
|
0a29ee99b8
|
call godotenv.Load to load env vars
|
2021-02-01 20:44:15 +08:00 |
|
c9s
|
a60aeb4771
|
pull out .Subscribe from trader.Run
|
2021-02-01 20:44:15 +08:00 |
|
c9s
|
a926ee1e37
|
rename --enable-api-server to --enable-web-server
|
2021-01-29 19:31:52 +08:00 |
|
c9s
|
fbbe304dfb
|
add trades query api
|
2021-01-29 18:48:00 +08:00 |
|
c9s
|
9040f6ff0d
|
add --enable-api-server flag
|
2021-01-24 19:07:56 +08:00 |
|
c9s
|
eccc2c6e0f
|
implement session config api and server
|
2021-01-24 18:42:36 +08:00 |
|
c9s
|
51e5deee47
|
add frontend files
|
2021-01-24 14:14:25 +08:00 |
|
c9s
|
1892d03326
|
make session trades map thread safe
|
2021-01-24 14:14:25 +08:00 |
|
c9s
|
568250f4bb
|
define api routes
|
2021-01-24 14:14:25 +08:00 |
|
c9s
|
1f1e1383f3
|
fix advancedOrderCancelApi interface
|
2021-01-23 17:20:26 +08:00 |
|
c9s
|
cc3e9f42aa
|
cmd: fix build nil check
|
2021-01-23 01:01:36 +08:00 |
|
c9s
|
fa8198b8b9
|
remove unnecessary logs
|
2021-01-21 12:28:47 +08:00 |
|
c9s
|
93ae65535d
|
remove os and arch flags
|
2021-01-21 12:27:55 +08:00 |
|
c9s
|
5eaa8f0778
|
add IsWrapperBinary flag and fix persistence error
|
2021-01-21 12:27:21 +08:00 |
|
c9s
|
503df57e72
|
remove legacy cmd flags
|
2021-01-21 12:10:06 +08:00 |
|
c9s
|
5329ef8f25
|
refactor build config
|
2021-01-21 12:06:03 +08:00 |
|
c9s
|
42811e8157
|
alias logrus as log
|
2021-01-20 02:45:50 +08:00 |
|
c9s
|
9280ec348f
|
clean up pnl command
we should use environment to load the sessions
|
2021-01-20 02:45:13 +08:00 |
|
c9s
|
0e99d9bdcb
|
move time.Sleep to batch processor to avoid rate limit
|
2021-01-20 02:32:55 +08:00 |
|
c9s
|
d3f6841a27
|
improve sync command for margin trades and orders
|
2021-01-20 01:46:17 +08:00 |
|
c9s
|
3db5c26416
|
improve transfer history layout
|
2021-01-15 14:24:24 +08:00 |
|
c9s
|
d96e6e8ccc
|
use environment to configure database
|
2021-01-15 10:47:49 +08:00 |
|
c9s
|
1ce3244c17
|
drop the legacy migration command
|
2021-01-15 10:33:23 +08:00 |
|
c9s
|
d04e1e7816
|
refactory sync command and upgrade db automatically
|
2021-01-14 15:10:11 +08:00 |
|
c9s
|
ad567dc360
|
use mysql reformat dsn function to add parseTime parameters
|
2021-01-14 14:56:13 +08:00 |
|
c9s
|
2699c32b38
|
add rockhopper
|
2021-01-13 23:53:36 +08:00 |
|
c9s
|
45e4d8c558
|
rename movingstop to trailingstop
|
2020-12-31 13:07:39 +08:00 |
|
c9s
|
275aa9494a
|
support canceling orders on max
|
2020-12-29 16:00:03 +08:00 |
|
c9s
|
f12e38b70e
|
call cancelTrading defer
|
2020-12-21 15:47:20 +08:00 |
|
c9s
|
321b4812ca
|
supporting otp key restore from key url
|
2020-12-11 17:12:16 +08:00 |
|
c9s
|
fbb9d0d3ba
|
show key URL
|
2020-12-11 17:08:06 +08:00 |
|
c9s
|
deb9a29521
|
support one-time password
|
2020-12-11 17:07:19 +08:00 |
|
c9s
|
f4ef19e5d6
|
implement PlainText for telegram bot
|
2020-12-11 15:58:05 +08:00 |
|
c9s
|
45bc4dc9eb
|
refactor telegram notifier with interaction component
|
2020-12-11 14:40:04 +08:00 |
|
c9s
|
f595b1ef65
|
fix compile flag check
|
2020-12-09 16:13:20 +08:00 |
|
c9s
|
fe7495898f
|
check if persistence is configured
|
2020-12-08 15:09:17 +08:00 |
|
c9s
|
53d7fb5611
|
support telegram chat user persistence
|
2020-12-08 15:03:52 +08:00 |
|
c9s
|
a299721a98
|
improve message layout
|
2020-12-08 14:41:51 +08:00 |
|
c9s
|
4316f1fada
|
pull out bot initialization
|
2020-12-08 14:25:30 +08:00 |
|
c9s
|
55cd0c6a6e
|
pull out bot initialization to run
|
2020-12-08 14:20:49 +08:00 |
|
c9s
|
2d98336fb6
|
implement Persistent API for strategy
|
2020-12-07 11:44:41 +08:00 |
|
c9s
|
341f735bc3
|
configure ConfigurePersistence if it's defined
|
2020-12-07 11:44:41 +08:00 |
|
c9s
|
62a541fb27
|
rename preload to loadBuildConfig
|
2020-12-07 11:44:23 +08:00 |
|
David Chang
|
9f92fcf2e4
|
chore: rename telegram init to telegram auth
|
2020-12-06 13:59:47 +08:00 |
|
David Chang
|
c72ef2b31c
|
fix: add missing root cmd flags
|
2020-12-05 14:25:19 +08:00 |
|
David Chang
|
b2d9bd0312
|
feature: add telegram bot notifier
|
2020-12-05 14:20:27 +08:00 |
|
c9s
|
17590fcc08
|
include movingstop in builtin
|
2020-12-03 08:52:43 +08:00 |
|
c9s
|
db6c90b8dd
|
cmd: fix run command signal handling
|
2020-11-23 16:36:03 +08:00 |
|
c9s
|
cc3da5b678
|
pass order id for order store exists
|
2020-11-17 08:53:22 +08:00 |
|
c9s
|
f4512f031c
|
improve cross exchange strategy mounting behavior and add fixedpoint atomic ops
|
2020-11-17 08:19:22 +08:00 |
|
c9s
|
94aaaf21b0
|
improve wrapper binary invocation
|
2020-11-15 13:23:26 +08:00 |
|
c9s
|
8cc1c589a1
|
fix waitgroup counting
|
2020-11-12 14:59:47 +08:00 |
|
c9s
|
fc9409673f
|
add graceful shutdown
|
2020-11-12 14:50:21 +08:00 |
|
c9s
|
4bb5730cea
|
remove backtest flag from the sync command
|
2020-11-11 16:11:41 +08:00 |
|
c9s
|
24e5911140
|
refactory sync mode into the backtest command
|
2020-11-11 16:08:24 +08:00 |
|
c9s
|
097b2d30a6
|
add base-asset-baseline flag for backtest
|
2020-11-11 14:39:33 +08:00 |
|
c9s
|
04f6da3cb8
|
add traditional grid strategy
|
2020-11-10 19:06:20 +08:00 |
|
c9s
|
923fea0d94
|
improve backtest cmd
|
2020-11-10 14:19:11 +08:00 |
|
c9s
|
f5b17193c5
|
move verbose flag detection before we setup the environment
|
2020-11-09 16:49:03 +08:00 |
|
c9s
|
6c2aef31a3
|
improve backtest logging
|
2020-11-09 16:47:29 +08:00 |
|
c9s
|
e7cc79f3cf
|
replace errors.Errorf with fmt.Errorf
|
2020-11-09 16:34:35 +08:00 |
|
c9s
|
e3a1184d22
|
fix backtest sync exchange and consider fee rate
|
2020-11-08 12:47:14 +08:00 |
|
c9s
|
4b0bab31fb
|
Merge branch 'feature/backtest' into main
|
2020-11-07 20:34:55 +08:00 |
|
c9s
|
641784e1b1
|
calculate pnl after the backtest
|
2020-11-07 20:34:34 +08:00 |
|
c9s
|
6040c69327
|
add sync flag for backtesting
|
2020-11-07 20:14:53 +08:00 |
|
c9s
|
f1db12eb10
|
add done channel for backtest exchange
|
2020-11-07 20:11:07 +08:00 |
|
c9s
|
573a082391
|
add flashcrash strategy
|
2020-11-07 12:02:15 +08:00 |
|
c9s
|
b13a2deec5
|
emit klines and setup account balances
|
2020-11-07 03:18:05 +08:00 |
|
c9s
|
22a214328d
|
implement backtest command, stream and add backtest config
|
2020-11-07 02:57:50 +08:00 |
|
c9s
|
8823a39fc2
|
support backtesting kline verification
|
2020-11-07 00:49:17 +08:00 |
|
c9s
|
555fe57341
|
implement kline sync function from command
|
2020-11-06 21:40:48 +08:00 |
|
c9s
|
b38d0d15ed
|
fix order sync for max
|
2020-11-05 14:12:19 +08:00 |
|
c9s
|
7fab2e24de
|
improve order persistence and support order data sync
|
2020-11-05 11:14:14 +08:00 |
|
c9s
|
eb67fc0f8f
|
make mysql-url optional for run command
|
2020-11-05 11:14:14 +08:00 |
|
c9s
|
eb05620f99
|
use Notifiability directly from environment
|
2020-10-31 18:35:48 +08:00 |
|
c9s
|
49ff9c4dd6
|
drop legacy trade reporter
|
2020-10-31 18:35:48 +08:00 |
|
c9s
|
c4d7476212
|
add submit order routing
|
2020-10-31 18:35:48 +08:00 |
|
c9s
|
ec9b5230aa
|
refactor trade report and move trade reporter to the environment layer
|
2020-10-31 18:35:48 +08:00 |
|
c9s
|
551fa4b7fb
|
add grid to built-ins
|
2020-10-31 18:29:58 +08:00 |
|
c9s
|
b22e0370b3
|
drop legacy OrderProcessor and remove slack debug
|
2020-10-28 17:48:16 +08:00 |
|
c9s
|
2680ad5072
|
refactor environment, market data store, injection and add swing strategy
|
2020-10-28 17:48:16 +08:00 |
|
c9s
|
008e5c83f9
|
fix notification config check
|
2020-10-27 20:41:08 +08:00 |
|
c9s
|
b3eaf832af
|
Add pricealert strategy for demonstrating notification
|
2020-10-27 13:54:39 +08:00 |
|
c9s
|
ef598c3a0f
|
assign base order executor descendingly
|
2020-10-27 09:58:21 +08:00 |
|
c9s
|
8453e95300
|
configure channel routers
|
2020-10-27 09:38:29 +08:00 |
|
c9s
|
42f947506c
|
add route methods on Notifiability
|
2020-10-27 09:24:59 +08:00 |
|
c9s
|
ea05d998f2
|
load notification conf
|
2020-10-27 08:57:00 +08:00 |
|
c9s
|
955479486a
|
add symbol channel router and object channel router for notification
|
2020-10-27 08:19:16 +08:00 |
|
c9s
|
a1eeb55778
|
refactor and clean up bbgo config
|
2020-10-26 21:45:02 +08:00 |
|
c9s
|
502e5bdc04
|
load exchange sessions dynamically
|
2020-10-26 17:00:17 +08:00 |
|
c9s
|
19f259111d
|
improve config loading by adding unmarshal yaml method
|
2020-10-26 15:33:25 +08:00 |
|
c9s
|
cd666fdf9e
|
pull out db parameter from the constructor
|
2020-10-26 15:06:39 +08:00 |
|
c9s
|
3aa40f3aab
|
disable viper config for now
|
2020-10-26 13:56:48 +08:00 |
|
c9s
|
332ca7ffe8
|
make trade sync optional
|
2020-10-26 13:48:59 +08:00 |
|
c9s
|
931c646fde
|
configure notifier and make slack notification optional
|
2020-10-26 13:40:43 +08:00 |
|
c9s
|
ac0a26b005
|
add build command
|
2020-10-26 13:27:07 +08:00 |
|
c9s
|
9017d2a9a7
|
add go os and arch name to the binary name
|
2020-10-26 11:41:21 +08:00 |
|
c9s
|
1e12de28da
|
Add xpuremaker skeleton
|
2020-10-25 18:32:46 +08:00 |
|
c9s
|
81653c6451
|
improve compile function for goos and goarch
|
2020-10-24 16:29:58 +08:00 |
|
c9s
|
2535a5803e
|
alias logrus into log
|
2020-10-24 15:43:55 +08:00 |
|
c9s
|
9ce9ecc910
|
compile local strategies into the wrapper binary
|
2020-10-24 15:38:13 +08:00 |
|
c9s
|
cd28fb8771
|
unmarshal imports into config
|
2020-10-23 14:49:54 +08:00 |
|
c9s
|
e1e8a16f97
|
rename Run to Execute to avoid confusion
|
2020-10-23 14:38:24 +08:00 |
|
c9s
|
bcc97c1906
|
cmd: rename slack-trading-channel to slack-channel
|
2020-10-23 14:29:02 +08:00 |
|
c9s
|
048374566c
|
move commands into pkg/cmd
|
2020-10-23 14:28:07 +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 |
|