austin362667
904e7c03ad
strategy: cleanup funding strategy
...
strategy: cleanup funding strategy
2022-01-15 08:28:02 +08:00
austin362667
0ab94e0884
binance: fix err handler
2022-01-15 08:28:02 +08:00
austin362667
91d2312c5c
cache: refactor moving from bbgo to pkg/cache
2022-01-15 08:28:02 +08:00
austin362667
734221028b
binance: fix parse type
2022-01-15 08:28:02 +08:00
austin362667
d0e26c66e4
strategy: add funding strategy
2022-01-15 08:28:02 +08:00
austin362667
f661db56bd
service: handle error
2022-01-15 08:28:02 +08:00
austin362667
9a1d2cba31
binance: add account info in query account
2022-01-15 08:28:02 +08:00
austin362667
32c2f128f5
binance: add TradeFutures
2022-01-15 08:28:02 +08:00
austin362667
8130ef78c1
binance: refactor margin related conversions
2022-01-15 08:28:02 +08:00
austin362667
cd5d8c7a3f
types: modify IsolatedMarginAsset from array to map
2022-01-15 08:28:02 +08:00
austin362667
48d968059c
types: add margin asset map & account info
2022-01-15 08:28:02 +08:00
austin362667
5404bfe7f8
binance: fix futures symbol not found from syncSession
...
binance: fix query trades, closed orders futures symbol not found
binance: fix futures symbol not found
2022-01-15 08:28:02 +08:00
austin362667
0f0539fe70
binance: add futures exchange queries
2022-01-15 08:28:02 +08:00
austin362667
6071c07073
binance: add futures conversion
2022-01-15 08:28:02 +08:00
austin362667
6ac8b36eca
types: add futures assets
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
Lee
f6c70bdfcb
ftx: Separate the lastClosed record for different interval
2022-01-15 05:12:45 +08:00
c9s
0e3cc08c94
bump version to v1.26.0
2022-01-15 03:37:06 +08:00
c9s
5f942e85ed
bbgo: show position with plaintext mode instead of string format
2022-01-15 03:13:30 +08:00
c9s
06e7ab8824
interact: fix interact tests
2022-01-15 03:09:42 +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
77c2a6e10b
types: fix submit order preview
2022-01-15 02:52:33 +08:00
c9s
140e5638b8
binance: apply order cancel rate limiter
2022-01-15 00:52:54 +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
0114d92f2f
interact: split interaction files
2022-01-14 13:31:31 +08:00
c9s
97ca304bec
telegramnotifier: add SetOwner method
2022-01-14 13:31:31 +08:00
c9s
dd93ee4fd3
move methods to telegramnotifier
2022-01-14 13:31:31 +08:00
c9s
832faf91f8
interact: add command description
2022-01-14 13:31:31 +08:00
c9s
317d8e9d49
xgap: add minSpread option
2022-01-14 12:49:46 +08:00
Yo-An Lin
e797e597b1
Merge pull request #435 from jessy1092/fix/correct-bollmaker-params
...
fix: Correct uptrendSkew and downtrendSkew parameters setting on bollmaker strategy
2022-01-14 12:18:18 +08:00
c9s
eef14fa950
xgap: add jitter
2022-01-14 12:03:29 +08:00
c9s
1f6076ae18
plus a quantity jitter
2022-01-14 11:59:40 +08:00
c9s
42430fde4b
interact: fix interact tests
2022-01-14 02:36:57 +08:00
c9s
17322cbc09
interact: improve authentication process
2022-01-14 02:36:06 +08:00
c9s
62e5706657
interact: improve strict mode authentication
2022-01-14 02:13:59 +08:00
c9s
72a925f659
interact: support authorizer
2022-01-14 01:58:04 +08:00
c9s
086127e8f7
interact: let function evaluator returns state, inject nil if object is not found
2022-01-14 01:01:01 +08:00
c9s
14eea34394
interact: pull out authentication interaction
2022-01-14 00:26:53 +08:00
c9s
91c831140c
interact: fix private command
2022-01-14 00:17:41 +08:00
c9s
a6fb0caff3
interaction: add PrivateCommand
2022-01-13 23:41:22 +08:00
Lee
965fc6989d
fix: Correct uptrendSkew and downtrendSkew parameters setting on bollmaker strategy
2022-01-13 23:06:23 +08:00
c9s
76c64b041f
interact: separate interfaces
2022-01-13 22:24:51 +08:00
c9s
7eba6b20c9
implement the basic flow of interact
2022-01-13 22:15:05 +08:00
c9s
ba4c694179
interact: scan all return values
2022-01-13 11:43:33 +08:00
c9s
087a91aa8a
interact: fix object arg injection
2022-01-13 11:43:33 +08:00
c9s
caa50c3b04
interact: implement parseFuncArgsAndCall with interface injection
2022-01-13 11:43:33 +08:00
c9s
3cc11badac
interact: implement command state machine
2022-01-13 11:43:33 +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
7daa82ff9e
bump version to v1.25.4
2022-01-13 11:33:30 +08:00
c9s
dc6d60216b
types: fix order book copy
2022-01-13 11:09:50 +08:00
c9s
98247385f9
xmaker: use GracefulCancel to cancel active orders
2022-01-13 11:01:46 +08:00
c9s
e91dc5a518
types: use mod 3 and mod 7 for test
2022-01-13 10:59:03 +08:00
c9s
e573c18a5c
types: add more detailed rbtree tests
2022-01-13 10:56:57 +08:00
c9s
cb9d9137a6
depth: add details to the depth error message
2022-01-13 00:14:15 +08:00
c9s
8b56c47f65
add doc-comment for PriceHeartBeat
2022-01-13 00:01:20 +08:00
c9s
ec72a922c8
all: add subscribe depth options
2022-01-12 22:27:42 +08:00
c9s
f9e72dc79f
binance: subscribe binance depth10@100ms
2022-01-12 22:17:07 +08:00
c9s
5cc3a88911
xmaker: show order book last update time
2022-01-12 22:11:28 +08:00
c9s
2aeb9e870c
types: add lastUpdateTime field
2022-01-12 22:07:52 +08:00
c9s
915f2c7476
types: add last update time field to orderbook
2022-01-12 22:06:08 +08:00
c9s
09592755cc
cmd: add dump-update option to orderbook cmd
2022-01-12 22:00:29 +08:00
c9s
1a61935850
add depth buffer logs
2022-01-12 21:55:26 +08:00
c9s
8c2228f428
cmd: use time.Local for the local timezone
2022-01-12 15:33:04 +08:00
c9s
b3b1161ecc
depth: add SetUpdateTimeout
2022-01-12 14:49:01 +08:00
c9s
0c7710c91b
types: avoid using copy node for rbtree
2022-01-12 14:45:05 +08:00
c9s
c3356fa694
types: add test for PriceHeartBeat
2022-01-12 14:42:11 +08:00
c9s
5755c44845
move PriceHeartBeat to types
2022-01-12 14:33:55 +08:00
c9s
f28bfbf0c9
bump version to v1.25.3
2022-01-12 12:56:15 +08:00
Yo-An Lin
30c1dd3e3d
Merge pull request #424 from tony1223/bug/binance-add-ratelimiter
...
fix: [binance] add order rate limiter
2022-01-12 12:53:51 +08:00
Yo-An Lin
c2b121f9ee
Merge pull request #432 from jessy1092/ftx/support-limit-maker
...
ftx: Support LIMIT_MAKER and IOC_LIMIT order type
2022-01-12 12:50:57 +08:00
c9s
e44a2c1cac
service: check redis client and show proper error
2022-01-12 12:42:39 +08:00
c9s
420e221f5b
xmaker: pull out PriceHeartBeat
2022-01-12 12:14:51 +08:00
c9s
7195c6ed27
xmaker: add price quoting protection
2022-01-12 11:55:45 +08:00
c9s
0e927a9a06
types: avoid using nil in rbt
2022-01-12 11:45:08 +08:00
c9s
6ee831e678
add trade logger
2022-01-12 11:19:41 +08:00
c9s
db8a74238e
notifier/telegramnotifier: remove debug log
2022-01-12 11:18:36 +08:00
Lee
523d9b3071
ftx: Support LIMIT_MAKER and IOC_LIMIT order type
2022-01-12 03:47:12 +08:00
c9s
848d36f90b
add trade exchange back
2022-01-11 22:50:38 +08:00
c9s
940c675cae
xmaker: add rate limit hit alert
2022-01-11 22:48:28 +08:00
c9s
081a143ec0
xmaker: add DepthQuantity
2022-01-11 22:47:40 +08:00
c9s
b302adcc7e
types: add and use OrderError
2022-01-11 18:00:07 +08:00
c9s
857db529af
binance: show order info in the error
2022-01-11 17:05:36 +08:00
c9s
b56c800e12
binance: add order status to the error message
2022-01-11 16:47:55 +08:00
c9s
97422f26e7
binance: should return error when order does not contain orderID or clientOrderID
2022-01-11 16:38:02 +08:00
c9s
96ffab9cd8
binance: add details to order cancel error
2022-01-11 16:35:49 +08:00
c9s
c59d82900b
bump version to v1.25.2
2022-01-11 14:20:06 +08:00
c9s
4a8751e486
binance: fix listen key keep alive worker call
2022-01-11 14:16:35 +08:00
c9s
eefee46e9b
binance: invert if
2022-01-11 13:38:03 +08:00
c9s
cf07ca7aa0
binance: adjust listen key update interval to longer period
2022-01-11 13:37:02 +08:00
c9s
71a0604e72
use fixedpoint to parse payload directly
2022-01-11 01:41:33 +08:00
c9s
e5b4af53e6
all: clean up SubmitOrder fields
2022-01-11 01:36:19 +08:00
c9s
43818e95b6
types: move channels to a single file
2022-01-11 01:25:39 +08:00
c9s
e12178b51a
stream: make ping method private
2022-01-11 01:24:34 +08:00
c9s
a66070d286
stream: make reconnector private
2022-01-11 01:24:01 +08:00
c9s
16ec856a4e
types: add debug flag for websocket raw message
...
flag: debug-websocket-raw-message
2022-01-11 01:23:01 +08:00
c9s
b24d944796
types: fix, remove the read timeout override
2022-01-11 01:20:09 +08:00
c9s
70dec09f26
xmaker: fix minQuantity buffer
2022-01-10 23:17:19 +08:00
c9s
6008aaac5f
types: add order status icon for slack
2022-01-10 18:01:22 +08:00
c9s
d1c981e0b3
types: fix order slack attachment
2022-01-10 17:54:35 +08:00
c9s
2c94ec427b
types: improve order slack attachment
2022-01-10 17:46:01 +08:00
c9s
48cbb7fff6
bbgo: check order side and log error
2022-01-10 17:26:14 +08:00
c9s
5103088675
cmd: fix submitOrder cmd
2022-01-10 17:16:07 +08:00
c9s
4b0e721580
binance: change binance debug client env var name to debug-binance-client
2022-01-10 16:37:41 +08:00
TonyQ
25801f9f63
add ratelmiter
2022-01-10 16:33:19 +08:00
c9s
88210fd27b
types: improve trade text template
2022-01-10 14:32:55 +08:00
c9s
7952cf8804
display fee only when fee > 0
2022-01-10 14:25:33 +08:00
c9s
fb3c198447
types: add okex icon and kucoin icon
2022-01-10 14:18:09 +08:00
c9s
e2f7790a4e
types: show exchange name in the trade footer
2022-01-10 14:15:45 +08:00
c9s
439685141f
add footer icon for exchange name
2022-01-10 14:15:05 +08:00
c9s
16b5ea9744
bump version to v1.25.1
2022-01-10 13:52:35 +08:00
c9s
b26141ac1f
support: set default s.triggerEMA
2022-01-10 13:51:14 +08:00
c9s
b56e988fc9
support: fix triggerEMA check
2022-01-10 13:49:36 +08:00
c9s
2c2ba46ab7
bump version to v1.25.1
2022-01-10 13:46:41 +08:00
c9s
6c3ee314d9
binance: fix order cancel client order id usage
2022-01-10 13:29:27 +08:00
c9s
c284e2e3bb
types: improve pendingRemoval check
2022-01-10 12:44:06 +08:00
c9s
d57f8fedfe
bbgo: fix active book order removal
2022-01-10 12:29:19 +08:00
c9s
3907f99e70
xmaker: keep rate reservation token
2022-01-10 12:25:13 +08:00
c9s
1b27c4e9c4
remove hedge error limiter
2022-01-09 23:45:46 +08:00
c9s
54779444f4
bump version to v1.25.0
2022-01-09 22:54:21 +08:00
c9s
9ca4e23aaf
add strategy documentation
2022-01-09 22:43:49 +08:00
c9s
bba4e86fdf
bollmaker: adjust default skew parameter
2022-01-09 22:37:27 +08:00
c9s
b98777afe4
bollmaker: pull out skew options
2022-01-09 22:32:23 +08:00
c9s
d94cc2df31
bbgo: add recover callbacks to trace collector
2022-01-09 15:39:59 +08:00
c9s
ab3dabcbcc
bump version to v1.24.0
2022-01-09 11:44:41 +08:00
c9s
cbff0b6eca
types: improve position fee display for telegram
2022-01-09 11:42:01 +08:00
c9s
6ce8edba7d
xmaker: add error rate limiter
2022-01-09 11:33:34 +08:00
c9s
471a1b2baa
xmaker: adjust minimal quantity and minimal notional threshold
2022-01-09 10:18:31 +08:00
c9s
7e9b768e4c
slacknotifier: apply rate limiter to 1 message per second
2022-01-09 10:14:39 +08:00
c9s
cd340bd596
bollmaker: check s.MaxExposurePosition
2022-01-09 03:03:54 +08:00
c9s
0cec652f38
bollmaker: skip submitOrder calls if submitOrders is empty
2022-01-09 02:35:12 +08:00
c9s
656ef942e4
bollmaker: add disable short option
2022-01-09 02:24:10 +08:00
c9s
4df5847647
bollmaker: add quantity scaling for closing position
2022-01-09 01:57:51 +08:00
c9s
4cdb5b607b
rename bollpp to bollmaker
2022-01-09 01:20:47 +08:00
c9s
02dfdb57bd
types: pull out position type
2022-01-09 00:45:19 +08:00
c9s
1b1fc3ad66
types: collect fees
2022-01-09 00:39:55 +08:00
c9s
7e2acdc416
all: add lock protected GetBase method for Position
2022-01-09 00:35:45 +08:00
c9s
9b92c8948d
xmaker: fix quantity truncation and add check for min quantity n min notional
2022-01-09 00:30:18 +08:00
c9s
415cda3fca
bump version to v1.23.0
2022-01-08 19:06:03 +08:00
c9s
d1420e66be
fix TestTradeCollector_ShouldNotCountDuplicatedTrade
2022-01-08 02:20:30 +08:00
c9s
cb189d885c
fix backtest for limit maker order and bollpp strategy
2022-01-08 02:18:44 +08:00
c9s
e0b906a88b
bbgo: fix processTrade
2022-01-07 16:53:11 +08:00
c9s
f4ebae17bb
xmaker: when recover the trade, notify
2022-01-07 13:13:57 +08:00
c9s
a5fb408a16
twap: refactor and call activeMakerOrders.GracefulCancel
2022-01-07 01:34:23 +08:00
c9s
d013713c00
types: add exchange name to trade key
2022-01-07 01:25:07 +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
01c7429758
trade: use assignment instead of append
2022-01-07 00:21:14 +08:00
c9s
41574a2390
xmaker: use millisecond jitter from the util package
2022-01-07 00:14:24 +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
1d5406ef21
xmaker: always update maker market
2022-01-06 23:27:06 +08:00
c9s
c8bf85f4e2
xmaker: improve pips
2022-01-05 11:34:07 +08:00
c9s
e997220321
xmaker: fix ask pips
2022-01-05 11:32:56 +08:00
c9s
8b6cae9107
max: fix max authenticated event parsing
2022-01-02 12:20:38 +08:00
c9s
e04139a330
max: clean up and refactor max stream
2022-01-02 12:02:36 +08:00
c9s
cc0e5f71b0
clean up binance stream
2022-01-02 12:02:36 +08:00
Yo-An Lin
b22bb4b28d
Merge pull request #416 from tony1223/bug/415-ftx-kline
...
exchange/ftx: #415 fix kline issue
2022-01-02 02:46:22 +08:00
c9s
85c14e5966
binance: fix parser tests
2022-01-02 02:44:47 +08:00
c9s
dcea623264
binance: change listen key update interval to 10 minutes
2022-01-02 02:41:58 +08:00
c9s
96fedfd311
okex: refactor okex stream
2022-01-02 02:37:33 +08:00
TonyQ
8315607de3
exchange/ftx: #415 fix kline issue
2022-01-02 02:34:29 +08:00
c9s
9d382a6b8c
binance: use sync.Once to protect the set server time calls
2022-01-02 02:14:04 +08:00
c9s
ffe216ca2d
kucoin: remove unused fields
2022-01-02 02:11:55 +08:00
c9s
76d11af284
kucoin: fix connection field
2022-01-02 02:11:36 +08:00
c9s
f4bfd8cc6b
all: move Reconnector to standard stream
2022-01-02 02:08:34 +08:00
c9s
6f6dac611e
refactor websocket stream into standard websocket stream
2022-01-02 01:54:47 +08:00
c9s
073845baa1
bump version to v1.22.3
2022-01-01 02:52:14 +08:00
c9s
3c57ce788e
add startTime to the trade sync query
2022-01-01 02:51:58 +08:00
c9s
ab0519c4be
start time is required for syncing trades
2022-01-01 02:50:07 +08:00
c9s
83053ab807
bump version to v1.22.3
2022-01-01 02:45:59 +08:00
c9s
7d64a30a6b
kucoin: fix launch date with local time zone
2022-01-01 02:45:47 +08:00
c9s
0fc5f74cb1
bump version to v1.22.3
2022-01-01 02:43:48 +08:00
c9s
129f44bbcb
fix empty start time sync issue
2022-01-01 02:43:08 +08:00
c9s
25f01b8837
kucoin: refactor ticker request
2022-01-01 02:07:48 +08:00
c9s
be408055a6
kucoin: refactor account service api
2022-01-01 02:04:20 +08:00
c9s
61736a6263
bump version to v1.22.2
2022-01-01 01:35:37 +08:00
c9s
6ff24e713e
xmaker: fix notification format
2022-01-01 01:34:48 +08:00
c9s
6d5ab33d17
kucoin: fix kucoin order query
2022-01-01 01:28:29 +08:00
c9s
556a581ae1
kucoin: add kucoin list history orders request
2022-01-01 00:46:33 +08:00
c9s
809528a9cc
bump version to v1.22.1
2021-12-31 15:27:01 +08:00
c9s
6055f90680
xmaker: add cover and uncover logs
2021-12-31 15:26:51 +08:00
c9s
5b250d0e28
bump version to v1.22.1
2021-12-31 15:17:30 +08:00
c9s
1116fc1de1
session: print klines only when debug-kline is enabled
2021-12-31 15:13:26 +08:00
c9s
899e8d2d58
Revert "xmaker: fix s.state.CoveredPosition.AtomicAdd add"
...
This reverts commit 5999dc1151
.
2021-12-31 14:23:02 +08:00
c9s
e05da17f4f
sync: skip rejected withdraw record
2021-12-31 14:20:36 +08:00
c9s
eba33329d1
always sort orders and trades in the batch query
2021-12-31 14:12:41 +08:00
c9s
2a8caa3780
batch: show trade sync time range in the message
2021-12-31 13:56:53 +08:00
c9s
20c6c7eb9a
all: fix trade, order sync for kucoin
2021-12-31 13:52:16 +08:00
c9s
5f84f13e21
kucoin: fix trade time field issue
2021-12-31 13:20:34 +08:00
c9s
5999dc1151
xmaker: fix s.state.CoveredPosition.AtomicAdd add
2021-12-31 02:00:39 +08:00
c9s
63ccc2d3d0
bbgo: remove order if ExecutedQuantity is zero
2021-12-31 01:55:22 +08:00
c9s
aaa52ecea4
xmaker: remove unsued localTimeZone var
2021-12-31 01:53:30 +08:00
c9s
f2b852c486
bump version to v1.22.0
2021-12-31 01:52:29 +08:00
c9s
e09b4fa5fb
kucoin: rewrite cancel all orders request
2021-12-31 01:50:56 +08:00
c9s
6addd503aa
kucoin: generate PlaceOrderRequest with requestgen
2021-12-31 01:43:31 +08:00
c9s
af19875e2e
kucoin: fix predefined generate command alias
2021-12-31 01:39:45 +08:00
c9s
b91bf10a7c
kucoin: remove New prefix from the requests
2021-12-31 01:36:41 +08:00
Yo-An Lin
8aef3c002a
Merge pull request #412 from austin362667/refactor/futures-account
...
binance: add futures stream
2021-12-31 01:27:34 +08:00
c9s
b8b5ccdd2d
kucoin: refactor account service with requestgen
2021-12-31 01:25:04 +08:00
austin362667
9483a0d10d
binance: modify methods for registering callbacks
2021-12-31 00:11:47 +08:00
austin362667
65d37c1983
binance: add futures stream
2021-12-31 00:08:27 +08:00
austin362667
3d63032f7d
types: modify Positions to FuturesPositions
2021-12-31 00:08:27 +08:00
austin362667
5cc768031e
binance: add FuturesPosition conversion
2021-12-31 00:08:27 +08:00
austin362667
b000f572b4
types: add FuturesPosition
2021-12-31 00:08:27 +08:00
c9s
a4949a100d
bump version to v1.21.4
2021-12-30 23:47:31 +08:00
c9s
3c2704c4ae
add binance.us support
2021-12-30 23:46:43 +08:00
c9s
c467529b23
bump version to v1.21.3
2021-12-30 22:04:38 +08:00
c9s
ba73d5a09a
fix kucoin orderTime parsing and order id conversion
2021-12-30 22:02:50 +08:00
c9s
76d31e7614
kucoin: add client order ID to converter
2021-12-30 21:39: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
4383823135
use trimTrailingZeroFloat
2021-12-30 17:21:23 +08:00
c9s
cfc66dc13e
bbgo: add session connection notification
2021-12-30 17:18:04 +08:00
c9s
8995ce2824
binance: adjust timeout
2021-12-30 16:51:30 +08:00
c9s
890fb5327a
rename StreamRequest to WebSocketCommand
2021-12-30 16:49:07 +08:00
c9s
35e0b1d146
binance: fix binance stream graceful shutdown
2021-12-30 16:47:39 +08:00
c9s
ff87fb007e
binance: pull out dispatchEvent
2021-12-30 16:30:02 +08:00
c9s
bae7df806f
binance: pull out getEndpointUrl
2021-12-30 16:22:29 +08:00
c9s
d72d57526c
binance: add DEBUG_BINANCE_STREAM env var
2021-12-30 16:20:32 +08:00
c9s
a2931da92c
move math rand
2021-12-30 16:18:32 +08:00
c9s
e73866a232
tmp
2021-12-30 16:17:26 +08:00
c9s
7fa05b33f8
bump version to v1.21.2
2021-12-30 16:17:07 +08:00
c9s
e82800ce01
bump version to v1.21.2
2021-12-30 16:06:11 +08:00
c9s
db4a6cf305
bump version to v1.21.2
2021-12-30 15:59:19 +08:00
c9s
844b3c2e8e
fix kucoin context issue
2021-12-30 15:58:58 +08:00
c9s
3b9a191c95
binance: refactor binance stream handlers
2021-12-30 14:02:36 +08:00
c9s
f540742b42
add tradeType field
2021-12-30 02:37:17 +08:00
c9s
3cf499b605
kucoin: rewrite GetAllTickersRequest api
2021-12-30 02:33:07 +08:00
c9s
0fc91500e4
kucoin: rewrite GetTickerRequest with requestgen
2021-12-30 02:22:33 +08:00
c9s
5136001c9b
kucoin: rewrite ListSymbolsRequest
2021-12-30 02:17:03 +08:00
c9s
41435458d1
refactor orderbook requests with requestgen
2021-12-30 01:15:19 +08:00
c9s
6ff7113ace
bump version to v1.21.1
2021-12-30 00:34:52 +08:00
c9s
33801a4fbc
fix trailing zero trim
2021-12-30 00:14:01 +08:00
c9s
22e4da3775
fix pendingRemoval lock
2021-12-29 23:53:46 +08:00
c9s
2c0af99a51
rewrite kucoin bullet api with requestgen
2021-12-29 22:06:21 +08:00
c9s
8f97ee7787
binance: add isolated margin flag
2021-12-29 17:36:08 +08:00
c9s
2ef4d713f8
binance: fix margin order cancel
2021-12-29 17:35:27 +08:00
c9s
1a820936c4
binance: change log level from info to debug
2021-12-29 17:30:04 +08:00
c9s
6030a62cf0
change to debug level message
2021-12-29 17:28:45 +08:00
c9s
b637d46c83
adjust keep alive interval
2021-12-29 17:27:37 +08:00
c9s
eec699cbc9
binance: adjust timeout and interval
2021-12-29 15:25:59 +08:00
c9s
6440c7659b
let mask ke shows head and tail
2021-12-29 15:25:59 +08:00
austin362667
d691bfa106
binance: add futures parser
2021-12-28 06:26:27 +08:00
c9s
f78a7d37a2
xgap: subscribe 1m kline
2021-12-28 02:14:49 +08:00
c9s
8f4ae1e15b
xgap: check balance and adjust order quantity according to the available balance
2021-12-28 02:11:11 +08:00
c9s
090d60b44e
fix session connection status metrics
2021-12-28 01:58:36 +08:00
c9s
958dd97f52
xgap: add SimulateVolume
2021-12-28 01:48:24 +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
acd1f6fdf3
update dev build version
2021-12-27 23:10:37 +08:00
c9s
9b1783a92a
fix version file generator
2021-12-27 23:10:29 +08:00
c9s
4ea4bfb3fa
fix dev version build flag
2021-12-27 21:18:48 +08:00
c9s
0779b3e20a
bump version to v1.21.0
2021-12-27 19:13:44 +08:00
c9s
4a6c9deb8d
compile and update migration package
2021-12-27 19:13:44 +08:00
c9s
5fca633495
types: remove trade trailing zero digits
2021-12-27 17:36:58 +08:00
c9s
8d02f0b03e
trade notification format
2021-12-27 17:34:31 +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
1fa03cdfd6
xmaker: add back profit function
2021-12-27 02:59:55 +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
c9s
c49b9ef276
fix order status convert
2021-12-27 00:21:52 +08:00
c9s
dcdf33e2c9
xmaker: pull out notifyTrade to a single callback
2021-12-27 00:12:35 +08:00
c9s
e08b2e9a85
fix max exchange order status conversion and document the order status
2021-12-26 15:58:12 +08:00
c9s
770c1067fc
bbgo: fix order store RemoveCancelled
2021-12-26 15:47:39 +08:00
c9s
65da02af2c
xmaker: call TruncateQuantity when the quantity is adjusted
2021-12-26 15:45:39 +08:00
c9s
902e27ede4
xmaker: truncate quantity when hedging
2021-12-26 15:44:41 +08:00
c9s
05a0745d08
fix InitExchange for publicOnly session
2021-12-26 15:29:42 +08:00
c9s
30a7ca1ce1
rename gap to xgap
2021-12-26 15:13:51 +08:00
c9s
1c54e59d55
xmaker: fix trade handling
2021-12-26 12:10:10 +08:00
c9s
e44390b655
kucoin: add more comment
2021-12-26 03:19:03 +08:00
c9s
9b8995acea
fix supportedIntervals map
2021-12-26 03:17:26 +08:00
c9s
8bf5c5f778
fix kline sync query
2021-12-26 03:14:19 +08:00
c9s
a5c7ffa134
kucoin: add the missing 5min kline convert
2021-12-26 03:07:49 +08:00
c9s
4c263dd205
fix batch kline sync
2021-12-26 03:04:21 +08:00
c9s
cf6da76ef0
service: add kucoin_klines to backtest insert table mapping
2021-12-26 02:40:13 +08:00
c9s
b79ab5d68d
kucoin: fix kline query param
2021-12-26 02:39:44 +08:00
c9s
be10019007
compile and update migration package
2021-12-26 02:31:09 +08:00
c9s
1da0c8e755
kucoin: implement QueryKLines and fix interval conversion
2021-12-26 02:23:06 +08:00
c9s
e3181202db
kucoin: implement QueryTrades
2021-12-26 01:44:05 +08:00
c9s
8c03147ff4
kucoin: implement QueryClosedOrders
2021-12-26 01:34:03 +08:00
c9s
0cef2c52ef
all: improve cancel command and add uuid field to order struct
2021-12-26 01:27:22 +08:00
c9s
471d86c801
kucoin: implement order submit
2021-12-26 00:27:52 +08:00
c9s
50fac9d491
kucoin: pull out queryDepth method to exchange
2021-12-25 23:53:34 +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
dd22776a7e
cmd: refactor the exchange factory function
2021-12-25 23:27:05 +08:00
Yo-An Lin
8aa2ae1b32
Merge pull request #397 from austin362667/refactor/futures-account
...
binance: add futures related conversion
2021-12-25 23:17:27 +08:00
c9s
dcbce18fd8
fix format
2021-12-25 23:12:54 +08:00
c9s
442afe8eb9
backtest: pull out market data feeding to a function and call it in the main thread
2021-12-25 22:57:28 +08:00
c9s
60853bee23
backtest: pull out market data feeder
2021-12-25 22:37:38 +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
5f9753b281
kucoin: convert symbol to global symbol
2021-12-25 19:35:08 +08:00
c9s
f0d4236169
all: fix and improve kucoin orderbook stream
2021-12-25 19:34:27 +08:00
c9s
3d1ca46c77
depth: remove updates assertion
2021-12-25 02:14:49 +08:00
c9s
217499528d
binance: refactor binance depthBuffer with depth query
2021-12-25 02:14:49 +08:00
c9s
7e7115b18f
replace binance.depthFrame with the extracted depth.Buffer
2021-12-25 02:14:49 +08:00
c9s
b217a0dec8
depth: implement depth.Buffer
2021-12-25 02:14:49 +08:00
austin362667
ba972e4058
binance: add futures related conversion
...
binance: remove comments
2021-12-24 01:38:10 +08:00
Yo-An Lin
d1c5e93e4f
Merge pull request #385 from austin362667/refactor/futures-account
...
types: add global structs for futures
2021-12-24 00:33:27 +08:00
c9s
49e516b80e
backtest: allocate public exchange (with empty key secret) for backtesting
2021-12-24 00:24:19 +08:00
c9s
c4838f5631
binance: fix depth event conversion
2021-12-23 23:55:13 +08:00
c9s
fdc5d6a54e
binance: use types.PriceVolumeSlice for depth entry
2021-12-23 23:55:02 +08:00
c9s
dae104cf9f
binance: optimize depth parsing
2021-12-23 23:54:43 +08:00
c9s
2adce6dd00
binance: return the pre-allocated err object when parsing
2021-12-23 23:54:26 +08:00
c9s
d01b9968a6
okex: format comment
2021-12-23 23:40:49 +08:00
c9s
40c4dcf2a0
okex: remove event logging
2021-12-23 23:40:10 +08:00
c9s
a3e3e1d177
bbgo: do not sync trades when running backtest
2021-12-23 23:20:35 +08:00
austin362667
df62683313
types: remove exchange specific fields
2021-12-23 23:16:20 +08:00
austin362667
6c1642eed6
types: add PositionRisk
2021-12-23 23:14:38 +08:00
austin362667
cc13ae2aab
types: add FuturesUserAsset
2021-12-23 23:14:38 +08:00
austin362667
c507722745
types: add FuturesAccountInfo
2021-12-23 23:14:38 +08:00
c9s
f5bbe29ac6
cmd: fix debug flag loading and add debug log to cache function
2021-12-23 23:02:07 +08:00
c9s
168e6306e7
binance: remove verbose log
2021-12-23 22:29:14 +08:00
c9s
ed6f400161
implement UnixMilli in the util package
2021-12-23 22:20:47 +08:00
c9s
d433c7f5b1
kucoin: replace UnixMilli
2021-12-23 21:09:40 +08:00
c9s
e76dd1cbc4
kucoin: fix kline parsing and subscription
2021-12-23 17:49:18 +08:00
c9s
e2415857b0
cmd: graceful close the connection
2021-12-23 17:49:18 +08:00
c9s
562c287a4e
all: move publicOnly to StandardStream
2021-12-23 17:49:18 +08:00
c9s
fd8b97b2ad
cmd: use log category
2021-12-23 17:49:18 +08:00
c9s
8e834ce8fe
kucoin: convert websocket trade and order
2021-12-23 17:49:18 +08:00
c9s
cfd68fdd1d
all: change trade id to uint64
2021-12-23 17:49:18 +08:00
c9s
74b09551b5
kucoin: record kucoin json as files
2021-12-23 17:49:18 +08:00
c9s
838bc69f65
kucoin: reformat testdata json
2021-12-23 17:49:18 +08:00
c9s
6330a1845d
kucoin: connecting stream callbacks
2021-12-23 17:49:18 +08:00
c9s
449434da4c
kucoin: generate callback methods
2021-12-23 17:49:18 +08:00
TonyQ
75633dbf09
exchange/okex : implement bookticker for okex , #388
2021-12-23 12:42:13 +08:00
Yo-An Lin
98de0862a4
Merge pull request #395 from tony1223/bug/okex-maskkey
...
exchange/okex: update QueryTickers behaviour
2021-12-23 02:51:54 +08:00
c9s
911574d8d6
kucoin: parse websocket messages
2021-12-23 02:50:56 +08:00
c9s
cec4b3dd1e
add websocket message parser
2021-12-23 02:50:56 +08:00
c9s
3fb2e12c24
kucoin: add websocket types
2021-12-23 02:50:56 +08:00
c9s
1a3f9ed4b2
kucoin: use returned ping interval instead of default
2021-12-23 02:50:56 +08:00
c9s
730ce31e67
kucoin: implement NewStream
2021-12-23 02:50:56 +08:00
c9s
0a9575aaca
kucoin: pull out ping worker
2021-12-23 02:50:56 +08:00
c9s
92076878cd
kucoin: refactor ping worker
2021-12-23 02:50:56 +08:00
c9s
b0d4688528
kucoin: implement getEndpoint method
2021-12-23 02:50:56 +08:00
c9s
a4c9aea6c6
kucoin: refactor bullet url code
2021-12-23 02:50:56 +08:00
c9s
6cbccc9a3f
kucoin: add websocket command
2021-12-23 02:50:56 +08:00
c9s
4303342841
kucoin: export ApiClient interface methods
2021-12-23 02:50:56 +08:00
c9s
c390bbc31d
add generated files
2021-12-23 02:50:56 +08:00
c9s
2230b484a8
kucoin: add bullet service
2021-12-23 02:50:56 +08:00
c9s
7f92588883
kucoinapi: refactor api client
2021-12-23 02:50:56 +08:00
c9s
c8dd02335b
kucoin: refactor and clean up
2021-12-23 02:50:56 +08:00
TonyQ
5645161403
exchange/okex: update QueryTickers behaviour
2021-12-23 01:29:43 +08:00
TonyQ
d7ac645253
exchange: update maskkey handling
2021-12-23 01:18:36 +08:00
Yo-An Lin
bcbf7c3f3b
Merge pull request #389 from tony1223/feature/388-bookticker
...
exchange/stream : implement booktickerupdate event for ftx and binance
2021-12-22 22:35:52 +08:00
TonyQ
16862e7208
exchange/stream : implement booktickerupdate event for ftx and
...
binance
2021-12-22 21:01:11 +08:00
Yo-An Lin
b2ffcb7993
Merge pull request #387 from narumiruna/narumi/rebalance/validate
...
strategy: rebalance: validate parameters
2021-12-22 10:52:37 +08:00
なるみ
4a8be9cc1a
Fix log
2021-12-22 02:04:44 +08:00
なるみ
2999e41ef0
Validate config
2021-12-22 01:59:38 +08:00
なるみ
41d4001872
Add log
2021-12-22 01:59:25 +08:00
c9s
388cfe0854
kucoin: fix go 1.17 compatibility issue
2021-12-22 01:45:07 +08:00
c9s
3b5015e1ca
kucoin: integrate list tickers
2021-12-22 01:34:24 +08:00
c9s
0b6e66348e
kucoin: implement query tickers
2021-12-22 01:28:16 +08:00
c9s
c32f3ab2f3
add generate_symbol_map.go generator
2021-12-22 01:28:16 +08:00
c9s
bd5e956892
add kucoin to the exchange factory
2021-12-22 01:28:16 +08:00
c9s
58212290ad
types: update market structure for doc comment
2021-12-22 01:28:16 +08:00
c9s
fce71cb37e
implement QueryAccounts and QueryMarkets
2021-12-22 01:28:16 +08:00
c9s
62fa6dd274
implement get fills request
2021-12-22 01:28:16 +08:00
c9s
bace225470
binance: fix, call set time service only when key and secret is given
2021-12-22 01:27:25 +08:00
c9s
8b93aeeeb2
fix ewma truncation
2021-12-22 00:54:13 +08:00
Yo-An Lin
53f6ea6490
Merge pull request #384 from tony1223/feature/record-account
...
types: update account struct
2021-12-22 00:04:30 +08:00
TonyQ
06fc821b3d
types: update account struct
2021-12-21 23:59:02 +08:00
Yo-An Lin
e0844459b9
Merge pull request #380 from tony1223/bug/kline-scan
...
backtest : finetune for kline scan logic to prevent hanging for
2021-12-21 22:47:50 +08:00
TonyQ
740989ca64
exchange/ftx: add more guard condition
2021-12-21 20:46:40 +08:00
TonyQ
f62235b94e
backtest : finetune for kline scan logic to prevent hanging for
...
query
2021-12-21 20:44:20 +08:00
Yo-An Lin
1ab20e6397
Merge pull request #381 from narumiruna/maxamount
...
strategy: rebalance: adjust quantity by max amount
2021-12-21 20:20:44 +08:00
なるみ
531805a449
Adjust quantity by max amount
2021-12-20 23:46:22 +08:00
Andy Cheng
e4bdb1de06
strategy: allow setting the interval and the window for trigger MA
2021-12-19 18:28:47 +08:00
Andy Cheng
d281182432
strategy: fix support strategy criteria
2021-12-19 17:53:34 +08:00
Yo-An Lin
97f9285449
Merge pull request #376 from tony1223/bug/backtest-fix-auto-sync
...
backtest : fix auto sync missing the part from last db kiline to
2021-12-19 14:59:35 +08:00
austin362667
f9cf71cef3
indicator: add kline close volatility
...
indicator: add kline close volatility
2021-12-19 14:20:09 +08:00
TonyQ
711575c6d0
backtest : fix auto sync missing the part from last db kiline to
...
end time
2021-12-19 12:14:18 +08:00
なるみ
b144d8e107
feature: add volume weighted moving average indicator
2021-12-17 14:36:39 +08:00
TonyQ
3e45035ab1
database: sqlite3 issue fix
...
database: upgrade gosqllite3 version for increasing variable amount limit
types: update kline starttime/endtime field to prevent sqlite3
time parsing issue.
fix #215
2021-12-15 14:34:31 +08:00
TonyQ
c0b9cc0f0b
exchange: make ftx kline event more reliable
2021-12-15 11:23:07 +08:00
Yo-An Lin
05323f211f
Merge pull request #368 from tony1223/feature/355-update-sync
...
backtest : auto sync
2021-12-15 01:39:19 +08:00
TonyQ
16933555b8
backtest : auto sync missing range
2021-12-15 01:26:05 +08:00
austin362667
ccd607ba28
binance: remove unsupported comments
2021-12-15 01:01:05 +08:00
austin362667
7f96fa8dde
binance: add multierr
2021-12-15 01:01:05 +08:00
austin362667
bb592663ab
binance: removed unsupport isolated futures trade
2021-12-15 01:01:05 +08:00
austin362667
a0130affe4
binance: add query orders & trades
2021-12-15 01:01:05 +08:00
TonyQ
20b03fe4a5
exchange: fix ftx for wrong last kline issue
2021-12-15 00:07:54 +08:00
austin362667
839bb6d0e8
binance: remove comments cuz not support isolated futures
2021-12-14 20:41:55 +08:00
Yo-An Lin
6c6eb252cc
Merge pull request #363 from tony1223/feature/355-ftx-backtest
2021-12-14 16:09:16 +08:00
TonyQ
8eb3eede82
fix backtest (with review)
2021-12-14 16:02:54 +08:00
Yo-An Lin
d531e041dd
Merge pull request #357 from narumiruna/rebalance
...
feature: add portfolio rebalancing strategy
2021-12-14 12:01: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
なるみ
f320d78f2f
Refactor
2021-12-14 02:18:08 +08:00
austin362667
d3526b2c71
binance: add SubmitFuturesOrder and related conversions
2021-12-13 23:19:14 +08:00
austin362667
36c6d39612
bbgo: add session Futures & types: add FuturesExchange
2021-12-13 23:16:58 +08:00
c9s
74811abb36
okex: rewrite okex api request with requestgen
2021-12-13 14:55:44 +08:00
c9s
e2937acb28
apply requestgen for CancelOrderRequest and CancelAllOrderRequest
2021-12-13 14:55:44 +08:00
なるみ
f494a0f514
Initial commit of rebalance strategy
2021-12-13 05:19:44 +08:00
Yo-An Lin
d847d223e3
Merge pull request #356 from c9s/feature/kucoin
...
refactor: apply requestgen
2021-12-13 02:14:05 +08:00
Yo-An Lin
a3215d6f31
Merge pull request #354 from austin362667/order-trade
...
binance: parse OrderTrade event stream & add futures client connection
2021-12-13 02:12:19 +08:00
c9s
34c2b342ba
apply requestgen for CancelOrderRequest and CancelAllOrderRequest
2021-12-13 02:08:18 +08:00
c9s
c28833fba0
kucoinapi: use requestgen for list orders request
2021-12-13 01:53:00 +08:00
c9s
97b63f45d5
kucoin: rename receiver to r
2021-12-13 01:14:52 +08:00
c9s
22972953d0
use requestgen to generate the accessor methods
2021-12-13 01:11:15 +08:00
austin362667
04919e0fa4
binance: add futures exchange stream connection
2021-12-12 15:40:03 +08:00
austin362667
8ca60cec10
binance: add user stream event parser & toGlobalType converter
2021-12-12 15:39:06 +08:00
TonyQ
6915a0e573
ftx: update kline event handling for #318
2021-12-12 14:29:48 +08:00
austin362667
a21f3b11ba
types: add PositionMap in std Stream & callbacks
2021-12-12 05:24:39 +08:00
Yo-An Lin
2e7b69320b
Merge pull request #349 from c9s/feature/kucoin
...
feature: integrate kucoin api
2021-12-11 23:17:07 +08:00
c9s
de80a14715
kucoin: add cancel order command
2021-12-11 20:07:32 +08:00
c9s
95ecaa7a66
rename orderResponse to apiResponse
2021-12-11 20:02:35 +08:00
c9s
8a00509987
kucoin: check data pointer and return error
2021-12-11 19:44:07 +08:00
c9s
0c854a8a85
kucoin: add place order and list orders command
2021-12-11 19:40:53 +08:00
austin362667
1703fff8b2
types: refactor Position and related files
2021-12-11 19:16:16 +08:00
c9s
a9bc02ef3d
kucoin: implement order placement and cancel api
2021-12-11 18:33:30 +08:00
c9s
4d57967664
kucoin: add orderbook api
2021-12-11 18:33:30 +08:00
c9s
18653aca7e
kucoin: implement all ticker and get ticker api
2021-12-11 18:33:30 +08:00
c9s
50b79cb742
implement ListSymbols api
2021-12-11 18:33:30 +08:00
c9s
be7e9f551a
add GetAccount api
2021-12-11 18:33:30 +08:00
c9s
c8ba3f7c1b
kucoin: add query accounts api
2021-12-11 18:33:30 +08:00
c9s
cd69994647
kucoin: implement api client
2021-12-11 18:33:30 +08:00
Yo-An Lin
0c7bbba675
Merge pull request #346 from tony1223/bug/343-fee_currency_length
2021-12-11 10:57:17 +08:00
Yo-An Lin
3952acaf55
Merge pull request #342 from tony1223/bug/341-windows-issue
2021-12-11 10:47:41 +08:00
TonyQ
25d4b9a0b3
order: add is_futures field for #344
2021-12-11 10:45:21 +08:00
TonyQ
c38564dcc7
compile and update migration package
2021-12-11 10:40:11 +08:00
TonyQ
e5450492bb
telegram: find USERNAME when USER env not found for windows.
2021-12-11 10:30:57 +08:00
Yo-An Lin
9f14d00f3c
Merge pull request #340 from tony1223/feature/336-kline-table
...
backtest: add ftx kline table
2021-12-11 02:30:06 +08:00
Yo-An Lin
edcb8a3327
Merge pull request #339 from tony1223/bug/338-refine_client_order_id
...
orders: update client_order_id (client_id) column length
2021-12-11 02:29:31 +08:00
TonyQ Wang
776f82fcd5
Merge branch 'main' into feature/336-kline-table
2021-12-11 02:26:01 +08:00
TonyQ
8bb702223a
orders: update client_order_id (client_id) column length for
...
#338
2021-12-11 02:23:39 +08:00
TonyQ
0fcc5e5edc
compile and update migration package
2021-12-11 02:19:53 +08:00
Yo-An Lin
0cf72de21d
Merge pull request #335 from tony1223/bug/334-ftx-ratelimit
...
ftx : fix #334 rate limit
2021-12-10 23:24:42 +08:00
TonyQ
5259bba5fe
ftx : fix #334 rate limit
2021-12-10 23:08:26 +08:00
c9s
4665ae0e31
remove unused error return value
2021-12-10 15:03:43 +08:00
c9s
fe9b604d79
update ftx market mapping
2021-12-09 15:57:44 +08:00
c9s
06262f0172
check sync from time with start time instead of end time
2021-12-09 15:57:12 +08:00
c9s
61817e1e83
add startPrice and lastPrice in the backtest report
...
closes #321
2021-12-09 11:58:19 +08:00
c9s
ca85aa69e6
pull out global premium index type and funding rate type
2021-12-09 00:10:18 +08:00
c9s
71e043e4b2
move convertPremiumIndex to convert.go
2021-12-09 00:08:25 +08:00
c9s
fbae368e6c
make getLaunchDate as a simple function
2021-12-09 00:06:46 +08:00
c9s
078c79d73f
binance: refactor QueryMarkets
2021-12-09 00:05:36 +08:00
c9s
48612e2b13
reformat import lines and add fixme note
2021-12-09 00:01:33 +08:00
c9s
a0f46bf9b8
improve error checking, avoid using panic inside the constructor
2021-12-08 23:30:58 +08:00
c9s
2223ef088c
add ftx, okex to the public exchange factory for backtest
2021-12-08 23:27:01 +08:00
c9s
7b290afc2a
compile and update migration package
2021-12-08 19:57:55 +08:00
c9s
9413e0017d
bump version to v1.20.0
2021-12-08 19:57:55 +08:00
Yo-An Lin
cf0cdf5b83
Merge pull request #320 from c9s/minor/integrate-binance-future-types
...
feature: integrate binance future types
2021-12-08 19:55:31 +08:00
c9s
874c7b39fa
service: add is_futures fields to trade service
2021-12-08 19:38:16 +08:00
c9s
9b56e9e32b
service: add is_futures fields to order service
2021-12-08 19:38:10 +08:00
c9s
5aa027f883
types: add is_futures field to the global trade
2021-12-08 19:37:27 +08:00
c9s
20e61d5b5c
types: extend order fields for futures
2021-12-08 19:36:57 +08:00
TonyQ
3dff1acd79
finetune ftx for #318
2021-12-08 19:36:37 +08:00
c9s
b71d0f5b6e
bump version to v1.19.4
2021-12-08 17:27:08 +08:00
c9s
d52edce40b
fix markets info cache
2021-12-08 17:26:43 +08:00
c9s
08a264d4eb
add futures exchange check in the markets cache
2021-12-07 21:29:40 +08:00
c9s
245905a25a
remove unnecessary parent node assignment
2021-12-07 21:23:43 +08:00
c9s
f716dd12c0
re-arrange rb node fields for alignment
2021-12-07 21:22:11 +08:00
c9s
fb2204a86d
share one neel object for all rbtree
2021-12-07 21:21:30 +08:00
c9s
aa21ea874a
make rbtree properties in lower case
2021-12-07 21:16:40 +08:00
Yo-An Lin
3fb6d204aa
Fix pointer check
2021-12-07 18:52:24 +08:00
c9s
da8b15d817
bump version to v1.19.3
2021-12-07 16:16:25 +08:00
c9s
5c23dfb14f
bump version to v1.19.3
2021-12-07 16:16:02 +08:00
c9s
a6604174d9
bump version to v1.19.3
2021-12-07 16:15:12 +08:00
c9s
f61f89da65
bump version to v1.19.3
2021-12-07 16:15:00 +08:00
c9s
85b5c760ea
bump version to v1.19.3
2021-12-07 16:14:32 +08:00
c9s
ecd67cf23e
bump version to v1.19.3
2021-12-07 16:14:23 +08:00
c9s
70017101bb
bump version to v1.19.3
2021-12-07 16:12:41 +08:00
c9s
1ff02b08ce
add release note
2021-12-07 16:12:35 +08:00
c9s
ccd9d8c466
improve makefile for version target
2021-12-07 16:10:49 +08:00
c9s
522d1bd8bf
bump version to 1.19.3
2021-12-07 16:03:32 +08:00
c9s
1de4e5ee4c
grid: fix parameter checking for fixed amount
2021-12-07 15:37:37 +08:00
c9s
5ef1ee927b
improve the error message
2021-12-07 15:23:09 +08:00
c9s
f1e3cc6049
add strict start time, sync time checking for preventing back-test failure
...
related to #311
2021-12-07 15:21:37 +08:00
c9s
132fe893e1
use stderr for verbose log
2021-12-07 14:45:20 +08:00
c9s
ca3f438288
show symbol name in the error message
2021-12-07 14:35:00 +08:00
c9s
ac08e9d3c2
bump version to v1.19.2
2021-12-06 18:34:27 +08:00
c9s
af837ea237
do not omit empty for field feeInUSD
2021-12-06 13:36:38 +08:00
c9s
5d6bd5a964
not to omit empty all fields
2021-12-06 13:34:39 +08:00
c9s
634ce6180b
avoid using panic when order cancel failed
2021-12-06 13:32:08 +08:00
c9s
744af85a94
bump version to v1.19.1
2021-12-06 13:32:08 +08:00
c9s
93761ba5d9
bump version to v1.19.0
2021-12-06 01:51:34 +08:00
c9s
aeeecba8dc
support different time format for backtesting
2021-12-06 01:50:50 +08:00
c9s
0472b7f21e
avoid recording trades in backtest by default
...
introducing a RecordTrades option
2021-12-06 01:42:53 +08:00
c9s
85bb9f214e
grid: disable trade marking
2021-12-06 01:34:08 +08:00
c9s
5929385a2e
bump version to v1.18.5
2021-12-06 01:08:04 +08:00
c9s
474be4e815
support json output for backtesting
2021-12-06 01:05:33 +08:00
c9s
1e151a170a
add JSON method to the pnl report
2021-12-06 00:47:41 +08:00
c9s
0c6055a201
add json tag for AverageCostPnlReport
2021-12-06 00:46:50 +08:00
c9s
3615477d8f
backtest: allocate matching books from the exchange constructor
...
also adds the mutex for trades and closed orders
2021-12-06 00:38:36 +08:00
c9s
3d536efec8
types: extend FuturesSettings fields for isolated margin
2021-12-05 16:47:01 +08:00
c9s
c8ba2e59e3
types: reformat account usd cal expression
2021-12-05 16:28:30 +08:00
c9s
91f26cc501
types: add account types for futures
2021-12-05 16:28:19 +08:00
c9s
0431014867
bump version to v1.18.4
2021-12-05 12:25:06 +08:00
c9s
b301ea549a
adjust default rate to DefaultFeeRate 0.075%
2021-12-05 12:24:51 +08:00
c9s
f692ef2c31
realign account fields
2021-12-05 12:23:27 +08:00
c9s
44d7055809
fix backtest fee rate calculation
2021-12-05 12:10:45 +08:00
c9s
4d7fe7f37d
call matchingBooksMutex when assigning matching book
2021-12-05 12:06:36 +08:00
c9s
dac1967e2f
bump version to v1.18.3
2021-12-05 12:03:53 +08:00
c9s
298e981de0
bump version to v1.18.2
2021-12-05 12:01:37 +08:00
c9s
df683bdf56
use position to calculate the pnl
2021-12-05 02:17:15 +08:00
Yo-An Lin
9d38dc2c87
Merge pull request #297 from tony1223/bug/261-default-notification
...
fix #261 provide default config for notification setting
2021-12-05 01:17:04 +08:00
c9s
35da3ba3a0
check env vars for query related tests
2021-12-05 01:11:47 +08:00
c9s
062f9243c6
max: fix query ticker tests
2021-12-05 01:08:50 +08:00
c9s
715363298f
fix query ticker tests
2021-12-05 00:58:01 +08:00
Yo-An Lin
19548a9449
Merge pull request #296 from tony1223/feature/294-force-backtest
...
add force parameter for backtest
2021-12-05 00:25:23 +08:00
TonyQ
bd325f02a5
add force parameter for backtest
2021-12-04 16:18:51 +00:00
c9s
52218c513f
compile and update migration package
2021-12-04 23:03:35 +08:00
TonyQ
a1b6be3bda
compile and update migration package
2021-12-04 03:06:04 +00:00
TonyQ
30c14a6828
fix #261 provide default config for notification setting
2021-12-04 02:37:21 +00:00
TonyQ
056afb577c
fix generateGridSellOrders with ProfitSpread for begining
2021-11-30 11:55:00 +08:00
c9s
5ed337926d
add mutex lock protection for backtesting
...
solving issue #282
2021-11-30 10:40:28 +08:00
c9s
9a589bf71c
show broadcast enabled
2021-11-25 18:49:29 +08:00
c9s
032b62e4e1
broadcast should also send message to owner
2021-11-25 16:22:20 +08:00
c9s
fc81f7b6cb
add Command function
2021-11-25 11:54:09 +08:00
c9s
6326d52c1b
add /start command
2021-11-25 11:52:14 +08:00
c9s
8acc2cd87f
fix chat nil pointer issue
2021-11-25 11:50:14 +08:00
c9s
4bde40f2db
override binance default http client timeout instead of zero timeout
2021-11-23 10:54:43 +08:00
c9s
513a799ced
fix ewma calculation
2021-11-22 02:14:44 +08:00
c9s
20f0e8dbd5
preallocate kline window with capacity
2021-11-22 01:17:08 +08:00
c9s
540722e430
adjust ewma truncate size
2021-11-22 01:17:08 +08:00
Austin
c5d1a70a61
add Continuous Contract Kline/Candlestick Streams
2021-11-16 14:26:27 +08:00
Austin
a36739f119
add MarkPriceUpdateEvent
2021-11-16 01:24:36 +08:00
c9s
aceca1b49f
adjust listen key keep alive to 30 min
2021-11-07 23:40:13 +08:00
c9s
7a3963b34e
techsignal: if it's already high funding rate, do not show change
2021-11-06 15:23:52 +08:00
c9s
a2c2646a16
binance: adjust rate limiter bucket
2021-11-05 01:25:16 +08:00
c9s
82d859a43d
binance: fix binance order rate limiter
2021-11-05 01:21:58 +08:00
c9s
0c8addc58b
grid: refactor trade callback for s.TradeService.Mark
2021-11-05 01:05:43 +08:00
c9s
6851d8d254
grid: add field guards
2021-11-05 01:04:13 +08:00
c9s
7db7596abe
grid: refactor trade handler with trade collector
2021-11-05 00:30:04 +08:00
c9s
7787edffa0
refactor grid strategy state loading/saving
2021-11-05 00:22:44 +08:00
c9s
bfaec8fdd8
increase min amount if it's not greater than min notional
2021-11-04 23:22:01 +08:00
c9s
13577fc2b4
improve SubmitOrder formating
2021-11-04 23:21:01 +08:00
c9s
6002a958d2
grid: fix format error
2021-11-04 13:08:38 +08:00
c9s
1a861c98a1
binance: add order rate limiter for binance
2021-11-04 12:50:32 +08:00
c9s
7eb91cc7cc
adjust grid quantity if it does not match min notional and min quantity
2021-11-04 12:50:32 +08:00
c9s
ed1d0ea27e
add xnav strategy
2021-10-29 10:40:14 +08:00
Yo-An Lin
b8e5942f1c
Merge pull request #274 from kkc/fix_emwa_indicator_in_backtest_mode
2021-10-20 18:03:51 +08:00
c9s
6cb593cd90
techsignal: use realtime funding rate
2021-10-20 14:01:19 +08:00
Kakashi Liu
8938478d93
Truncate emwa slice to be the same size as given kLines
2021-10-19 21:38:12 +08:00
c9s
16fca0150d
implement futures PremiumIndex support
2021-10-19 15:54:16 +08:00
c9s
1e6692ec8d
rename funding rate query method name
2021-10-19 15:29:55 +08:00
c9s
af602df302
techsignal: add math.Round for quote volumes
2021-10-18 20:06:23 +08:00
c9s
3a68d9dae4
techsignal: fix arg cast
2021-10-18 19:40:51 +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
721d63bee0
techsignal: add skip log
2021-10-18 11:10:54 +08:00
c9s
ebc61de946
techsignal: fix ma subscription
2021-10-18 09:00:56 +08:00
c9s
c36bbd6c35
bbgo: show pnl in the slack fields
2021-10-18 08:45:27 +08:00
c9s
d446dbbed7
bollpp: send profit stat notification
2021-10-18 01:16:46 +08:00
c9s
d6b707c832
bollpp: fix order quantity
2021-10-18 00:56:22 +08:00
c9s
0bd32094ee
bollpp: improve bolling ping pong maker
2021-10-18 00:42:01 +08:00
c9s
e3431ef970
binance: fix binance order type for limit maker
2021-10-18 00:41:41 +08:00
c9s
759b6a812b
techsignal: fix funding rate diff
2021-10-17 22:26:04 +08:00
c9s
a3f68d7b72
xmaker: use bbgo.NewPositionFromMarket
2021-10-17 22:24:57 +08:00
c9s
450b7bb61e
bollpp: improve boll ping pong strategy with profit stats
2021-10-17 22:23:34 +08:00
c9s
15cfd735a0
bbgo: add doc comment for ExchangeSessionSubscriber
2021-10-17 22:23:21 +08:00
c9s
39b7a956e0
Add market field to position
2021-10-17 22:23:09 +08:00
c9s
30c7c34826
bbgo: fix kline backward query for backtest
2021-10-16 13:49:00 +08:00
c9s
4bcea5a388
bbgo: add AllFilled method on OrderStore
2021-10-16 13:39:18 +08:00
c9s
2b17124d06
telegramnotifier: support broadcast flag
2021-10-15 18:01:11 +08:00
c9s
77e7f814d9
support: refactor PercentageTargetStop logics
2021-10-15 16:10:57 +08:00
c9s
f5f96b585a
apply broadcast option from config file
2021-10-15 16:10:39 +08:00
c9s
6c46c2cad1
telegramnotifier: add broadcast option
2021-10-15 16:10:25 +08:00
c9s
2b0793ee49
bbgo: add telegram config
2021-10-15 16:10:09 +08:00
c9s
a2c29f4519
support: remove legacy resistance code
2021-10-15 12:38:16 +08:00
c9s
d704e19f04
move signedPercentage method to fixedpoint
2021-10-15 12:22:53 +08:00
c9s
01f6d70d28
telegramnotifier: add broadcast function and subscribe command
2021-10-15 12:14:15 +08:00
c9s
a1779b6823
telegramnotifier: add warning
2021-10-15 12:03:15 +08:00
c9s
08c300fbad
add warning if owner's chat is not configured
2021-10-15 11:56:17 +08:00
c9s
0fe11438bd
telegramnotifier: rename Chat to OwnerChat
2021-10-15 11:55:05 +08:00
c9s
93e297dd7e
adjust qutoe currency formatter symbol for fiat currency
2021-10-15 11:53:01 +08:00
c9s
952bdf8218
move currency formatter to market struct
2021-10-15 11:50:37 +08:00
c9s
790b3357d7
techsignal: adjust funding rate notification
2021-10-15 11:13:00 +08:00
c9s
4523135012
techsignal: add funding rate checker
2021-10-14 23:01:10 +08:00
c9s
e7fe443cbe
show kline in the notification
2021-10-14 14:32:49 +08:00
c9s
fbbefe2878
techsignal: show interval in the message
2021-10-14 14:30:45 +08:00
c9s
a6848a6af4
add strategy/techsignal
2021-10-14 14:24:08 +08:00
c9s
c84ba12735
implement PlainText interface for kline
2021-10-14 14:22:24 +08:00
c9s
3581c1768c
fix SMA indicator value length check
2021-10-14 14:22:07 +08:00
c9s
47e4847034
fix kline query endtime
2021-10-14 14:21:38 +08:00
c9s
4c2897a86d
use Float64 indicator from the types package
2021-10-14 13:15:08 +08:00
c9s
4c061439d3
rename buyandhold to pricedrop
2021-10-14 13:10:00 +08:00
c9s
768a88247b
rename bpp to bollpp (bollinger pingpong)
2021-10-14 12:52:54 +08:00
c9s
6e7f12ca9f
rename trailingstop to emastop
2021-10-14 12:04:56 +08:00
c9s
b3661f5d32
bbgo: improve profit stat PlainText format
2021-10-14 10:16:11 +08:00
c9s
7d416c3467
bbgo: fix profit json tag
2021-10-14 10:14:11 +08:00
c9s
7874471828
bbgo: improve pnlEmojiMargin function
2021-10-14 10:13:21 +08:00
c9s
c8554f09a0
bbgo: refactor the pnl functions
2021-10-14 10:07:27 +08:00
c9s
2116efc42e
bbgo: fix profit title
2021-10-14 08:59:45 +08:00
c9s
49a78c0c88
bbgo: fix profit stat title
2021-10-14 08:58:19 +08:00
c9s
c12ff57e57
bbgo: improve profit stats plaintext format
2021-10-14 08:55:55 +08:00
c9s
e2f58d0466
xmaker: use report ticker to report profit stats
2021-10-14 08:53:44 +08:00
c9s
77f11f4515
bbgo: add ticker for collecting trades
2021-10-14 07:56:40 +08:00
c9s
b154e3baea
bbgo: add pnl emoji with margin
2021-10-14 07:48:32 +08:00
c9s
7e8897f1d0
bbgo: fix profit field check condition
2021-10-14 07:33:34 +08:00
c9s
5c3f305060
bbgo: implement SlackAttachment interface for profitstats
2021-10-14 01:27:58 +08:00
c9s
d3fa0a964b
bbgo: add slack attachment support for profit
2021-10-14 01:27:50 +08:00
c9s
a4a9ef015e
slacknotifier: fallback to PlainText if it's not supported
2021-10-14 01:27:46 +08:00
c9s
c55cc4323e
notifier: making slackAttachmentCreator as private interface
2021-10-14 01:27:42 +08:00
c9s
e4281b1a02
xmaker: update notification message with strategy ID
2021-10-14 01:27:37 +08:00
c9s
bbc1775ec5
xmaker: update symbol, base, quote currency to profit stats
2021-10-14 01:26:40 +08:00
c9s
b6b2e33cc0
extend profit stats fields for quote,base currency and symbol
2021-10-14 01:26:36 +08:00
c9s
8374c98609
xmaker: fix time type casting
2021-10-14 01:26:31 +08:00
c9s
5039a43413
bbgo: move pnl formating to the bbgo package
2021-10-14 01:26:11 +08:00
c9s
e1e6d1de12
bbgo: add net profit margin field to profit stats
2021-10-14 01:26:04 +08:00
c9s
db7a681290
types: merge field decls
2021-10-14 01:25:18 +08:00
c9s
44a0b10240
bbgo: load last price from 1m interval kline only
2021-10-14 00:37:40 +08:00
c9s
764a8be46a
adjust grid backtest parameters
2021-10-13 10:43:56 +08:00
c9s
37ac907c0f
profitstats: add accumulated volume
2021-10-12 11:24:28 +08:00
c9s
d9dc7e31df
extend more fields
2021-10-12 11:24:24 +08:00
c9s
45645d0a3d
use the profit struct to pass profit info
2021-10-08 19:16:40 +08:00
c9s
fac14a8c7f
profitstats: add netProfit field
2021-10-08 15:09:55 +08:00
c9s
aadb1ed389
remove MakerExchange from the core profit stats field
2021-10-08 15:00:53 +08:00
c9s
d058125f78
bbgo: refactor profit stats
2021-10-08 14:57:44 +08:00
c9s
9e1d28f3b3
do not remove order if it's partially filled
2021-10-08 14:17:47 +08:00
c9s
9e93cd66de
strategy: update trade collector api
2021-10-08 13:24:14 +08:00
c9s
ded740107f
bbgo: refactor TradeCollector bind stream for background and foreground
2021-10-08 13:24:07 +08:00
c9s
8f74c106d6
support: merge stash
2021-10-08 13:14:21 +08:00
c9s
184f93ce79
support: fix interval check
2021-10-08 13:13:49 +08:00
c9s
01de2c5f66
support: fix long term ema kline subscription
2021-10-08 13:13:49 +08:00
c9s
f97eb8914a
support: add resistance check
2021-10-08 13:13:49 +08:00
c9s
1091010f64
support: move property configuration to the top
2021-10-08 13:13:49 +08:00
c9s
3539047a39
support: show ema price
2021-10-08 13:13:49 +08:00
c9s
8ada9eef02
bbgo: optimize AdjustQuantityByMaxAmount, early return
2021-10-08 12:09:05 +08:00
c9s
31358a69d1
types: calculate boolean logics outside of critical section
2021-10-08 12:08:57 +08:00
c9s
dab45cf3ba
types: add balance map copy method
2021-10-08 12:08:33 +08:00
c9s
6917b98a74
schedule: show closed price
2021-10-08 11:59:23 +08:00
c9s
f0503b99a1
schedule: add interval check
2021-10-08 11:58:50 +08:00
c9s
7016d24fad
import types.FuturesSettings into binance exchange
2021-10-07 21:29:52 +08:00
c9s
454564506f
add futures exchange interface and futures settings struct
2021-10-07 21:29:14 +08:00
c9s
193961c4e0
add bpp strategy
2021-10-07 16:39:20 +08:00
c9s
60e4442f85
add document for the backtest engine
2021-10-05 22:06:36 +08:00
c9s
7fb4d2f78d
return positionChanged for Process method
2021-10-05 21:44:39 +08:00
c9s
5dd2f568fe
add doc comment for trade collector
2021-10-05 21:39:10 +08:00
c9s
45c875fe7c
bbgo: improve trade collect process
2021-10-05 21:30:06 +08:00
Jui-Nan Lin
feca628319
fix(ftx): array length should > 0
2021-09-03 15:38:02 +08:00
c9s
1bc36b17ff
xbalance: add verbose flag
2021-09-03 14:25:26 +08:00
c9s
b6fff482a4
binance: fix withdrawal time parsing
2021-09-03 14:21:59 +08:00
c9s
35ec9ae7b6
binance: fix binance withdrawal api
2021-09-02 00:27:57 +08:00
c9s
f177860450
binance: fix withdrawal service
2021-09-02 00:21:56 +08:00
c9s
99f97df43b
etf: use break instead of return
2021-08-26 11:58:25 +08:00
c9s
8d01c97240
fix cyclic import issue
2021-08-26 11:46:02 +08:00
c9s
1f94ae1c19
bbgo: move moving average settings struct into bbgo
2021-08-26 11:32:39 +08:00
c9s
e8f0cbcff8
cmd: register etf strategy
2021-08-26 11:31:52 +08:00
c9s
2c378d6047
add etf strategy
2021-08-26 11:31:36 +08:00
c9s
0dd7438fd7
schedule: show scheduled order price
2021-08-26 10:29:27 +08:00
c9s
684bfcea19
xbalance: capitalize message
2021-08-19 16:35:16 +08:00
c9s
66b7e1fc3f
schedule: fix schedule subscription
2021-08-19 16:35:05 +08:00
c9s
cf29cfadd0
xbalance: show balance error message
2021-08-17 12:18:29 +08:00
c9s
fc860cd9a9
bbgo: add json tags to interval window
2021-08-17 11:37:27 +08:00
c9s
47258b31c6
xbalance: fix message
2021-08-17 11:36:51 +08:00
c9s
5a0ae6773c
xbalance: configure middle value automatically from total value
2021-08-16 12:52:12 +08:00
c9s
732281b55d
bump version
2021-08-16 12:20:04 +08:00
c9s
490eb15748
schedule: fix order notification
2021-08-16 12:11:15 +08:00
zebra
2e1400d594
add transfer function
2021-08-07 15:30:51 +08:00
sincoew
4f2b1d975a
fix type change on max api
2021-07-15 17:51:14 +08:00
c9s
5cf134a756
cmd: add account cmd --total option
2021-07-06 12:19:59 +08:00
c9s
5e2b8af4dc
xmaker: fix reset today
2021-07-06 12:19:59 +08:00
c9s
1d316ed89c
xmaker: call reset today if the date exceeded
2021-07-06 12:19:59 +08:00
c9s
3ab4a570fb
bbgo: limit max kline slice
2021-06-28 14:33:32 +08:00
c9s
01bdef502b
indicator: rename consts for max ma values
2021-06-28 14:33:27 +08:00
c9s
4ccbb82237
indicator: truncate values if length exceeded
2021-06-28 14:33:23 +08:00
c9s
a8048703b3
max: fix order delete refurl
2021-06-27 11:33:00 +08:00
c9s
3fdcf466bf
max: set reqcount for nonce by default 1
2021-06-27 11:32:54 +08:00
c9s
3165d10986
support: use trade collector
2021-06-26 20:26:47 +08:00
c9s
aab0c377d7
xmaker: reformat code
2021-06-26 20:26:47 +08:00
c9s
b58b48d668
xmaker: refactor profit stats
2021-06-26 20:26:47 +08:00
c9s
cef28fa651
xbalance: use time util function from the util package
2021-06-26 20:26:47 +08:00
c9s
c6d66ebb46
util: add BeginningOfTheDay function
2021-06-26 20:26:47 +08:00
c9s
06a1f018c2
bbgo: push to the buffer first
2021-06-26 20:26:47 +08:00
c9s
7d853a9c74
bbgo: add emit position update
2021-06-26 20:26:47 +08:00
c9s
ecd2d9ea68
bbgo: improve trade collector callbacks
2021-06-26 20:26:47 +08:00
c9s
db4fbbc30c
bbgo: add trade collector
2021-06-26 20:26:47 +08:00
c9s
65629a77f4
bbgo: add two new position constructor
2021-06-26 20:26:47 +08:00
c9s
5621effd6b
add resistance
2021-06-21 19:03:50 +08:00
c9s
4bc0612265
support: add minBaseAssetBalance
2021-06-17 19:28:11 +08:00
c9s
f9fa6e96c3
support: refactor kline handler
2021-06-16 20:33:52 +08:00
c9s
811319fa25
support: fix sensitivity calculation
2021-06-16 14:16:39 +08:00
c9s
5fecccedd6
add resistance check
2021-06-16 13:23:33 +08:00
c9s
3d12a7df59
support: add sensitivity settings
2021-06-16 13:14:10 +08:00
c9s
15ed802a54
util: add TimeProfile
2021-06-16 13:04:23 +08:00
c9s
e276ddd38a
bbgo: add shared local time zone
2021-06-16 13:04:23 +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
fd2928fc82
types: add maker/taker fee rate fields to the account struct
2021-06-16 13:04:23 +08:00
c9s
657e1dc9bf
maxapi: pre-parse relative url and cache them
2021-06-16 13:04:05 +08:00
c9s
cbd0180939
maxapi: remove extra user agent header
2021-06-16 13:04:05 +08:00
c9s
16e5e08d58
maxapi: fix dump request error check
2021-06-16 13:04:05 +08:00
c9s
48c84824cf
maxapi: volume, side, market is always required for creating orders
2021-06-16 13:04:05 +08:00
c9s
2da633c221
maxapi: add HTTP_TRANSPORT_IDLE_CONN_TIMEOUT env var for override
2021-06-16 13:04:05 +08:00
c9s
7c5b676366
maxapi: create an isolated http transport rather than the default one
2021-06-16 13:04:05 +08:00
c9s
684232041c
maxapi: load http transport settings from env vars
2021-06-16 13:04:05 +08:00
c9s
b31b830b2b
max: add request dump for debugging request
2021-06-16 13:03:45 +08:00
c9s
8c3992d514
max: no need to check order volume separately
2021-06-16 13:02:21 +08:00
c9s
fdf1ee9258
max: use precision -1 to trim zeros
2021-06-16 13:02:21 +08:00
c9s
a8eda62a8d
max: set debug vars from env vars
2021-06-16 13:02:21 +08:00
c9s
990da5ad3b
xbalance: add foreign fee for withdrawal
2021-06-09 01:37:33 +08:00
c9s
18f72a9118
fixedpoint: add more multiplication benchmarks
2021-06-09 01:37:29 +08:00
c9s
3d1d659c81
fixedpoint: add math/big version multiplication support
2021-06-09 01:37:24 +08:00
c9s
0df26e0570
binance: adjust listen key keep alive to 20 minutes
2021-06-09 01:37:19 +08:00
c9s
457ca79517
binance: for network error, we should retry the request
2021-06-09 01:37:14 +08:00
c9s
3c4eb5aec7
telegram: add more emojis
2021-06-09 01:37:09 +08:00
c9s
89c3df730b
telegram: add emoji for greetings
2021-06-09 01:37:04 +08:00
c9s
ac71a392c6
fixedpoint: fix fixedpoint value int64 cast
2021-06-09 01:36:32 +08:00
c9s
ecf888dfd6
util: add env var util functions
2021-06-09 01:36:16 +08:00
c9s
ec6c10a96a
binance: adjust read timeout and increase read buffer size
2021-06-09 01:36:06 +08:00
c9s
3fd170a4ff
xmaker: check book before copying
2021-06-09 01:35:56 +08:00
c9s
f5a241a1a8
xmaker: improve warn message
2021-06-09 01:35:50 +08:00
c9s
a0d8a3718a
xmaker: fix bid/ask price check
2021-06-07 02:50:11 +08:00
c9s
d5617d44aa
xmaker: pass source market and maker market for formatting
2021-06-07 02:49:54 +08:00
c9s
0a74cc7171
xmaker: add useDepthPrice option
2021-06-07 02:49:44 +08:00
c9s
2486d04332
rbt: fix copyNode
2021-06-07 02:44:30 +08:00
c9s
5a5cb71a5e
rbt: add more rbtorderbook test
2021-06-07 02:44:25 +08:00
c9s
062443a29c
rbt: check if returned node is neel
2021-06-07 02:44:21 +08:00
c9s
3b0ed4e3dc
rbt: add more test cases
2021-06-07 02:44:14 +08:00
c9s
9622956c71
rbt: fix rbtree search for neel
2021-06-07 02:44:09 +08:00
c9s
5d8f7b3ea6
rbt: fix preorder
2021-06-07 02:44:04 +08:00
c9s
7805dcd72e
rbt: fix pointer check of iteration
2021-06-07 02:44:00 +08:00
c9s
9bc55def44
rbt: fix deleting, copy value to the deleting node's memory
2021-06-07 02:43:54 +08:00
c9s
f34631c7ae
rbt: add pointer check
2021-06-07 02:43:50 +08:00
c9s
6d2771aca9
rbt: fix rightmost and leftmost
2021-06-07 02:43:43 +08:00
c9s
06bf0d0f2b
rbt: fix rbtree deletion
2021-06-07 02:43:39 +08:00
c9s
103b1ea560
rbt: add rbt insert test
2021-06-07 02:43:34 +08:00
c9s
7512f56b84
rbt: avoid sharing rbtree neel pointer
2021-06-07 02:43:22 +08:00
c9s
f487b53d9e
binance: fix client order id checking
2021-06-07 01:07:00 +08:00
c9s
5fd0ab4cd3
skip client order id when no client order is given
2021-06-07 01:03:21 +08:00
c9s
291fdbaf25
optimize max submit order api priority
2021-06-07 01:03:09 +08:00
c9s
f20e809940
types: add bestBidAndAsk method
2021-06-07 01:02:43 +08:00
c9s
e8205556ff
show bbgo version name
2021-06-07 00:57:47 +08:00
c9s
b60fd9e356
support: fix quantity formatting
2021-06-07 00:57:47 +08:00
c9s
b9584117d6
add QueryLastFundingRate api to binance exchange
2021-06-01 03:15:19 +08:00
c9s
b5c4fc3e4e
fix kline record insert fields
2021-06-01 01:39:23 +08:00
c9s
4bec8984c0
add klines columns
2021-06-01 01:39:23 +08:00
c9s
507ae934c0
compile and update migration package
2021-06-01 01:39:23 +08:00
c9s
f66095eff9
support: add target orders to the orders
2021-06-01 01:39:22 +08:00
c9s
e5db780be8
notify trades and update position
2021-06-01 01:39:22 +08:00
c9s
40c3a5870f
support strategy improvements:
...
- add taker buy base volume ratio option
- add max base asset balance config
- add min quote asset balance config
- record orders and trades
2021-06-01 01:39:22 +08:00
c9s
6a999b2906
kline: show taker buy base volume and taker buy quote volume
2021-06-01 01:39:22 +08:00
c9s
4da7d3b50b
fix side effect order type
2021-06-01 01:39:22 +08:00
c9s
bf73def701
binance: embed fixedpoint.Value into binance Balance struct
2021-06-01 01:39:22 +08:00
c9s
e3473572e9
types: add TakerBuyBaseAssetVolume and TakerBuyQuoteAssetVolume fields to kline
2021-06-01 01:39:22 +08:00
c9s
2925a77815
binance: use fixedpoint.Value for parsing floating number string
2021-06-01 01:39:22 +08:00
Jui-Nan Lin
7abd7225e1
fix(ftx): klines should not be empty
2021-05-31 22:56:26 +08:00
c9s
7ff4051c61
binance: fix websocket handshake
2021-05-30 18:20:14 +08:00
c9s
0b935eff4f
fix connection lock call
2021-05-30 18:14:22 +08:00
c9s
69e76485c5
xbalance: fix ticker usage
2021-05-30 18:06:31 +08:00
Yo-An Lin
406f592963
Merge pull request #258 from c9s/feature/okex
...
feature: add okex exchange user data stream and public stream
2021-05-30 16:21:12 +08:00
c9s
8d12c9262f
okex: move connection context cancel calls
2021-05-30 15:54:31 +08:00
c9s
d6bd33a682
okex: remove unused code
2021-05-30 15:53:43 +08:00
c9s
d112dbb1a4
binance: check connCancel only when new context is allocated
2021-05-30 15:53:01 +08:00
c9s
f9d4068145
binance: pull out listen key from stream and reduce critical section
2021-05-30 15:51:25 +08:00
c9s
d863766e00
fix quote quantity alignment
2021-05-30 15:51:00 +08:00
c9s
c84d59734c
clear all trades before running backtests
2021-05-30 15:25:00 +08:00
c9s
3aa36b5989
refactor and fix backtest for user data stream and market data stream
2021-05-30 15:08:11 +08:00
c9s
38fd5422ab
xmaker: use uncovered position
2021-05-30 14:46:48 +08:00
c9s
1a05f6fbd4
okex: pull read timeout and adjust to 30 seconds
2021-05-30 00:32:06 +08:00
c9s
9a68cfd288
xmaker: fix trade checking
2021-05-30 00:11:35 +08:00
c9s
d962dbe542
adjust read timeout
2021-05-29 20:40:47 +08:00
c9s
70284a8c0f
xmaker: move notify trade
2021-05-29 01:41:29 +08:00
c9s
3789315214
show accumulated net profit
2021-05-29 01:38:44 +08:00
c9s
df10e175f9
xmaker: fix wording
2021-05-29 01:32:33 +08:00
c9s
e2561bde96
xmaker: add NotifyTrade option
2021-05-29 01:31:13 +08:00
c9s
65a38e56b8
slacknotifier: spawn notify worker as a go routine
2021-05-29 01:30:57 +08:00
c9s
6e0bc7c1e2
xmaker: use trade channel to buffer trades
2021-05-29 01:03:43 +08:00
c9s
33db0b5c6f
xmaker: add trade stores for trade buffering
2021-05-29 00:28:13 +08:00
c9s
426a6157af
okex: fix ping connection lock
2021-05-29 00:27:28 +08:00
c9s
64b9c78a5b
okex: fix order detail segmentation
2021-05-29 00:27:05 +08:00
c9s
2a5ef30135
add ping worker to max
2021-05-29 00:26:53 +08:00
c9s
e11553139e
binance: make convert functions private
2021-05-29 00:26:39 +08:00
c9s
8d31435ded
add trade store
2021-05-29 00:25:23 +08:00
c9s
f49490f986
fix websocket ping/pong issue
2021-05-28 23:34:21 +08:00
c9s
002b28f75a
okex: implement candlestick api and improve kline console format
2021-05-28 20:51:10 +08:00
c9s
5f18b89dfa
if publicOnly is set, we should not connect user data stream
2021-05-28 19:01:55 +08:00
c9s
f190b1e66a
fix market data stream initialization
2021-05-28 03:17:46 +08:00
c9s
d932a686a0
fix strategy market data stream usage
2021-05-28 03:15:29 +08:00
c9s
4f16f6b1f8
fix market data stream usage
2021-05-28 03:13:50 +08:00
c9s
b430128ba1
okex: fix okex order cancellation
2021-05-28 03:05:59 +08:00
c9s
29304d14ba
okex: implement submit orders and cancel order api
2021-05-28 02:45:09 +08:00
c9s
6407eab9c1
okex: convert order details into trades and orders
2021-05-28 02:21:35 +08:00
c9s
19b700dfba
okex: parse and convert account information
2021-05-28 01:14:11 +08:00
c9s
777701c0cb
add userdatastream cmd for testing private stream
2021-05-28 00:47:34 +08:00
c9s
545d0f18e3
okex: handle kline close event
2021-05-27 18:43:42 +08:00
c9s
2844b7c3a7
okex: add kline command for testing kline data
2021-05-27 18:35:34 +08:00
c9s
76048633cc
okex: support websocket candle data
2021-05-27 17:55:23 +08:00
c9s
4fdd9d5097
okex: convert interval to candle types
2021-05-27 17:40:24 +08:00
c9s
1d400e281c
okex: convert book data to book snapshot and book update
2021-05-27 16:01:15 +08:00
c9s
884e764fe7
okex: order book parsing
2021-05-27 15:48:51 +08:00