From 97112a7ffce31511edf16e9b635d6db0581fe009 Mon Sep 17 00:00:00 2001 From: Victor Lee Date: Mon, 28 Feb 2022 12:38:59 -0800 Subject: [PATCH] update readme and tests - with new exchanges added during this cycle --- README.md | 49 +++++++++++++---------- tests/ExchangeSharpTests/ExchangeTests.cs | 14 ++++--- 2 files changed, 36 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 18c48d31..59cb13e2 100644 --- a/README.md +++ b/README.md @@ -22,43 +22,48 @@ Feel free to visit the discord channel at https://discord.gg/58ktxXuTVK and chat ### Exchanges The following cryptocurrency exchanges are supported: -(Web socket key: T = tickers, R = trades, B = order book, O = private orders, U = user data) +(Web socket key: T = tickers, R = trades, B = orderbook / delta orderbook, O = private orders, U = user data) | Exchange Name | Public REST | Private REST | Web Socket | Notes | | -------------- | ----------- | ------------ | ---------- | ---------------------------------------- | +| ApolloX | x | x | T R B O U | | Aquanow | wip | x | | -| Binance | x | x | T R B U | -| Binance Jersey | x | x | T R B U | -| Binance.US | x | x | T R B U | -| Binance DEX | | | R | +| Binance | x | x | T R B O U | +| Binance Jersey | x | x | T R B O U | Ceased operations +| Binance.US | x | x | T R B O U | +| Binance DEX | | | R | | Bitbank | x | x | | -| Bitfinex | x | x | T R O | -| Bithumb | x | | | -| BitMEX | x | x | R O | -| Bitstamp | x | x | R | +| Bitfinex | x | x | T R O | +| Bitflyer | | | R | +| Bithumb | x | | R | +| BitMEX | x | x | R O | +| Bitstamp | x | x | R | | Bittrex | x | x | T R | -| BL3P | x | x | R B | Trades stream does not send trade's ids. | +| BL3P | x | x | R B | Trades stream does not send trade's ids. | | Bleutrade | x | x | | | BTSE | x | x | | -| Bybit | x | x | R | Has public method for Websocket Positions -| Coinbase | x | x | T R U | +| Bybit | x | x | R | Has public method for Websocket Positions +| Coinbase | x | x | T R O U | | Coinmate | x | x | | -| Digifinex | x | x | R B | -| FTX | x | x | T | -| gate.io | x | x | | +| Crypto.com | | | R | +| Digifinex | x | x | R B | +| Dydx | | | R | +| FTX | x | x | T R | +| FTX.us | x | x | T R | +| gate.io | x | x | R | | Gemini | x | x | T R B | -| HitBTC | x | x | R | -| Huobi | x | x | R B | -| Kraken | x | x | R | Dark order symbols not supported | +| HitBTC | x | x | R | +| Huobi | x | x | R B | +| Kraken | x | x | R | Dark order symbols not supported | | KuCoin | x | x | T R | -| LBank | x | x | | +| LBank | x | x | R | | Livecoin | x | x | | | NDAX | x | x | T R | -| OKCoin | x | x | R B | +| OKCoin | x | x | R B | | OKEx | x | x | T R B O | | Poloniex | x | x | T R B | | YoBit | x | x | | -| ZB.com | wip | | R | +| ZB.com | wip | | R | The following cryptocurrency services are supported: @@ -66,7 +71,7 @@ The following cryptocurrency services are supported: Exchange constructors are private, to get access to an exchange in code use: -`ExchangeAPI.GetExchangeAPIAsync`. +`ExchangeAPI.GetExchangeAPIAsync<>()`. ### Installing the CLI diff --git a/tests/ExchangeSharpTests/ExchangeTests.cs b/tests/ExchangeSharpTests/ExchangeTests.cs index a74b1151..dbe6ed64 100644 --- a/tests/ExchangeSharpTests/ExchangeTests.cs +++ b/tests/ExchangeSharpTests/ExchangeTests.cs @@ -98,12 +98,15 @@ public async Task GlobalSymbolTest() { try { - if (api is ExchangeUfoDexAPI || api is ExchangeOKExAPI || api is ExchangeHitBTCAPI || api is ExchangeKuCoinAPI || - api is ExchangeOKCoinAPI || api is ExchangeDigifinexAPI || api is ExchangeNDAXAPI || api is ExchangeBL3PAPI || - api is ExchangeBinanceUSAPI || api is ExchangeBinanceJerseyAPI || api is ExchangeBinanceDEXAPI || + if (api is ExchangeUfoDexAPI || api is ExchangeOKExAPI || api is ExchangeHitBTCAPI || + api is ExchangeKuCoinAPI || api is ExchangeOKCoinAPI || api is ExchangeDigifinexAPI || + api is ExchangeNDAXAPI || api is ExchangeBL3PAPI || api is ExchangeBinanceUSAPI || + api is ExchangeBinanceJerseyAPI || api is ExchangeBinanceDEXAPI || api is ExchangeBinanceAPI || api is ExchangeBitMEXAPI || api is ExchangeBTSEAPI || api is ExchangeBybitAPI || api is ExchangeAquanowAPI || api is ExchangeBitfinexAPI || api is ExchangeBittrexAPI || - api is ExchangeFTXAPI || api is ExchangeFTXUSAPI || api is ExchangeGateIoAPI || api is ExchangeCoinmateAPI) + api is ExchangeFTXAPI || api is ExchangeFTXUSAPI || api is ExchangeGateIoAPI || + api is ExchangeCoinmateAPI || api is ExchangeBitflyerApi || api is ExchangeDydxApi || + api is ExchangeCryptoComApi || api is ExchangeApolloXApi) { // WIP continue; @@ -160,6 +163,7 @@ public async Task TradesWebsocketTest() || api is ExchangeBinanceJerseyAPI // ceased operations || api is ExchangeBittrexAPI // uses SignalR || api is ExchangeBL3PAPI // volume too low + || api is ExchangeFTXUSAPI // volume too low. rely on FTX test || api is ExchangeLivecoinAPI // defunct || api is ExchangeOKCoinAPI // volume appears to be too low || api is ExchangeNDAXAPI // volume too low for automated testing @@ -177,7 +181,7 @@ public async Task TradesWebsocketTest() && !(s.ToUpper().Contains("TBTC") || s.ToUpper().Contains("WBTC") || s.ToUpper().Contains("NHBTC") || s.ToUpper().Contains("BTC3L") || s.ToUpper().Contains("USDC") || s.ToUpper().Contains("SUSD") - || s.ToUpper().Contains("BTC-TUSD"))) + || s.ToUpper().Contains("BTC-TUSD") || s.ToUpper().Contains("RENBTC_USDT"))) .FirstOrDefault(); if (testSymbol == null) testSymbol = marketSymbols.First(); bool thisExchangePassed = false;