Skip to content

Commit cbe39c1

Browse files
authored
Changing OKX order book channel (#778)
* Switching from okex.com to okx.com * Changing OKX order book channel
1 parent fb939fe commit cbe39c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ExchangeSharp/API/Exchanges/OKGroup/ExchangeOKExAPI.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public sealed partial class ExchangeOKExAPI : OKGroupCommon
3030
public override string BaseUrl { get; set; } = "https://www.okex.com/api/v1";
3131
public override string BaseUrlV2 { get; set; } = "https://www.okex.com/v2/spot";
3232
public override string BaseUrlV3 { get; set; } = "https://www.okex.com/api";
33-
public override string BaseUrlWebSocket { get; set; } = "wss://ws.okex.com:8443/ws/v5";
34-
public string BaseUrlV5 { get; set; } = "https://www.okex.com/api/v5";
33+
public override string BaseUrlWebSocket { get; set; } = "wss://ws.okx.com:8443/ws/v5";
34+
public string BaseUrlV5 { get; set; } = "https://www.okx.com/api/v5";
3535
protected override bool IsFuturesAndSwapEnabled { get; } = true;
3636

3737
private ExchangeOKExAPI()
@@ -419,7 +419,7 @@ protected override async Task<IWebSocket> OnGetDeltaOrderBookWebSocketAsync(Acti
419419
return await ConnectWebSocketOkexAsync(
420420
async (_socket) =>
421421
{
422-
marketSymbols = await AddMarketSymbolsToChannel(_socket, "books-l2-tbt", marketSymbols);
422+
marketSymbols = await AddMarketSymbolsToChannel(_socket, "books", marketSymbols);
423423
}, (_socket, symbol, sArray, token) =>
424424
{
425425
ExchangeOrderBook book = token.ParseOrderBookFromJTokenArrays();

0 commit comments

Comments
 (0)