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
2e34f7840a
pkg/exchange: support market trade streaming
2024-01-08 21:27:26 +08:00
Edwin
0b906606fe
pkg/exchange: refactor book and kline
2024-01-08 10:30:11 +08:00
Edwin
9ad94aa7e0
pkg/exchange: add stream test for book
2024-01-02 12:02:33 +08:00
Alan.sung
2309bbdee8
print local interval in error message
2023-10-04 16:24:32 +08:00
Alan.sung
3b793b79b6
turn ToGlobalInterval to ToLocalInterval, use Map to turn to local interval
2023-10-04 14:23:13 +08:00
Alan.sung
0b5ce231ff
fix lint and rename i with in
2023-10-04 12:39:30 +08:00
Alan.sung
a83335817e
use interval [1m/3m/5m/15m/30m/1H/2H/4H] and [/6Hutc/12Hutc/1Dutc/2Dutc/3Dutc/1Wutc/1Mutc] and add unit test
2023-10-04 12:39:30 +08:00
Alan.sung
d200232c13
add supported interval for okex
2023-10-04 12:38:59 +08:00
Alan.sung
b1c6e01e45
use types.StrInt64 for billID and add more comment for QueryTrades() and comment out personal unit test
2023-10-03 15:14:49 +08:00
Alan.sung
cc55d67eeb
use default limit if not pass AND add more unit test
2023-10-03 12:29:30 +08:00
Alan.sung
648b82ead3
use NewGetTransactionHistoryRequest for QueryTrades and use billID for pagination
2023-10-02 18:47:05 +08:00
Alan.sung
6fd86fefda
add unit test for QueryTrade()
2023-10-02 10:49:33 +08:00
Alan.sung
3b63858d23
handle pagenation for QueryTrade
2023-09-27 11:06:41 +08:00
Alan.sung
ad7206271f
QueryTrades only allow query by time interval, required
2023-09-26 01:06:58 +08:00
Alan.sung
99a69f4f2f
add QueryClosedOrders() and QueryTrades() for okex, also fix conflict for QueryOrderTrades() and update typo error in QueryOrderTrades()
2023-09-26 01:05:09 +08:00
c9s
a22c41f47d
Merge pull request #1307 from MengShue/add_QueryOrderTrades_for_okex
...
FEATURE: add QueryOrderTrades() for okex
2023-09-18 16:14:41 +08:00
Alan.sung
a47c846fa5
add QueryOrderTrades() for okex
2023-09-14 14:54:02 +08:00
Edwin
e56d8d1607
pkg/exchange: emit auth in each exchange
2023-09-14 12:01:20 +09:00
c9s
09ed7b141c
Merge pull request #1305 from MengShue/refactor_okex_for_future
...
FEATURE: refactor okex to future use
2023-09-07 22:57:29 +08:00
Alan.sung
9a66f82d8c
remove err since handling init for client
2023-09-07 11:25:12 +08:00
Alan.sung
dbf29f8cd2
add constructor to check url error
2023-09-06 21:21:13 +08:00
Alan.sung
7550ea2be1
refactor okex to future use
2023-09-06 19:14:21 +08:00
bailantaotao
7461b60b6b
Merge pull request #1299 from bailantaotao/edwin/add-server-time
...
pkg/exchange: add time to SliceOrderBook
2023-09-05 16:36:20 +08:00
c9s
415a28c32b
Merge pull request #1300 from bailantaotao/edwin/fix-okex-bid-ask
...
pkg/exchange: fix okex bookticker bug
2023-09-01 18:07:59 +08:00
Edwin
50bfd8ee0e
pkg/exchange: add time to SliceOrderBook
2023-09-01 17:54:40 +08:00
Edwin
594ab9cbaf
pkg/exchange: fix okex bookticker bug
2023-09-01 17:12:32 +08:00
c9s
2c4b6e8cd1
Merge pull request #1238 from MengShue/add_unit_test_for_okex
...
TEST: add unit test for okex exchange
2023-08-24 12:44:45 +08:00
Alan.sung
f8ae408fad
add continue in err != nil
2023-08-23 16:16:38 +08:00
Alan.sung
26cde5d57c
use multierr to handle err return from toGlobalOrder
2023-08-23 15:44:51 +08:00
Alan.sung
a0946fbd42
use lower case in error string and add comment for IOC, FOK
2023-08-22 17:23:16 +08:00
Alan.sung
a4aa9c2eda
remove mmp and mmp_post_only
2023-08-22 15:14:18 +08:00
Alan.sung
3dce63710a
Fix to fit all reviews last time
2023-08-21 15:31:30 +08:00
Alan.sung
672a878194
update toGlobalOrder by referencing toGlobalOrders
2023-08-15 14:26:27 +08:00
Alan.sung
ea5b45bfe4
queryOrder() and test for it
2023-08-11 09:28:58 +08:00
Alan.sung
1c5d2dc759
add QueryOrder in okex exchange.go
2023-08-09 15:05:26 +08:00
Edwin
65b06ff401
pkg/exchange: add query account function
2023-08-09 14:05:57 +08:00
Alan.sung
b0ccc7e51b
use &PublicDataService{} to create it as a pointer object and rename ser to srv
2023-07-31 11:00:38 +09:00
Alan.sung
cba5663fac
add unit test for okex exchange
2023-07-21 17:05:19 +08:00
c9s
f942f7afd8
okex: rename constant names
2023-05-17 13:45:38 +08:00
c9s
29105eb57f
all: simplify underlying exchange submitOrder method
...
- Replace SubmitOrders with SubmitOrder
- Accept only one submit order and return one created order
- Add bbgo.BatchPlaceOrders helper method and bbgo.BatchRetryPlaceOrders method
2022-09-09 18:41:06 +08:00
zenix
a5ffca7fe8
fix: gosimple alert
2022-06-17 20:19:51 +09:00
zenix
ba1342cbc3
feature: add pre-commit
2022-06-17 16:07:00 +09:00
zenix
55fa4cc8f1
fix: apply gofmt on all files, add revive action
2022-06-17 16:06:59 +09:00
c9s
13bf5d69a3
use types.Interval instead of string
2022-05-19 10:04:03 +08:00
c9s
eb10889d35
okex: fix okex rate limit
2022-05-03 12:11:50 +08:00
c9s
d742aea633
okex: fix kline query
2022-05-03 11:14:53 +08:00
c9s
0c09e6b32a
use global timeInForce type
2022-02-18 13:52:13 +08:00
zenix
b8bf2af14d
fixedpoint for exchange and indicators, some fixes in types
2022-02-15 12:01:38 +09:00