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 |
|