Skip to content

Changing OKX order book channel #778

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

Merged
merged 2 commits into from
May 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ExchangeSharp/API/Exchanges/OKGroup/ExchangeOKExAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public sealed partial class ExchangeOKExAPI : OKGroupCommon
public override string BaseUrl { get; set; } = "https://www.okex.com/api/v1";
public override string BaseUrlV2 { get; set; } = "https://www.okex.com/v2/spot";
public override string BaseUrlV3 { get; set; } = "https://www.okex.com/api";
public override string BaseUrlWebSocket { get; set; } = "wss://ws.okex.com:8443/ws/v5";
public string BaseUrlV5 { get; set; } = "https://www.okex.com/api/v5";
public override string BaseUrlWebSocket { get; set; } = "wss://ws.okx.com:8443/ws/v5";
public string BaseUrlV5 { get; set; } = "https://www.okx.com/api/v5";
protected override bool IsFuturesAndSwapEnabled { get; } = true;

private ExchangeOKExAPI()
Expand Down Expand Up @@ -419,7 +419,7 @@ protected override async Task<IWebSocket> OnGetDeltaOrderBookWebSocketAsync(Acti
return await ConnectWebSocketOkexAsync(
async (_socket) =>
{
marketSymbols = await AddMarketSymbolsToChannel(_socket, "books-l2-tbt", marketSymbols);
marketSymbols = await AddMarketSymbolsToChannel(_socket, "books", marketSymbols);
}, (_socket, symbol, sArray, token) =>
{
ExchangeOrderBook book = token.ParseOrderBookFromJTokenArrays();
Expand Down