Skip to content

Commit

Permalink
update readme and tests (#750)
Browse files Browse the repository at this point in the history
- with new exchanges added during this cycle
  • Loading branch information
vslee authored Feb 28, 2022
1 parent f22271c commit f0f9b20
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 27 deletions.
49 changes: 27 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,51 +22,56 @@ 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:

- Cryptowatch (partial)

Exchange constructors are private, to get access to an exchange in code use:

`ExchangeAPI.GetExchangeAPIAsync`.
`ExchangeAPI.GetExchangeAPIAsync<>()`.

### Installing the CLI

Expand Down
14 changes: 9 additions & 5 deletions tests/ExchangeSharpTests/ExchangeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit f0f9b20

Please sign in to comment.