-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Open
Labels
Description
Operating System
Windows 11
Programming Language
C#
CCXT Version
4.5.12
Description
upbit fails to watch pairs due to unsupported compression method.
Here's a console application to reproduce.
using ccxt;
string exchangeName = "ccxt.pro.upbit";
List<string> symbols = ["BTC/USDT", "ETH/USDT"];
List<Task> tasks = [];
Console.WriteLine($"{exchangeName} test");
var exchange = Exchange.DynamicallyCreateInstance(exchangeName);
Console.WriteLine($"{exchangeName} initialized");
var marketsLoaded = await exchange.loadMarkets(true).ConfigureAwait(false);
Dictionary<string, object> dict = marketsLoaded as Dictionary<string, object>;
exchange.verbose = true;
foreach (KeyValuePair<string, object> market in dict)
{
var mi = new MarketInterface(market.Value);
if(mi.active.Equals(true) && symbols.Contains(market.Key))
{
Console.WriteLine($"{market.Key} is active, watching");
tasks.Add(WatchPair(exchange, market.Key));
}
}
async Task WatchPair(Exchange exchange, string market)
{
while (true)
{
try
{
var trades = await exchange.WatchTrades(market).ConfigureAwait(false);
Console.WriteLine(trades.Count);
}
catch (Exception ex)
{
Console.WriteLine($"Error watching {market} on {exchangeName}: {ex.Message}");
}
}
}
await Task.WhenAll(tasks).ConfigureAwait(false);
Output with verbose = true
ccxt.pro.upbit test
ccxt.pro.upbit initialized
ETH/USDT is active, watching
BTC/USDT is active, watching
WebSocket connected to wss://api.upbit.com/websocket/v1
Sending message: [{"ticket":"4cf446ef-d312-48b8-a601-f574db2c28aa"},{"type":"trade","codes":["USDT-ETH","USDT-BTC"]}]
Sending message: [{"ticket":"466cac2f-0d45-4794-9dbb-c1fa880b08b8"},{"type":"trade","codes":["USDT-ETH"]}]
On binary message: System.Net.WebSockets.WebSocketReceiveResult
Receiving error: The archive entry was compressed using an unsupported compression method.
Error watching ETH/USDT on ccxt.pro.upbit: One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
Error watching BTC/USDT on ccxt.pro.upbit: One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
WebSocket connected to wss://api.upbit.com/websocket/v1
Sending message: [{"ticket":"18dc607d-efba-4917-8d93-e645530c2cb1"},{"type":"trade","codes":["USDT-ETH","USDT-BTC"]}]
Sending message: [{"ticket":"3db40324-c2ea-4ad2-b048-151301a91c08"},{"type":"trade","codes":["USDT-ETH","USDT-BTC"]}]
On binary message: System.Net.WebSockets.WebSocketReceiveResult
Receiving error: The archive entry was compressed using an unsupported compression method.
Error watching BTC/USDT on ccxt.pro.upbit: One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
Error watching ETH/USDT on ccxt.pro.upbit: One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
WebSocket connected to wss://api.upbit.com/websocket/v1
Sending message: [{"ticket":"f09a51a9-09e0-4204-bb5b-537615f0d8fd"},{"type":"trade","codes":["USDT-ETH","USDT-BTC"]}]
Sending message: [{"ticket":"02da5600-5315-4638-b960-5a2b2013b269"},{"type":"trade","codes":["USDT-ETH","USDT-BTC"]}]
On binary message: System.Net.WebSockets.WebSocketReceiveResult
Receiving error: The archive entry was compressed using an unsupported compression method.
Error watching BTC/USDT on ccxt.pro.upbit: One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
Error watching ETH/USDT on ccxt.pro.upbit: One or more errors occurred. (The archive entry was compressed using an unsupported compression method.)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status