mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-22 23:16:48 +00:00
GateIO: Update websocket orderbook manager (#1989)
* gateio: websocket ob manager fix (cherry-pick me)
* fix(gateio): update websocket orderbook manager to support delay and deadline parameters
feat(subscriptions): mv ChannelKey type for subscription management from gateio to subscriptions
test(gateio): enhance tests for orderbook update manager and subscription keys
* ai: nits
* linter: fix
* Fix asset typo and add in case test
* cranktakular: nits
* cranktakular: nits after merge master
* bump time delay for cache
* fix bug where on error it never initiates another orderbook fetch
* lint: fix
* Update exchanges/gateio/ws_ob_update_manager.go
Co-authored-by: Scott <gloriousCode@users.noreply.github.com>
* glorious: nits
* linter: fix
* Update exchanges/gateio/gateio_wrapper_test.go
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* Update exchanges/gateio/gateio_wrapper.go
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* Update exchanges/gateio/gateio_wrapper_test.go
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* Update exchanges/gateio/ws_ob_update_manager.go
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* Update exchanges/gateio/ws_ob_update_manager.go
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* Update exchanges/gateio/ws_ob_update_manager.go
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* Update exchanges/gateio/ws_ob_update_manager_test.go
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* gk: nits
* Update exchanges/gateio/gateio_wrapper.go
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* Update exchanges/gateio/ws_ob_update_manager.go
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* gk: nits
* bossking: nits
* Update exchanges/gateio/ws_ob_update_manager_test.go
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* gk: nits
* apply patch
* rm error state as this was on the same thread as cacheStateQueuing and had the potential to drop messages, add tests.
* linter: fix
* mock live request
* misc: fix
* Update exchanges/gateio/ws_ob_update_manager.go
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* Update exchanges/gateio/ws_ob_update_manager.go
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* Update exchanges/gateio/ws_ob_update_manager.go
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* Update exchanges/gateio/ws_ob_update_manager.go
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* Update exchanges/gateio/ws_ob_update_manager.go
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* gk: nits
* field name from mtx -> m
* lint: fix
* race: check fix
* thrasher-: patch adams
---------
Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io>
Co-authored-by: Scott <gloriousCode@users.noreply.github.com>
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
This commit is contained in:
58
exchanges/gateio/testdata/http.json
vendored
58
exchanges/gateio/testdata/http.json
vendored
@@ -1,5 +1,63 @@
|
||||
{
|
||||
"routes": {
|
||||
"/api/v4/spot/order_book": {
|
||||
"GET": [
|
||||
{
|
||||
"data": {
|
||||
"asks": [
|
||||
[
|
||||
"112095.9",
|
||||
"0.509926"
|
||||
],
|
||||
[
|
||||
"112096",
|
||||
"0.0439"
|
||||
],
|
||||
[
|
||||
"112097",
|
||||
"0.0439"
|
||||
],
|
||||
[
|
||||
"112097.9",
|
||||
"0.044111"
|
||||
],
|
||||
[
|
||||
"112098",
|
||||
"0.0439"
|
||||
]
|
||||
],
|
||||
"bids": [
|
||||
[
|
||||
"112095.8",
|
||||
"2.255276"
|
||||
],
|
||||
[
|
||||
"112095.7",
|
||||
"1.490851"
|
||||
],
|
||||
[
|
||||
"112095",
|
||||
"0.0439"
|
||||
],
|
||||
[
|
||||
"112094.2",
|
||||
"0.08921"
|
||||
],
|
||||
[
|
||||
"112092.3",
|
||||
"1.186865"
|
||||
]
|
||||
],
|
||||
"current": 1759104757920,
|
||||
"id": 27596272445,
|
||||
"update": 1759104757919
|
||||
},
|
||||
"queryString": "currency_pair=BTC_USDT\u0026limit=20\u0026with_id=true",
|
||||
"bodyParams": "",
|
||||
"headers": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
"/futures/usdt/risk_limit_table": {
|
||||
"GET": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user