c9s
|
3428aeba03
|
apply default exchange fee rate
fixes #566
|
2022-06-03 03:24:34 +08:00 |
|
c9s
|
d27fee57ad
|
fix: do not load all trades into memory
|
2022-06-02 20:02:32 +08:00 |
|
c9s
|
78f9c7d569
|
improve autoborrow checks
|
2022-06-02 01:27:04 +08:00 |
|
zenix
|
71fe6c2d26
|
feature: SLTP from bookticker. fix: bookTicker typename, depth buffer error message
|
2022-05-12 19:43:04 +09:00 |
|
c9s
|
11d0823782
|
cmd: refactor back-test command
|
2022-05-11 13:59:44 +08:00 |
|
c9s
|
36c764efa9
|
refactor balance, asset and remove price cache check
|
2022-05-04 17:17:09 +08:00 |
|
c9s
|
0e417f6f71
|
xnav: rename assets to allAssets
|
2022-05-04 16:21:53 +08:00 |
|
c9s
|
95f7d85183
|
bbgo: pass price time into the asset conversion function
|
2022-05-04 14:23:46 +08:00 |
|
c9s
|
486cf50a9c
|
bbgo: fix init band width setup
|
2022-05-01 01:12:57 +08:00 |
|
c9s
|
fae3b6a215
|
fix BOLL method
|
2022-04-25 15:31:12 +08:00 |
|
Yo-An Lin
|
b94b9e1b73
|
Merge pull request #437 from jessy1092/enhance-boll-indicator
indicator: Support difference bandwidth on boll indicator and can dynamic create BOLL
|
2022-04-25 13:43:02 +08:00 |
|
c9s
|
18da434e92
|
all: use thread-safe GetAccount method to get account
|
2022-04-23 15:43:11 +08:00 |
|
c9s
|
c70317af2b
|
add autoborrow strategy
|
2022-04-23 15:00:04 +08:00 |
|
c9s
|
cf055c3f7d
|
bbgo: improve account updating
|
2022-04-23 12:51:07 +08:00 |
|
c9s
|
9e48a850bd
|
bbgo: call queryAccount to update account
|
2022-04-23 12:51:07 +08:00 |
|
Yo-An Lin
|
ae4a3d81fb
|
Merge pull request #489 from zenixls2/feature/market_trade
feature: add market trade subscription in binance
|
2022-03-22 20:18:39 +08:00 |
|
zenix
|
efec21ca4b
|
feature: add market trade subscription in binance
|
2022-03-18 18:30:39 +09:00 |
|
c9s
|
f85db9be61
|
improve asset summary layout and format
|
2022-03-18 17:13:37 +08:00 |
|
zenix
|
8648528435
|
fix go fmt, fix convert.go (the legacy fixedpoint implementation) in all tests
|
2022-02-15 14:55:19 +09:00 |
|
zenix
|
fad85d0992
|
fix binance test, outptu for support and xgap strategies
|
2022-02-15 12:01:39 +09:00 |
|
zenix
|
105b085786
|
fix bollgrid, emstop, flashcrash, funding, grid, pricealert, pricedrop, rebalance, schedule, swing, xbalance, xgap, xmaker and speedup fixedpoint
|
2022-02-15 12:01:39 +09:00 |
|
zenix
|
d9450e823e
|
fix all the fixedpoint use other than strategy
|
2022-02-15 12:01:39 +09:00 |
|
zenix
|
e221f54397
|
add dnum as the fixedpoint implementation. change types float64 to fixedpoint.Value
change pnl report to use fixedpoint
fix: migrate kline to use fixedpoint
|
2022-02-15 12:00:39 +09:00 |
|
c9s
|
0667c138ab
|
backtest: fix duplicate trade emit issue
|
2022-01-30 03:05:19 +08:00 |
|
c9s
|
547f4c400a
|
cmd: call BindSync when running strategy
|
2022-01-27 18:19:25 +08:00 |
|
austin362667
|
91d2312c5c
|
cache: refactor moving from bbgo to pkg/cache
|
2022-01-15 08:28:02 +08:00 |
|
Lee
|
266400d925
|
indicator: Support difference bandwidth on boll indicator and can dynamic create BOLL
|
2022-01-15 05:30:06 +08:00 |
|
c9s
|
6ee831e678
|
add trade logger
|
2022-01-12 11:19:41 +08:00 |
|
c9s
|
e5b4af53e6
|
all: clean up SubmitOrder fields
|
2022-01-11 01:36:19 +08:00 |
|
c9s
|
1116fc1de1
|
session: print klines only when debug-kline is enabled
|
2021-12-31 15:13:26 +08:00 |
|
c9s
|
31070c3950
|
pull out connection status binder
|
2021-12-30 17:25:47 +08:00 |
|
c9s
|
26ff576727
|
fix connection status callbacks
|
2021-12-30 17:23:27 +08:00 |
|
c9s
|
cfc66dc13e
|
bbgo: add session connection notification
|
2021-12-30 17:18:04 +08:00 |
|
c9s
|
090d60b44e
|
fix session connection status metrics
|
2021-12-28 01:58:36 +08:00 |
|
c9s
|
a0e41650be
|
add metricsLastUpdateTimeBalance metrics
|
2021-12-28 01:39:17 +08:00 |
|
c9s
|
bb9ef72028
|
update metricsConnectionStatus metrics
|
2021-12-28 00:49:56 +08:00 |
|
c9s
|
bb7b33e532
|
bbgo: bind and update balance metrics updater
|
2021-12-27 17:27:16 +08:00 |
|
c9s
|
7b629c9d30
|
bbgo: update balances metrics and trade metrics
|
2021-12-27 17:16:30 +08:00 |
|
c9s
|
0f24eec715
|
bbgo: fix: filter trades by symbol
|
2021-12-27 16:32:30 +08:00 |
|
c9s
|
a31e2743ee
|
fix kline log space
|
2021-12-27 00:54:10 +08:00 |
|
c9s
|
05a0745d08
|
fix InitExchange for publicOnly session
|
2021-12-26 15:29:42 +08:00 |
|
c9s
|
ba8ebfe3a7
|
refactor and add doc comment for InitExchangeSession
|
2021-12-25 23:42:29 +08:00 |
|
c9s
|
307d0b8e1f
|
bbgo: add passphrase field to session struct
|
2021-12-25 23:28:00 +08:00 |
|
c9s
|
57bc65a729
|
avoid calling EmitConnect and EmitStart outside of the kline feeding goroutine
this causes 2 goroutine running in the same time hence cause the
concurrent map read / write
should fix #399, #401
|
2021-12-25 21:05:50 +08:00 |
|
c9s
|
49e516b80e
|
backtest: allocate public exchange (with empty key secret) for backtesting
|
2021-12-24 00:24:19 +08:00 |
|
c9s
|
a3e3e1d177
|
bbgo: do not sync trades when running backtest
|
2021-12-23 23:20:35 +08:00 |
|
austin362667
|
f9cf71cef3
|
indicator: add kline close volatility
indicator: add kline close volatility
|
2021-12-19 14:20:09 +08:00 |
|
TonyQ
|
c0b9cc0f0b
|
exchange: make ftx kline event more reliable
|
2021-12-15 11:23:07 +08:00 |
|
TonyQ
|
51e23b6a0c
|
Merge branch 'main' of github.com:c9s/bbgo into feature/302-record-assets-review
|
2021-12-14 10:39:51 +08:00 |
|
TonyQ
|
4eb5a099ae
|
account: add nav_history_details and account_service for #302
|
2021-12-14 08:09:18 +08:00 |
|
austin362667
|
36c6d39612
|
bbgo: add session Futures & types: add FuturesExchange
|
2021-12-13 23:16:58 +08:00 |
|
austin362667
|
1703fff8b2
|
types: refactor Position and related files
|
2021-12-11 19:16:16 +08:00 |
|
c9s
|
d52edce40b
|
fix markets info cache
|
2021-12-08 17:26:43 +08:00 |
|
c9s
|
ca3f438288
|
show symbol name in the error message
|
2021-12-07 14:35:00 +08:00 |
|
c9s
|
0472b7f21e
|
avoid recording trades in backtest by default
introducing a RecordTrades option
|
2021-12-06 01:42:53 +08:00 |
|
c9s
|
513a799ced
|
fix ewma calculation
|
2021-11-22 02:14:44 +08:00 |
|
c9s
|
d763a3c415
|
bbgo: add debug ewma and sma
|
2021-10-18 17:26:03 +08:00 |
|
c9s
|
30b82390b7
|
bbgo: add EMA and SMA debug var
|
2021-10-18 15:23:22 +08:00 |
|
c9s
|
30c7c34826
|
bbgo: fix kline backward query for backtest
|
2021-10-16 13:49:00 +08:00 |
|
c9s
|
47e4847034
|
fix kline query endtime
|
2021-10-14 14:21:38 +08:00 |
|
c9s
|
44a0b10240
|
bbgo: load last price from 1m interval kline only
|
2021-10-14 00:37:40 +08:00 |
|
c9s
|
e23c459697
|
bbgo: move orderbook to the session level so that we can access it eaiser
|
2021-06-16 13:04:23 +08:00 |
|
c9s
|
2614b25de3
|
types: move fiat currency list to types
|
2021-06-16 13:04:23 +08:00 |
|
c9s
|
c84d59734c
|
clear all trades before running backtests
|
2021-05-30 15:25:00 +08:00 |
|
c9s
|
38fd5422ab
|
xmaker: use uncovered position
|
2021-05-30 14:46:48 +08:00 |
|
c9s
|
7d62a7634b
|
set market data stream to public
|
2021-05-27 15:11:44 +08:00 |
|
c9s
|
b7c87c7744
|
core: move market data subscription to market data stream
|
2021-05-27 15:09:18 +08:00 |
|
c9s
|
45f1a13870
|
rename Stream field to UserDataStream and add MarketDataStream
|
2021-05-27 14:45:06 +08:00 |
|
zenix
|
3d2a27fc10
|
Fix: nil pointer exception in indicator creation, add stoch util func
|
2021-05-26 00:20:31 +00:00 |
|
c9s
|
e7c718ee15
|
assign fee rate to position
|
2021-05-16 17:58:51 +08:00 |
|
c9s
|
0a016cba75
|
split maker fee and taker fee
|
2021-05-16 16:50:26 +08:00 |
|
c9s
|
a4381a54a3
|
add fee rate field
|
2021-05-16 15:03:36 +08:00 |
|
c9s
|
a49cf531b5
|
fix cross exchange order executor for the basic risk control
|
2021-05-12 19:02:09 +08:00 |
|
c9s
|
df11112d64
|
refactor exchange session initialization
|
2021-05-12 12:05:54 +08:00 |
|
c9s
|
29b7326f19
|
add withdrawal property to the exchange session
|
2021-05-12 12:05:54 +08:00 |
|
c9s
|
d01abffde3
|
add todo for the backtest trades
|
2021-05-08 01:09:06 +08:00 |
|
c9s
|
494a270c54
|
insert trades to db only when backtest service is nil
|
2021-05-07 01:50:38 +08:00 |
|
c9s
|
584a4c2ef8
|
move fiat currency definition out
|
2021-05-07 01:30:09 +08:00 |
|
c9s
|
50db944053
|
fix initSymbol stages
|
2021-05-02 23:58:34 +08:00 |
|
c9s
|
822a010932
|
add moving average configuration to the schedule strategy
|
2021-05-02 20:58:32 +08:00 |
|
c9s
|
9f77236999
|
fix and improve position accessor
|
2021-04-28 19:32:49 +08:00 |
|
c9s
|
34fe915a9f
|
fix sync issue for pnl command
|
2021-04-09 12:43:13 +08:00 |
|
c9s
|
088b22f338
|
support bbgo-no-cache option
|
2021-03-22 17:32:21 +08:00 |
|
c9s
|
2eda012f43
|
add SubAccount field to the exchange session config
|
2021-03-15 10:13:41 +08:00 |
|
c9s
|
5a7cf05701
|
integrate reward service into the sync service
|
2021-02-23 16:39:48 +08:00 |
|
c9s
|
eaad414706
|
adjust max api call rate limiting
|
2021-02-22 15:01:05 +08:00 |
|
c9s
|
724dad70bb
|
remove trade sync from environ init
|
2021-02-22 14:14:39 +08:00 |
|
c9s
|
dd13b9a8bf
|
remove start time query condition for trade sync since starting from trade id = 1 works
|
2021-02-19 14:18:50 +08:00 |
|
c9s
|
44fa74a4c9
|
refactor session sync
|
2021-02-19 10:42:24 +08:00 |
|
c9s
|
c219dc7be0
|
add test code for testing migration scripts
|
2021-02-15 21:04:44 +08:00 |
|
c9s
|
f8378957ee
|
add more checks for bollgrid
related to #93
|
2021-02-13 16:03:31 +08:00 |
|
c9s
|
57435419b4
|
add marketData label
|
2021-02-10 22:40:36 +08:00 |
|
ycchen
|
6655e16889
|
minor tweaks
|
2021-02-08 22:41:44 +01:00 |
|
ycchen
|
61c98432f2
|
feat: tickers for asset calculation
|
2021-02-08 22:41:44 +01:00 |
|
c9s
|
098a966813
|
add test case for config.Map method
|
2021-02-03 09:34:53 +08:00 |
|
c9s
|
8aa96c4546
|
integrate strateg adding api
|
2021-02-03 02:26:41 +08:00 |
|
c9s
|
17d5e301dc
|
refine setup steps
|
2021-02-02 17:26:35 +08:00 |
|
c9s
|
a60aeb4771
|
pull out .Subscribe from trader.Run
|
2021-02-01 20:44:15 +08:00 |
|
c9s
|
ddcc8ae4ee
|
move ExchangeOrderExecutor into exchange session
|
2021-02-01 20:44:15 +08:00 |
|
c9s
|
de8e717a41
|
refactor session initialization function
|
2021-02-01 20:44:15 +08:00 |
|