-
Notifications
You must be signed in to change notification settings - Fork 903
exchanges: Update Poloniex exchange API #2105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
samuael
wants to merge
491
commits into
thrasher-corp:master
Choose a base branch
from
samuael:poloniex
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 250 commits
Commits
Show all changes
491 commits
Select commit
Hold shift + click to select a range
7bb60a5
fix conflict and update unit tests
samuael 21cd947
minor change
samuael 89ff36a
update based on review comments
samuael 31668c0
wrappers and time-in-force calling approach
samuael 764eb37
minor change
samuael 57e0744
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael eec47f5
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 9c6f10d
update gateio string to timeInForce conversion and unit test
samuael 84dc671
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael c674865
Merge branch 'update_tif' into poloniex
samuael f95525c
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael fa9d9e2
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 1fb57bf
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael c646b28
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 098eed6
set limiter to first level mock data list and updated unit tests
samuael 1cf8f91
address nested slices length limit
samuael 40e4bba
minor fix recording file and update unit tests
samuael 888144d
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 83c8671
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 0562e59
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 85b0754
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 670e376
minor updates on unit tests
samuael 92accc6
Merge branch 'mock_data_size_update' of https://github.com/samuael/go…
samuael 71cc7cc
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 2940b4c
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 1863cf1
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 85ccde0
Merge branch 'mock_data_size_update' into poloniex
samuael 6144bf6
mock data update using the mock data trimmer
samuael 4fcb8e8
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 5c73285
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 33bf089
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael e6c89c3
fix minor linter issues
samuael 899b4ce
mock file re-recording
samuael 52c6e67
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael e462ebf
feedback: overall update based on feedback
samuael aaed63e
misc issue fix
samuael 98f10ff
update websocket based on multi connection and other wrapper updates
samuael 74fb18a
overall update with unit tests added and endpoints removed
samuael 546e2a5
endpoint functions and unit tests update
samuael d59d69a
update endpoints and types naming
samuael da029aa
nitpicks
samuael 9bd48ad
unit tests update
samuael 9b699e8
overall unit tests update and websocket handlers fix
samuael 7ed1aec
overall update on endpoints, websocket handlers, and testing
samuael 19cf25e
rm comments based on gk's feedback
samuael 7c5a3ef
response declaration and return change, and diverse update
samuael f4b21c0
feedback: apply change requests
samuael 926516b
Merge branch 'poloniex' of https://github.com/samuael/gocryptotrader;…
samuael 99f7534
fix websocket runtime errors
samuael 51fb22c
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 4634584
minor orderbook fix
samuael aa4fd23
improve code coverage and overall code update
samuael 12f1199
shorten error check expression
samuael 7f37b79
types, unit tests, and websocket handlers update
samuael 66402fb
endpoints, websocket handlers, and unit tests update
samuael 2a44fda
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael ba2511e
apply websocket templating with minor fix
samuael 062cfd8
update websocket handlers
samuael 7eb8c75
update unit endpoints, and mock file
samuael aa00f65
mock file update and reduction
samuael 17f7daa
rm HTTPRecording value assign
samuael 4306faa
update wrapper, fix unit text and websocket update
samuael 5855bc1
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 4cc6bbc
config and wrapper endpoints fix and unit tests update
samuael 4697794
suppress misc error
samuael cd20241
revert the last
samuael 26febf6
split spot public and private subscriptions and handlers
samuael 862c57c
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael b1263e4
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael d646b08
minor cleanups
samuael 5cc1700
futures websocket update, added endpoints, updated endpoints and types
samuael b27846f
added and updated endpoint methods and fix websocket issues
samuael 986c637
wrapper loops and error returns update
samuael 91ff592
unit test functions naming updates
samuael 1d57d0c
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael ead03bb
wrapper methods and types update
samuael 380c428
input validation fix and testing
samuael 606f05e
rest endpoints and unit tests fix
samuael 7f6e3b1
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael a9ba4bf
fix ID generation
samuael 00a3ace
updated SubmitOrder parameter validations and update unit tests accor…
samuael a4a5885
change based og gks feedback
samuael 48e1894
actioned gk's feedback comments
samuael 4a0c8f9
based on shazberts feedback: updated futures endpoints and correcspon…
samuael 98b426a
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael b6b6de4
overall wrapper, unit tests, and types marshaling update
samuael 0c10d8b
remove unnecessary code
samuael a669a6c
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael c549c62
update on wrapper request params types
samuael a1fd9c3
rm
samuael b11ed26
update smart orders, live tested, and unit tests update
samuael 7d9ce0b
based on gk's and scott's feedback: wrapper and types update
samuael 91a1b34
types, unmarshalers, wrapper handler update
samuael 645fe34
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 4a213b4
wrapper params fix
samuael ccc8b22
comments, code coverage update, and mock recording
samuael 39d2f9b
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael c19b026
overall types, wrapper functions, and mock records update
samuael 4fc0f8f
types, time handling, ratelimiter,and endpoints update
samuael 380bda7
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 4dd2e47
rate-limiters update
samuael 3ed7e14
uint8 to string
samuael 6f27e04
added missing state order PENDING_CANCEL
samuael f3a1375
added missing state order PENDING_CANCEL
samuael f0f3624
overall update on types, endpoints, wrapper, and rate limiters
samuael 3e5b654
wrapper endpoints input type change
samuael 83eeae7
overall wrapper and unit tests update, and live tests fix
samuael a012e60
Trigger CI
samuael f3838f3
revert linter version
samuael 1282204
poloniex overall update
samuael a35f5b5
Merge branch 'poloniex' of https://github.com/samuael/gocryptotrader …
samuael a2ad436
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 69ab30a
gk and scotts review feedbacks: unit test and wrapper update
samuael 62a39e0
update linter to 2.6.1
samuael 6c0e71c
linter issues resolve
samuael 900a5e5
Poloniex: Proof of Concept resps can contain errors
gbjk 84bc186
trade endpoints response update
samuael c58aaab
rm panic and fix endpoint limit
samuael 1e8f0a8
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 3d20c41
trade endpoints and requester error wrapper and checker update
samuael 0a2b102
update smartorder endpoints and types
samuael ec7dad8
smart orders endpoint and mock data update
samuael de84d08
rename Test name to TestStatusCodeUnmarshal
samuael ec0883d
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 9eb8c25
Proof-of-simplicity
gbjk e7949d7
rn unit test name
samuael 22952d8
updata onceWebsocketOrderbookCache lock in loop
samuael 02712c8
spot websocket order book update and endpoints fix
samuael 71c9ec5
manual update mock file and revert nil result check
samuael 1d6f7c2
update wrapper and websocket handlers
samuael 1a046e2
wrapepr batch order cancellation and minor updates
samuael c02acd4
linter issues fix
samuael c674376
fix linter issue
samuael 02842aa
change v2 currency endpoint limiter
samuael fb6b7da
added poloniex config upgrade
samuael 48e447e
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 2bc3411
minor linter fix
samuael 3b269be
rm legacy url migration from wrapper
samuael f544a7b
move config change to v11 and register
samuael fe993a0
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael c2f9c27
GetOrders feedback
gbjk a088583
getorder update and version upgrade fix
samuael 66e9189
update futures websocket iteration and wrapper handlers
samuael a6f10dc
minor linter fix
samuael e5bd13a
fix race condition and update websocket slice object access
samuael 4deb965
fix linter issue
samuael 7bd5127
rm lock var
samuael c1affb2
change v11 config upgrade from replace to delete
samuael 9021b39
improve v11 config unit test
samuael 673f07c
added test coverage and updated endpoints and types
samuael b284380
update on types, requester, and unit tests
samuael 58a5bd6
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 79cc356
minor linter fix
samuael 1c0a0f6
update type to use currency.Pair and revert order.Type use
samuael c4297ad
minor fixes on websocket data handling
samuael 96a8f5e
websocket subscriptions and handlers update
samuael bbb6a7d
update way of subscribing parallely
samuael 9aac140
reuse manage subscriptions and update subscription handling
samuael d4e2bc1
rm time.Sleep
samuael 77e7c54
gk's nits: minor types and websocket update
samuael 653112d
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael ff51cc1
sams feedbacks: websocket, types, and websocket handlers update
samuael 06063b3
linter issue fix
samuael 05140d7
removed interface check
samuael 9a64ef8
gks feedback: update websocket trade endpoint and minor fixed on wrapper
samuael 36c8ca5
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael aa54838
minot linter fix
samuael 882a3bf
improve unit tests and test coverage, and update on wrapper and mock …
samuael aaa0a4e
add more coverage and unti test update
samuael 41f7c29
rm print stmts
samuael 16cedac
gk and scott's feedback: updated requester functions and others
samuael 767038f
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 4fefe6b
futures type variables, endpoints, and wrapper handlers update
samuael 3abab86
minor fixes on types
samuael fa3c6b0
added boolean type and fixed futures and websocket handler, and mock …
samuael 218298c
remove some non-sense from code
samuael b1a4bf3
resolve websocket response error check from within slice
samuael 6756caf
update to websocket wrapper handlers and minor fix to unit tests
samuael 4b4eaa9
suppress a nillness check
samuael d857f8e
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael c47cab3
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael d50e626
resolve issue with websocket requester
samuael 3869f96
fix minor linter issue
samuael 5bfccaa
linter fix 2
samuael 9c4a22f
update websocekt slice interfaces wrapper handlers
samuael 2433e00
gk and sams feedback: overall update
samuael 2dded56
codespell fix
samuael 2c5f832
sams feedback: futures endpoint functions update
samuael c846b5c
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 97042fd
add new requesters for batched validated order response handling
samuael 29ede04
linter issue fix
samuael 13afe2e
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 56700a8
fix test issue, added missing endpoint, and improve test coverage
samuael c9ae7dc
sam's feedback: update types, and add unit test coverage
samuael cb77233
minor change to smart order unit test
samuael dbb2c21
futures types update
samuael bc2a47f
add candle interval hour_8
samuael d9ab0f8
fix futures mark price candles fields unmarshal sequence
samuael 4b40530
update authenticated requester and update on wrapper and endpoint fun…
samuael b0c052f
fix test issues caused by update on requester
samuael 7181aea
lint
samuael 56b0fc7
sams feedback: types update, increase unit test coverage
samuael 61b8269
sams feedbacks: futures websocket update
samuael 5871357
unit tests improvement and mock file update
samuael 66ff080
update wrapper, endpoints, and unit tests handling
samuael ce3a96a
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 6fa294a
re- add missing comment
samuael 4b10713
minor fix on types
samuael 04de26f
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 410f982
change to types handling
samuael ae59218
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 2c697aa
update webscket handlers, endpoints, and add unit test coverage
samuael 1f1005f
codespell fix
samuael 853afbc
minor unit test fixes
samuael db71bdc
fix live test issues
samuael ad3da1a
comment fix
samuael 852e5ed
rm casting
samuael 73a7337
temporrary fix to GetOrderbook unit test scale value
samuael d46bc99
update mock file, improve wrapper, and added test coverage
samuael 653b518
rm unnecessary comment
samuael 8e92d5f
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 51b8bf8
rn ineffectual assignment
samuael 2943275
fix platform-dependent error
samuael 69bd301
add ticker processor to UpdateTicker
samuael 0350ba4
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael aaa90d1
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael dd1996e
linter fix
samuael 0b2e2f7
error return from DataHandler
samuael aabfe5f
Minor stream data test fix
samuael 60ed0f3
fix live test issue
samuael f11ece6
fix to wrapper balance handling
samuael dd671f2
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 954e9e9
orderbook depth update fix
samuael fe7a7a0
fix sams feedbacks
samuael 605505b
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 95c6f7f
update wrapper handlers, types, and mock data
samuael 0bb055b
fix linter issue
samuael a4c9f35
minor fix to unmarshaler
samuael 5d0a305
minor improvement on unmarshaler unit test
samuael 7ff57ac
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 40a4674
rename filename
samuael c5a71e5
added test coverage and update wrapper handlers
samuael 6c3b824
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael 8dbf649
improve trade order wrapper functions
samuael 0663c2b
fix linter issue
samuael 86a3b66
minor order unit test fix
samuael 252ae90
adrian's feedback: added unit tests, fix nits, update types, and others
samuael 5e821b3
codespell fixes
samuael b19d79c
formatting issue fix
samuael bf81aa4
revert codespell fixes on other exchanges
samuael File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| package v11 | ||
|
|
||
| import ( | ||
| "context" | ||
| "errors" | ||
|
|
||
| "github.com/buger/jsonparser" | ||
| ) | ||
|
|
||
| // Version is an ExchangeVersion to replace deprecated WS and REST endpoints for Poloniex | ||
| type Version struct{} | ||
|
|
||
| // Exchanges returns just Poloniex | ||
| func (v *Version) Exchanges() []string { return []string{"Poloniex"} } | ||
|
|
||
| // UpgradeExchange replaces deprecated WS and REST endpoints | ||
| func (v *Version) UpgradeExchange(_ context.Context, e []byte) ([]byte, error) { | ||
| for _, key := range []string{"WebsocketSpotURL", "RestSpotURL"} { | ||
| url, err := jsonparser.GetString(e, "api", "urlEndpoints", key) | ||
| if err != nil && !errors.Is(err, jsonparser.KeyPathNotFoundError) { | ||
| return e, err | ||
| } | ||
| switch url { | ||
| case "wss://api2.poloniex.com", "https://poloniex.com": | ||
| e = jsonparser.Delete(e, "api", "urlEndpoints", key) | ||
| } | ||
| } | ||
| return e, nil | ||
| } | ||
|
|
||
| // DowngradeExchange is a no-op for v11 | ||
| func (v *Version) DowngradeExchange(_ context.Context, e []byte) ([]byte, error) { | ||
| return e, nil | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| package v11_test | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/stretchr/testify/assert" | ||
| "github.com/stretchr/testify/require" | ||
| v11 "github.com/thrasher-corp/gocryptotrader/config/versions/v11" | ||
| ) | ||
|
|
||
| func TestExchanges(t *testing.T) { | ||
| t.Parallel() | ||
| assert.Equal(t, []string{"Poloniex"}, new(v11.Version).Exchanges()) | ||
| } | ||
|
|
||
| func TestUpgradeExchange(t *testing.T) { | ||
| t.Parallel() | ||
|
|
||
| for _, tt := range []struct { | ||
| in string | ||
| urlType string | ||
| exp string | ||
| }{ | ||
| {"https://poloniex.com", "RestSpotURL", ""}, | ||
| {"https://poloniex.private-proxy.com", "RestSpotURL", `"RestSpotURL": "https://poloniex.private-proxy.com"`}, | ||
| {"wss://api2.poloniex.com", "WebsocketSpotURL", ""}, | ||
| {"wss://poloniex.private-proxy.com", "WebsocketSpotURL", `"WebsocketSpotURL": "wss://poloniex.private-proxy.com"`}, | ||
| } { | ||
| t.Run(tt.in, func(t *testing.T) { | ||
| t.Parallel() | ||
| in := []byte(`{"name":"Poloniex","api":{"urlEndpoints":{"` + tt.urlType + `": "` + tt.in + `"}}}`) | ||
| out, err := new(v11.Version).UpgradeExchange(t.Context(), in) | ||
| require.NoError(t, err) | ||
| exp := `{"name":"Poloniex","api":{"urlEndpoints":{` + tt.exp + `}}}` | ||
| assert.Equal(t, exp, string(out)) | ||
| }) | ||
| } | ||
|
|
||
| in := []byte(`{"name":"Poloniex","api":{}`) | ||
| out, err := new(v11.Version).UpgradeExchange(t.Context(), in) | ||
| require.NoError(t, err, "UpgradeExchange must not error when urlEndpoints is missing") | ||
| assert.Equal(t, string(in), string(out), "UpgradeExchange should return same input and no error when urlEndpoints is missing") | ||
|
|
||
| _, err = new(v11.Version).UpgradeExchange(t.Context(), []byte(`{"name":"Poloniex","api":{"urlEndpoints":{"WebsocketSpotURL": 42}}}`)) | ||
| require.ErrorContains(t, err, "Value is not a string", "UpgradeExchange must error correctly on string value") | ||
| } | ||
|
|
||
| func TestDowngradeExchange(t *testing.T) { | ||
| t.Parallel() | ||
| in := []byte(`{"name":"Poloniex","api":{"urlEndpoints":{"WebsocketSpotURL": 42}}}`) | ||
| out, err := new(v11.Version).DowngradeExchange(t.Context(), in) | ||
| require.NoError(t, err) | ||
| require.Equal(t, string(in), string(out), "DowngradeExchange must not change json") | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2308,31 +2308,36 @@ | |||||
| "delimiter": "_" | ||||||
| }, | ||||||
| "useGlobalFormat": true, | ||||||
| "assetTypes": [ | ||||||
| "spot" | ||||||
| ], | ||||||
| "pairs": { | ||||||
| "spot": { | ||||||
| "assetEnabled": true, | ||||||
| "enabled": "BTC_LTC,BTC_ETH,BTC_DOGE,BTC_DASH,BTC_XRP", | ||||||
| "available": "BTC_SC,BTC_GNT,USDC_LTC,PAX_ETH,USDT_BSVBEAR,BUSD_BNB,USDT_WRX,USDT_IBVOL,USDT_ETH,BTC_ETC,USDC_ETH,BTC_POLY,BTC_ATOM,USDT_ATOM,TRX_STEEM,USDT_NEO,USDT_XRPBULL,USDT_AVA,USDT_DASH,USDT_ZRX,USDT_TRXBEAR,USDT_PAX,DAI_ETH,BTC_NEO,TRX_JST,BTC_FXC,USDT_ETC,USDT_ZEC,BTC_STORJ,USDT_GNT,USDT_QTUM,BTC_FOAM,TRX_BTT,USDT_BCHC,BTC_XFIL,USDC_XMR,TRX_WIN,USDT_SNX,BTC_LEND,USDT_BSVBULL,BTC_DOGE,BTC_REP,USDT_REP,BTC_STRAT,USDT_EOS,BTC_BAT,BTC_BCHABC,USDT_BUSD,BTC_XRP,BTC_ARDR,USDT_LINKBULL,BTC_CHR,USDT_CUSDT,TRX_WRX,USDT_XRP,ETH_ZEC,BTC_KNC,USDT_DOGE,BTC_LPT,USDT_BTT,ETH_COMP,USDC_GRIN,USDC_DASH,USDT_GRIN,USDT_XTZ,BTC_GAS,USDT_DAI,TRX_NEO,USDT_LINKBEAR,TRX_CHR,BTC_MDT,USDT_XMR,BTC_DCR,BTC_CVC,USDT_BNB,BTC_NXT,BTC_LSK,BTC_OMG,BTC_QTUM,BTC_BCHSV,BTC_SNX,BTC_MANA,USDC_EOS,DAI_BTC,BTC_SWFTC,TRX_BNB,BTC_STEEM,USDJ_BTC,USDJ_BTT,USDT_LRC,USDT_BAL,BNB_BTC,USDC_DOGE,BTC_TRX,BTC_XTZ,TRX_XTZ,USDT_MATIC,USDT_BCHBEAR,USDT_SWFTC,BTC_LTC,USDC_XRP,BTC_NMR,TRX_MATIC,USDT_XRPBEAR,BTC_ZEC,BTC_SNT,USDT_SC,USDT_BCHSV,TRX_ETH,BUSD_BTC,BTC_DASH,ETH_BAT,BTC_LOOM,TRX_SNX,ETH_ZRX,USDC_BCHABC,USDC_ETC,USDT_BULL,PAX_BTC,USDJ_TRX,BTC_WRX,BTC_BTS,USDT_LTC,BTC_LINK,USDT_USDJ,TRX_SWFTC,USDT_LINK,TRX_AVA,USDC_USDT,USDT_JST,TRX_FXC,USDT_CHR,USDT_XFIL,BTC_ETHBNT,BTC_LRC,USDT_BAT,USDC_ATOM,USDT_WIN,ETH_EOS,USDT_TRX,TRX_MDT,BTC_AVA,BTC_XEM,USDT_BTC,BTC_EOS,USDT_LSK,BTC_MATIC,USDT_FXC,USDT_STEEM,USDC_BCHSV,USDT_TRXBULL,USDT_EOSBULL,USDT_LEND,ETH_ETC,USDT_MANA,USDT_ETHBULL,USDT_REN,USDT_COMP,BTC_XMR,BTC_ETH,BTC_ZRX,USDC_BTC,TRX_XRP,USDT_ETHBEAR,USDT_BVOL,ETH_BAL,USDT_MDT,BTC_BNT,USDC_ZEC,USDT_BCHABC,TRX_LINK,BTC_MKR,USDT_BCN,USDT_EOSBEAR,BTC_REN,USDT_STR,USDC_STR,USDT_BEAR,USDT_BCHBULL,BTC_STR,USDC_TRX,USDT_MKR" | ||||||
| }, | ||||||
| "futures": { | ||||||
| "assetEnabled": true, | ||||||
| "enabled": "XBT_USDT_PERP,ETH_USDT_PERP,BCH_USDT_PERP", | ||||||
| "available": "BNB_USDT_PERP,TRX_USDT_PERP,LTC_USDT_PERP,APT_USDT_PERP,1000PEPE_USDT_PERP,1000SHIB_USDT_PERP,BTC_USDT_PERP,DOGE_USDT_PERP,AVAX_USDT_PERP,XRP_USDT_PERP,SOL_USDT_PERP,ETH_USDT_PERP,BCH_USDT_PERP" | ||||||
| } | ||||||
| } | ||||||
| }, | ||||||
| "api": { | ||||||
| "authenticatedSupport": false, | ||||||
| "authenticatedWebsocketApiSupport": false, | ||||||
| "endpoints": { | ||||||
| "url": "NON_DEFAULT_HTTP_LINK_TO_EXCHANGE_API", | ||||||
| "urlSecondary": "NON_DEFAULT_HTTP_LINK_TO_EXCHANGE_API", | ||||||
| "websocketURL": "NON_DEFAULT_HTTP_LINK_TO_WEBSOCKET_EXCHANGE_API" | ||||||
| }, | ||||||
| "authenticatedSupport": true, | ||||||
|
||||||
| "authenticatedSupport": true, | |
| "authenticatedSupport": false, |
Outdated
Collaborator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
| "authenticatedWebsocketApiSupport": true, | |
| "authenticatedWebsocketApiSupport": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.