c9s
|
32b8ca9a41
|
Merge pull request #1312 from MengShue/add_two_new_receiver_for_okex
FEATURE: add QueryClosedOrders() and QueryTrades() for okex
|
2023-10-04 12:14:32 +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 |
|
c9s
|
2058ce808b
|
Merge pull request #1325 from zenixls2/fix/listenkeyexpired
|
2023-09-27 22:46:44 +08:00 |
|
bailantaotao
|
d37682e22c
|
Merge pull request #1326 from bailantaotao/ediwn/fix-bybit-query-trades
FIX: [bybit] fix bybit query trades
|
2023-09-27 15:28:34 +08:00 |
|
Edwin
|
add1c73656
|
pkg/exchange: support pagination
|
2023-09-27 14:56:46 +08:00 |
|
zenix
|
08dad1c497
|
fix: replace json.Number with MillisecondTimestamp in types
|
2023-09-27 15:52:02 +09:00 |
|
Edwin
|
9a05357350
|
pkg/exchange: remove the limitation of query range due to bybit support the query
|
2023-09-27 14:44:11 +08:00 |
|
Alan.sung
|
3b63858d23
|
handle pagenation for QueryTrade
|
2023-09-27 11:06:41 +08:00 |
|
zenix
|
2e4336a604
|
fix: listenKeyExpired event sends string timestamp
|
2023-09-26 18:41:15 +09:00 |
|
zenix
|
13b9fc4252
|
add forgotten emit
|
2023-09-26 18:36:46 +09:00 |
|
Edwin
|
9f83165032
|
pkg/exchange: use balance update instead of snapshot event
|
2023-09-26 17:13:23 +08:00 |
|
Edwin
|
70884538bc
|
pkg/exchange: emit balance snapshot
|
2023-09-26 17:13:20 +08:00 |
|
zenix
|
7ae56a83da
|
feature: add forceOrder api for binance to show liquid info
|
2023-09-26 15:22:09 +09: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 |
|
chiahung
|
fdfa3639ff
|
FEATURE: use retry query order until successful
|
2023-09-19 11:12:14 +08:00 |
|
kbearXD
|
6d0c266513
|
Merge pull request #1302 from c9s/feature/grid2/use-quote-quantity
FEATURE: use quote quantity if there is QuoteQuantity in trade
|
2023-09-19 10:41:34 +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 |
|
c9s
|
542944b4cc
|
max: use websocket update time (TU) field
|
2023-09-17 18:29:14 +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 |
|
bailantaotao
|
388b9c3f9f
|
Merge pull request #1308 from bailantaotao/edwin/add-trade-stream
FEATURE: [bybit] support market trade
|
2023-09-11 18:02:03 +08:00 |
|
c9s
|
4f82843b40
|
Merge pull request #1306 from andycheng123/improve/binance-api
Improve: Update Binance futures account api to v2
|
2023-09-11 11:14:56 +08:00 |
|
Edwin
|
1c5ad1d1f0
|
pkg/exchange: support market trade for bybit
|
2023-09-11 00:54:02 +08:00 |
|
bailantaotao
|
439f45bdf9
|
Merge pull request #1304 from bailantaotao/edwin/support-unsubscribe
FEATURE: [bybit] support unsubscribe
|
2023-09-08 18:22:53 +08:00 |
|
Andy Cheng
|
40dbfd5b42
|
improve/binance: rename variable to comply with golang naming convention
|
2023-09-08 18:14:51 +08: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 |
|
Andy Cheng
|
c9d67f8131
|
improve/binance: update futures account api to v2
|
2023-09-07 15:21:47 +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
|
1338499e3f
|
Merge pull request #1303 from bailantaotao/edwin/add-default-time
FEATURE: set default 30d for closed order batch query
|
2023-09-06 12:41:47 +08:00 |
|
Edwin
|
da13bb680e
|
pkg/exchange: support unsubscribe for bybit
|
2023-09-06 12:18:47 +08:00 |
|
Edwin
|
f5a66baad3
|
pkg/exchage: set default 30d for closed order batch query
|
2023-09-05 22:04:16 +08:00 |
|
chiahung
|
db376f8483
|
FEATURE: use quote quantity if there is QuoteQuantity in trade
|
2023-09-05 18:28:10 +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
|
412d0e0558
|
*: fix lint
|
2023-09-01 17:54:43 +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 |
|
bailantaotao
|
edfcbb01c0
|
Merge pull request #1293 from bailantaotao/edwin/fix-quantity-in-buy-market-order
FIX: [bybit] quantity in buy market order
|
2023-08-22 11:42:08 +08:00 |
|
Edwin
|
9ee7377f36
|
pkg/exchange: fix quantity for buy market order
|
2023-08-21 15:59:13 +08:00 |
|
Alan.sung
|
3dce63710a
|
Fix to fit all reviews last time
|
2023-08-21 15:31:30 +08:00 |
|
Edwin
|
3ad7075ace
|
pkg/exchange: fix quantity coin unit
|
2023-08-18 01:08:09 +08:00 |
|
c9s
|
ed948b2642
|
max: fix QuerySpotAccount method return value
|
2023-08-17 17:42:54 +08:00 |
|
bailantaotao
|
3eeba521f6
|
Merge pull request #1289 from bailantaotao/edwin/fix-misc-2
FIX: [bybit] fix misc
|
2023-08-16 22:07:57 +08:00 |
|
bailantaotao
|
b6c9f14dcc
|
Merge pull request #1285 from bailantaotao/edwin/query-order
FEATURE: [bybit] implement ExchangeOrderQueryService interface
|
2023-08-16 22:07:36 +08:00 |
|
Edwin
|
6cfbb84bb5
|
pkg/exchange: fix order id check for the submitted orders
|
2023-08-16 14:47:35 +08:00 |
|
c9s
|
252f4fbccc
|
deposit2transfer: call QuerySpotAccount for getting the spot balance
|
2023-08-16 12:02:18 +08:00 |
|
c9s
|
5f54c303fb
|
bitget: fix fixedpoint.Value init value
|
2023-08-15 16:40:15 +08:00 |
|
c9s
|
4a64701e16
|
bitget: implement QueryAccount
|
2023-08-15 16:38:48 +08:00 |
|
c9s
|
40762cad35
|
bitget: implement QueryTicker
|
2023-08-15 16:38:48 +08:00 |
|
c9s
|
2fda4477bd
|
bitget: implement QueryMarkets
|
2023-08-15 16:38:47 +08:00 |
|
Alan.sung
|
672a878194
|
update toGlobalOrder by referencing toGlobalOrders
|
2023-08-15 14:26:27 +08:00 |
|
Edwin
|
e4ebe1cffd
|
pkg/exchange: supprot queryOrderTrades
|
2023-08-15 14:23:34 +08:00 |
|
Edwin
|
3207a8227c
|
pkg/exchange: add QueryOrder api
|
2023-08-15 14:23:31 +08:00 |
|
Edwin
|
ed47d5064a
|
pkg/exchange: fix the order id check for cancel order
|
2023-08-14 18:13:24 +08:00 |
|
Edwin
|
187429081f
|
pkg/exchange: fix orderId json tag
|
2023-08-14 18:06:14 +08:00 |
|
Alan.sung
|
ea5b45bfe4
|
queryOrder() and test for it
|
2023-08-11 09:28:58 +08:00 |
|
Edwin
|
54e7065d8a
|
pkg/exchange: implement trade event
|
2023-08-10 19:58:27 +08:00 |
|
Edwin
|
affff32599
|
pkg/exchange: get fee rate before connect
|
2023-08-10 17:57:47 +08:00 |
|
Edwin
|
0b03336fb0
|
pkg/exchange: support GetFeeRates on bybit exchange
|
2023-08-10 15:26:51 +08:00 |
|
Edwin
|
ace2c55a17
|
exchange/bybit: add fee rate restful api
|
2023-08-10 15:02:30 +08:00 |
|
Edwin
|
4cee22ce31
|
pkg/exchage: support k line websocket event
|
2023-08-10 11:07:13 +08:00 |
|
Edwin
|
e9d0ce5bbf
|
pkg/exchage: support k line rest api
|
2023-08-10 11:07:10 +08:00 |
|
bailantaotao
|
24d240b1f3
|
Merge pull request #1279 from bailantaotao/edwin/add-query-acct
FEATURE: [bybit] support query account/balance api
|
2023-08-09 15:33:04 +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 |
|
Edwin
|
dfead5ebed
|
pkg/exchange: add query account balance api
|
2023-08-09 14:05:57 +08:00 |
|
Edwin
|
8c22863334
|
pkg/exchange: mv BalanceEvent to bybitapi and rename to WalletBalances
|
2023-08-09 14:05:55 +08:00 |
|
c9s
|
4ed402b775
|
max: update deposit states and add more fields to deposit
|
2023-08-08 20:51:48 +08:00 |
|
c9s
|
b711e1e439
|
Merge pull request #1275 from c9s/c9s/strategy-deposit2transfer
FEATURE: [strategy] add deposit2transfer tool
|
2023-08-08 15:13:06 +08:00 |
|
Edwin
|
b27395f6f4
|
pkg/exchange: avoiding GC panic caused by a rapid creation/removal slice of pointers
|
2023-08-08 14:11:19 +08:00 |
|
c9s
|
25298720d0
|
max: implement TransferMarginAccountAsset on max
|
2023-08-08 13:16:11 +08:00 |
|
c9s
|
5460ebdbf4
|
max: add margin transfer request
|
2023-08-08 12:49:05 +08:00 |
|
c9s
|
241ce657c3
|
binance: remove isMargin check
|
2023-08-08 12:01:30 +08:00 |
|
Edwin
|
f664ef2262
|
pkg/exchange: add order event
|
2023-08-08 11:42:02 +08:00 |
|
c9s
|
4c4b9db47a
|
types,binance: add confirmation and unlockConfirm fields to Deposit
|
2023-08-08 11:20:17 +08:00 |
|
c9s
|
9248f8ac24
|
binance: define DepositStatus for binance
|
2023-08-08 11:20:17 +08:00 |
|
c9s
|
9346e7d1f6
|
binance: replace emptyTime with IsZero
|
2023-08-08 11:20:17 +08:00 |
|
c9s
|
0118f33bfc
|
binance: finalize TransferMarginAccountAsset method
|
2023-08-08 11:20:17 +08:00 |
|
c9s
|
8b1cefc699
|
binance: integerate isolated margin / cross margin transfer
|
2023-08-08 11:20:17 +08:00 |
|
c9s
|
92691eda24
|
binanceapi: add margin transfer api
|
2023-08-08 11:20:17 +08:00 |
|
Edwin
|
8b68354d89
|
pkg/exchange: add balance snapshot event
|
2023-08-08 10:04:25 +08:00 |
|
Edwin
|
3e4e46de20
|
pkg/exchange: to de-pointer the value in WsOpEvent and fix test assertion
|
2023-08-07 15:59:50 +08:00 |
|
Edwin
|
84fa19afee
|
pkg/exchange: add auth function for ws
|
2023-08-07 14:58:20 +08:00 |
|
Edwin
|
a6047f629d
|
pkg/exchange: implement bybit stream ping
|
2023-08-04 18:00:50 +08:00 |
|
Edwin
|
e1bae5dba0
|
pkg/exchange: implement bybit stream ping
|
2023-08-02 17:55:20 +08:00 |
|
bailantaotao
|
ae61e10c6a
|
Merge pull request #1255 from bailantaotao/edwin/query-trades
FEATURE: [bybit] add query trade api
|
2023-08-01 18:02:29 +08:00 |
|
Edwin
|
4363f0ae7b
|
pkg/exchange: add query trade api
|
2023-08-01 16:31:49 +08:00 |
|
c9s
|
54e0e1024c
|
Merge pull request #1254 from c9s/v1.50
merge back v1.50 into main
|
2023-07-31 20:24:00 +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 |
|
Edwin
|
86c643b513
|
pkx/exchange: fix batch query trade missing time range
|
2023-07-28 22:54:48 +08:00 |
|
bailantaotao
|
7eb6e402ca
|
Merge pull request #1252 from bailantaotao/edwin/query-closed-order
FEATURE: [bybit] query closed order
|
2023-07-28 14:40:38 +08:00 |
|
Edwin
|
d2ad504579
|
pkg/exchange: add QueryClosedOrders
|
2023-07-28 10:15:08 +08:00 |
|
Edwin
|
f25ab567eb
|
pkg/exhcange: return err on max queryClosedOrdersByLastOrderID
|
2023-07-27 18:35:58 +08:00 |
|
Edwin
|
1760a5b8d6
|
pkg/exchange: try to parse order id to integer
|
2023-07-27 18:09:43 +08:00 |
|
Edwin
|
d8b8e7f2ac
|
pkg/exchange: rename OpenOrders to Orders
|
2023-07-27 17:35:33 +08:00 |
|
c9s
|
b02ac837ea
|
max: handle SelfTradeBidFeeDiscounted
|
2023-07-27 16:28:54 +08:00 |
|
Edwin
|
574d7c0c74
|
pkg/exchange: rm redundant prefix
|
2023-07-27 10:31:24 +08:00 |
|
Edwin
|
5105046053
|
pkg/exchange: support cancel order
|
2023-07-26 22:24:20 +08:00 |
|
Edwin
|
151e8d2acf
|
pkg/exchange: support place order for bybit
|
2023-07-26 21:44:49 +08:00 |
|
bailantaotao
|
3fd66199d7
|
Merge pull request #1248 from bailantaotao/edwin/add-query-open-orders
pkg/exchange: add QueryOpenOrders API for bybit
|
2023-07-26 15:12:37 +08:00 |
|
c9s
|
cddb7874ce
|
maxapi: set user agent
|
2023-07-26 14:35:33 +08:00 |
|
Edwin
|
6d4deb54cc
|
pkg/exchange: add QueryOpenOrders API for bybit
|
2023-07-26 14:18:02 +08:00 |
|
bailantaotao
|
ff78637c8f
|
Merge pull request #1244 from bailantaotao/edwin/add-ticker
FEATURE: support QueryTickers API on bybit
|
2023-07-25 20:35:56 +08:00 |
|
Edwin
|
b71030c5db
|
pkg: return err if rate limit err
|
2023-07-25 15:09:57 +08:00 |
|
Edwin
|
ef8d1c7046
|
pkg/exchange: support QueryTickers API on bybit
|
2023-07-25 15:02:38 +08:00 |
|
c9s
|
fcca3f6432
|
types: add fee discounted field to the global trade struct
|
2023-07-25 14:57:10 +08:00 |
|
c9s
|
4de82ccdff
|
max: use types.MillisecondTimestamp for UpdateTime field
|
2023-07-25 13:37:31 +08:00 |
|
c9s
|
f5feb72355
|
max: add fee_discounted to Trade struct for RESTful api
|
2023-07-25 13:35:08 +08:00 |
|
bailantaotao
|
157de4b2ee
|
Merge pull request #1243 from bailantaotao/edwin/add-query-markets
FEATURE: pkg/exchange: add query market to bybit exchange
|
2023-07-24 21:52:31 +08:00 |
|
Edwin
|
3c32acc3ed
|
pkg/exchange: add query market to bybit
|
2023-07-24 20:18:44 +08:00 |
|
c9s
|
afc5dbb951
|
Merge remote-tracking branch 'origin/v1.50'
|
2023-07-24 17:02:08 +08:00 |
|
c9s
|
c114477340
|
Merge pull request #1242 from c9s/c9s/fix-max-withdrawal-api
FIX: [max] fix MAX withdrawal address parameter name
|
2023-07-24 16:58:21 +08:00 |
|
Edwin
|
ac5e2cf712
|
pkg, types: add bybit to factor and update readme
|
2023-07-24 15:51:44 +08:00 |
|
Edwin
|
b45fdea99a
|
pkg/exchange: add get account info and instruments info api for bybit
|
2023-07-24 15:51:41 +08:00 |
|
c9s
|
16c62bbcba
|
maxapi: fix max withdrawal api
|
2023-07-24 15:28:11 +08:00 |
|
c9s
|
9c20215f41
|
max: use fixedpoint.Value for field parsing
|
2023-07-24 15:00:03 +08:00 |
|
c9s
|
5f2ead4ffd
|
maxapi: parse fd field and optimize trade snapshot parsing
|
2023-07-24 14:57:50 +08:00 |
|
Alan.sung
|
cba5663fac
|
add unit test for okex exchange
|
2023-07-21 17:05:19 +08:00 |
|
c9s
|
844bd8be87
|
bitget: add account transfers request
|
2023-07-17 16:38:42 +08:00 |
|
c9s
|
ce40549e88
|
all: rename QueryOrderUntilSuccessful to QueryOrderUntilFilled
|
2023-06-29 17:17:32 +08:00 |
|
c9s
|
b6dba18f77
|
all: move retry functions to the retry package
|
2023-06-29 10:59:01 +08:00 |
|
c9s
|
ea3b1cc937
|
binance: fix logrus call
|
2023-06-14 17:25:22 +08:00 |
|
c9s
|
a126bc3bb6
|
binance: add market info warning
|
2023-06-13 17:09:37 +08:00 |
|
c9s
|
fa0cb1e85f
|
binance: document balanceUpdate event
|
2023-06-01 12:17:45 +08:00 |
|
c9s
|
f349f3620c
|
autoborrow: add SlackAttachment support to the binance balance update event
|
2023-06-01 12:13:22 +08:00 |
|
c9s
|
0bb697bc1e
|
maxapi: move NewGetMarginLoanHistoryRequest method to the bottom of the file
|
2023-05-18 18:26:03 +08:00 |
|
c9s
|
2fe915f73a
|
types: add MarshalJSON method on strint64
|
2023-05-18 18:08:40 +08:00 |
|
c9s
|
b32d890860
|
bitgetapi: add GetFillsRequest
|
2023-05-18 15:59:16 +08:00 |
|
c9s
|
fce281b6a8
|
bitgetapi: add GetOrderHistoryRequest
|
2023-05-18 15:47:58 +08:00 |
|
c9s
|
312c8baeb3
|
bitget: add open orders request
|
2023-05-18 15:38:57 +08:00 |
|
c9s
|
ae1c1377ce
|
bitget: define OrderStatus
|
2023-05-18 15:37:01 +08:00 |
|
c9s
|
90f704bab0
|
bitgetapi: add get order detail request
|
2023-05-18 15:22:50 +08:00 |
|
c9s
|
51e05499b2
|
bitgetapi: add CancelOrderBySymbolRequest
|
2023-05-18 11:59:49 +08:00 |
|
c9s
|
0c887a6bfb
|
bitgetapi: add place order request api
|
2023-05-18 11:23:30 +08:00 |
|
c9s
|
a5a64fa6d4
|
bitgetapi: add getDepthRequest
|
2023-05-18 11:13:06 +08:00 |
|
c9s
|
cff98bc141
|
bitgetapi: refactor tests
|
2023-05-18 10:54:00 +08:00 |
|
c9s
|
3154961d72
|
bitget: add more public api tests
|
2023-05-17 18:04:24 +08:00 |
|
c9s
|
c347a2423a
|
bitget: update generated request files and fix account assets api data type
|
2023-05-17 17:53:24 +08:00 |
|
c9s
|
e31a6ca3c8
|
bitget: add GetAllTickers request
|
2023-05-17 16:56:39 +08:00 |
|