c9s
db4d8a31bc
bbgo: implement parseStructAndInject
2022-03-05 02:33:25 +08:00
c9s
9e0df77a36
move profit struct into the types package
2022-03-04 16:39:48 +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
5315378b9e
fix takerfeerate column and makerfeerate column issue in yaml
2022-02-15 12:01:39 +09:00
zenix
fad85d0992
fix binance test, outptu for support and xgap strategies
2022-02-15 12:01:39 +09:00
zenix
05521a98b6
add skeleton strategy. fix most of the tests. fix final asset value
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
b8bf2af14d
fixedpoint for exchange and indicators, some fixes in types
2022-02-15 12:01:38 +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
Andy Cheng
66b042fea7
strategy: trailing stop TP for support strategy
2022-02-06 17:47:11 +08:00
c9s
f96c2e6271
bbgo: add activated flag on trailing stop order
2022-02-01 00:41:28 +08:00
c9s
bed03dbd17
schedule: refactor and improve schedule strategy with QuantityOrAmount struct
2022-01-31 01:42:21 +08:00
c9s
11bbdb16a0
bollmaker: clean up empty files
2022-01-31 01:31:31 +08:00
c9s
0e7f88e3bf
move SmartStops into the bbgo package
2022-01-31 01:27:47 +08:00
c9s
67bc5d523a
bollmaker: refactor trailing stop snippet
2022-01-31 00:44:04 +08:00
c9s
0667c138ab
backtest: fix duplicate trade emit issue
2022-01-30 03:05:19 +08:00
c9s
2255f3ed0a
bollmaker: check dust order for stop
2022-01-29 17:44:42 +08:00
c9s
99af5d3971
bollmaker: implement TrailingStopController
2022-01-29 02:22:20 +08:00
c9s
547f4c400a
cmd: call BindSync when running strategy
2022-01-27 18:19:25 +08:00
c9s
3b630c0bca
bbgo: pull out writer closure
2022-01-27 18:13:15 +08:00
c9s
cb507edf44
bbgo: add BindSync method on environment
2022-01-27 18:12:15 +08:00
c9s
30a9a5849f
add user data stream sync config
2022-01-27 09:34:04 +08:00
c9s
70f02a1c19
cmd: handle user config sync options in the run command
2022-01-27 08:21:19 +08:00
c9s
0d0d8b05bf
bbgo/scale: test out of domain
2022-01-27 02:39:33 +08:00
c9s
1ef5a37225
bbgo/scale: check domain range
2022-01-27 02:32:26 +08:00
c9s
09213b14f3
bbgo: add negative range test for PercentageScale
2022-01-27 01:47:01 +08:00
c9s
49f671ef54
add PercentageScale and its tests
2022-01-27 01:40:54 +08:00
c9s
cfc17acd20
config: use looseFormatTime type for since field
2022-01-27 00:24:19 +08:00
c9s
a29198f733
bbgo: fix LooseFormatTime.UnmarshalYAML
2022-01-25 01:18:56 +08:00
c9s
007207e24f
all: use types.LooseFormatTime to parse loose format date time string
2022-01-25 00:24:12 +08:00
c9s
5f7676f0c1
bbgo: add sync config
2022-01-25 00:06:25 +08:00
c9s
407a533659
use the standard generated comment
...
https://github.com/golang/go/issues/13560
Generated files are marked by a line of text that matches the regular
expression, in Go syntax:
^// Code generated .* DO NOT EDIT\.$ The .*
means the tool can put whatever folderol it wants in there, but the
comment must be a single line and must start with Code generated and end
with DO NOT EDIT., with a period.
2022-01-23 14:57:45 +08:00
c9s
1f18c36870
cmd: improve build command
2022-01-23 14:44:17 +08:00
c9s
7b572120a1
interact: use RemoveKeyboard from interact.KeyboardController
2022-01-23 14:13:47 +08:00
c9s
01afe9c14e
interact: fix telegram session restore
2022-01-23 02:21:26 +08:00
c9s
0af5fc0530
interact: add RequireTextInput method to Reply interface
2022-01-23 02:21:26 +08:00
c9s
f5f8f15670
slack: add reply and session struct
2022-01-23 02:21:26 +08:00
c9s
ad3f038dc6
bbgo: improve otp key layout
2022-01-23 02:21:26 +08:00
c9s
c7f15efb23
interact: add Slack interaction
2022-01-23 02:21:26 +08:00
Kakashi Liu
cd85edd64d
Fix: fallback to memory persistence if redis not found
...
resolve #438
Fix bollmaker backtest error
2022-01-22 00:55:03 +08:00
c9s
0b8e5852eb
check persistence error
2022-01-19 18:29:24 +08:00
Yo-An Lin
0e0525be99
Merge pull request #418 from austin362667/refactor/futures-account
...
binance: add futures exchange api queries
2022-01-17 20:54:49 +08:00
c9s
5c0e3a1254
bollmaker: add shadow protection config
2022-01-16 04:40:50 +08:00
c9s
71e660571d
bbgo: optimize LocalActiveOrderBook for back-testing speed
2022-01-16 01:34:28 +08:00
c9s
5d54e6fded
interact: skip total == 0 balance
2022-01-16 01:06:47 +08:00
c9s
b80f481e7d
interact: fix interact tests for session
2022-01-16 00:50:43 +08:00
c9s
b49fc182dc
fix telegram session persistence
2022-01-16 00:39:24 +08:00
c9s
2088234b44
interact: separate telegram user sessions
2022-01-16 00:25:11 +08:00
austin362667
91d2312c5c
cache: refactor moving from bbgo to pkg/cache
2022-01-15 08:28:02 +08:00
c9s
5f942e85ed
bbgo: show position with plaintext mode instead of string format
2022-01-15 03:13:30 +08:00
c9s
1c7d4d09cf
interact: add Cycle state builder
2022-01-15 03:06:36 +08:00
c9s
2a6b821908
bbgo: implement /position command
2022-01-15 02:58:55 +08:00
c9s
93722e6db3
implement position closer interaction
2022-01-15 02:52:46 +08:00
c9s
255ee40c98
bbgo: when calling order cancel we should use background context
2022-01-15 00:49:27 +08:00
c9s
77e92d544a
bbgo: pull out interaction setup
2022-01-15 00:32:21 +08:00
c9s
e385d96709
bbgo: move authToken loader
2022-01-15 00:29:35 +08:00
c9s
3a13025d58
bbgo: change default notification rule -- silent order updates
2022-01-15 00:25:16 +08:00
c9s
d5f3946ada
bbgo: refactor the current auth with interact
2022-01-15 00:18:07 +08:00
c9s
51ecac54e7
bbgo: fix local active book graceful cancel
2022-01-15 00:17:52 +08:00
c9s
41b94c5c7e
interact: refactor telegram interaction
2022-01-14 15:03:19 +08:00
c9s
fdf7ad9648
bbgo: rename auth function for general case
2022-01-14 13:41:43 +08:00
c9s
5bef7d8a1e
interact: use interaction singleton
2022-01-14 13:31:31 +08:00
c9s
dd93ee4fd3
move methods to telegramnotifier
2022-01-14 13:31:31 +08:00
c9s
43317bb647
add state and telegram example
2022-01-13 11:43:33 +08:00
c9s
ccaa8c5c86
bbgo: implement parseCommand
2022-01-13 11:43:33 +08:00
c9s
7053802041
basic interaction parser
2022-01-13 11:43:33 +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
48cbb7fff6
bbgo: check order side and log error
2022-01-10 17:26:14 +08:00
c9s
d57f8fedfe
bbgo: fix active book order removal
2022-01-10 12:29:19 +08:00
c9s
d94cc2df31
bbgo: add recover callbacks to trace collector
2022-01-09 15:39:59 +08:00
c9s
0cec652f38
bollmaker: skip submitOrder calls if submitOrders is empty
2022-01-09 02:35:12 +08:00
c9s
7e2acdc416
all: add lock protected GetBase method for Position
2022-01-09 00:35:45 +08:00
c9s
d1420e66be
fix TestTradeCollector_ShouldNotCountDuplicatedTrade
2022-01-08 02:20:30 +08:00
c9s
e0b906a88b
bbgo: fix processTrade
2022-01-07 16:53:11 +08:00
c9s
a5fb408a16
twap: refactor and call activeMakerOrders.GracefulCancel
2022-01-07 01:34:23 +08:00
c9s
e312ec953c
bbgo: rename test case
2022-01-07 01:23:54 +08:00
c9s
d63cc42867
bbgo: add trade collector test
2022-01-07 01:17:07 +08:00
c9s
a49d001c29
xmaker: add trade scanner
2022-01-07 01:03:12 +08:00
c9s
69ae3259ff
bbgo: mark trade as done in the trade collector for preventing duplicated trade
2022-01-07 00:28:12 +08:00
c9s
259771b0b0
all: pull out the graceful cancel process to the local active book
2022-01-07 00:10:40 +08:00
c9s
47e23fda90
bbgo: add cache expiry
2022-01-06 23:57:42 +08:00
c9s
1116fc1de1
session: print klines only when debug-kline is enabled
2021-12-31 15:13:26 +08:00
c9s
63ccc2d3d0
bbgo: remove order if ExecutedQuantity is zero
2021-12-31 01:55:22 +08:00
c9s
ba73d5a09a
fix kucoin orderTime parsing and order id conversion
2021-12-30 22:02:50 +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
a2931da92c
move math rand
2021-12-30 16:18:32 +08:00
c9s
22e4da3775
fix pendingRemoval lock
2021-12-29 23:53:46 +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
42f22e0ef3
add prometheus metrics server
2021-12-27 16:27:14 +08:00
c9s
a31e2743ee
fix kline log space
2021-12-27 00:54:10 +08:00
c9s
f7c39290a0
call tradeCollector process to check trades
2021-12-27 00:51:57 +08:00