Commit Graph

1323 Commits

Author SHA1 Message Date
bailantaotao
c2e3fed6d3
Merge pull request #1492 from c9s/edwin/okx/refactor-tickers
FEATURE: [okx] generate ticker request by requestgen
2024-01-09 15:38:28 +08:00
bailantaotao
0bf1e4ed59
Merge pull request #1489 from c9s/edwin/okx/refactor-account-info
REFACTOR: [okx] refactor account info
2024-01-09 14:45:17 +08:00
Edwin
188b781116 pkg/exchange: add rate limiter to ticker/tickers 2024-01-09 13:57:19 +08:00
Edwin
6d7a01ffae pkg/exchange: generate ticker request by requestgen 2024-01-09 13:57:03 +08:00
Edwin
caef31d760 pkg/exchange: early return if error 2024-01-09 11:58:43 +08:00
Edwin
6e160e7a36 pkg/exchange: add rate limiter to QueryMarkets 2024-01-09 11:56:10 +08:00
Edwin
ba5882f7b6 pkg/exchange: generate instrument request by requestgen 2024-01-09 11:55:49 +08:00
Edwin
147b31d81d pkg/exchange: refactor account stream 2024-01-09 10:59:35 +08:00
bailantaotao
a680df2938
Merge pull request #1486 from c9s/edwin/okx/add-market-trade-stream
FEATURE: [okx] support market trade streaming
2024-01-09 10:58:24 +08:00
Edwin
2e34f7840a pkg/exchange: support market trade streaming 2024-01-08 21:27:26 +08:00
c9s
11309ac8c8
Merge pull request #1487 from c9s/c9s/bitget-ignore-offline-symbols
FIX: [bitget] ignore offline symbols
2024-01-08 18:19:01 +08:00
c9s
e358da10dd
bitget: log symbol status 2024-01-08 18:13:26 +08:00
c9s
cfe3b6466c
update bitget v2 get_symbols_request_requestgen 2024-01-08 17:47:52 +08:00
c9s
33deaea6e5
bitget: bitget ignore offline symbols 2024-01-08 17:46:09 +08:00
Edwin
0b906606fe pkg/exchange: refactor book and kline 2024-01-08 10:30:11 +08:00
c9s
6e03626b36
Merge pull request #1476 from c9s/edwin/okx/add-streaming-test
CHORE: [okex] add stream test for book
2024-01-03 16:37:12 +08:00
bailantaotao
769d3ce2d8
Merge pull request #1456 from c9s/edwin/bitget/get-account-assets
FEATURE: [bitget] get account assets
2024-01-03 13:01:35 +08:00
Edwin
b5ff066aa2 pkg/exchange: print symbol 2024-01-03 11:30:50 +08:00
Edwin
30164acdcf pkg/exchange: use v2 get account asset api 2024-01-03 11:25:46 +08:00
Edwin
9ad94aa7e0 pkg/exchange: add stream test for book 2024-01-02 12:02:33 +08:00
chiahung.lin
bfd9c8ac64 FEATURE: run state machine
FEATURE: support recover

FEATURE: add order into orderStore and recover position

recover position/budget

FEATURE: support recover budget
2023-12-20 16:02:37 +08:00
c9s
841229518a
bitget: add more debug logs for orderEvent and tradeEvent 2023-12-18 16:31:04 +08:00
c9s
038d180711
bitget: check bitget websocket trade id and order status 2023-12-18 14:44:33 +08:00
Edwin
c5decf9bf8 pkg/exchange: support v2 get asset api 2023-12-18 12:17:49 +08:00
c9s
2c7e42922b
Merge pull request #1429 from c9s/edwin/bybit/get-fee-rate-on-private-stream-only 2023-12-13 18:50:19 +08:00
Edwin
29550f0013 pkg/exchange: we don't need the fee rate in the public stream 2023-12-13 13:53:58 +08:00
c9s
6cbb17fb76
all: refactor log formatter functions 2023-12-13 09:47:18 +08:00
c9s
f3ce4c2cc6
bitget: refactor debug function tool 2023-12-13 09:28:34 +08:00
c9s
b022a6119f
bitget: add bitget log prefix 2023-12-13 09:28:34 +08:00
Edwin
c2724c4f62 pkg/exchange: fix price is zero when order not executed 2023-12-12 17:30:51 +08:00
c9s
c5282a8f9b
bitget: add more debug logs 2023-12-12 16:37:43 +08:00
c9s
b9c4002704
bitget: handle order type limit maker 2023-12-08 15:18:34 +08:00
c9s
214f9fe75e
bitget: improve bitget websocket depth subscription 2023-12-07 17:38:57 +08:00
c9s
96f6f9e0d0
exchange/retry: add QueryOrderUntilCancelled 2023-12-07 16:18:23 +08:00
chiahung.lin
c67737a6d6 use retry package 2023-12-06 16:16:17 +08:00
chiahung.lin
c906d6a74d rename variable 2023-12-06 11:27:06 +08:00
chiahung.lin
d54b7365dd FEATURE: use types.OrderMap to avoid missing and duplicated orders 2023-12-05 20:10:37 +08:00
chiahung
a1d98e25c6 FEATURE: use max v3 new open orders api 2023-12-05 19:57:00 +08:00
chiahung.lin
165e788c3d fix 2023-12-05 16:59:26 +08:00
chiahung.lin
9fab37a284 use getLaunchDate 2023-12-05 15:34:31 +08:00
chiahung.lin
21c037a877 FIX: fix list closed orders api limit 2023-12-04 20:01:54 +08:00
chiahung.lin
800148b271 remain only template part 2023-11-23 16:45:28 +08:00
kbearXD
9722c3eb49
Merge pull request #1421 from c9s/feature/maxapi/get-closed-orders
FEATURE: use new max v3 api to query closed orders by timestamp
2023-11-23 12:46:30 +08:00
Edwin
87d763598f pkg/exchange: use backoff retry 2023-11-21 18:01:21 +08:00
Edwin
51718b6eb2 pkg/exchnage: add log rate limiter to stream event 2023-11-21 18:01:18 +08:00
chiahung
7cb8da08cd use asc as order by to query closed orders 2023-11-21 17:14:33 +08:00
c9s
c360c6045c
bbgo: call retry.QueryAccountUntilSuccessful in the startup time 2023-11-20 16:20:39 +08:00
chiahung.lin
ce76ad3c03 use OrderByType 2023-11-20 15:32:04 +08:00
c9s
5795a71111
binance,max: store original order status into the order struct 2023-11-17 17:14:52 +08:00
c9s
3cfc810f8d
max: group the request building statement 2023-11-17 16:57:47 +08:00