You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a sub-account to be linked to my main account.
I created API Key and Secret Key for my sub-account.
I wanted to listen to socket using Bybit.Net library.
But socket listen didn't work. By the way, I am using -> "Unified Trading" account for Sub-Account.
NOTE: Socket listening for my main account works successfully, subject to the condition I specified in issiue #116.
Notworking Code:
var socketClient = new BybitSocketClient(new BybitSocketClientOptions
{
ApiCredentials = new ApiCredentials(_appSettings.ExchangeSettings.ApiKey, _appSettings.ExchangeSettings.SecretKey)
});
await socketClient.SpotStreamsV2.SubscribeToAccountUpdatesAsync(
accountUpdate =>
{
if (accountUpdate is not null)
{
}
}, orderUpdate =>
{
if (orderUpdate is not null)
{
}
}, stopOrderUpdate =>
{
if (stopOrderUpdate is not null)
{
}
}, tradeUpdate =>
{
if (tradeUpdate is not null)
{
}
}, stoppingToken);
Notworking Code:
var socketClient = new BybitSocketClient(new BybitSocketClientOptions
{
ApiCredentials = new ApiCredentials(_appSettings.ExchangeSettings.ApiKey, _appSettings.ExchangeSettings.SecretKey)
});
await socketClient.SpotStreamsV3.SubscribeToAccountUpdatesAsync(data =>
{
if (data is not null)
{
}
}, stoppingToken);
Notworking Code:
var socketClient = new BybitSocketClient(new BybitSocketClientOptions
{
ApiCredentials = new ApiCredentials(_appSettings.ExchangeSettings.ApiKey, _appSettings.ExchangeSettings.SecretKey)
});
await socketClient.SpotStreamsV3.SubscribeToUserOrdersUpdatesAsync(data =>
{
if (data is not null)
{
}
}, stoppingToken);
The text was updated successfully, but these errors were encountered:
Hello,
I am using Bybit.Net v1.5.2.
I created a sub-account to be linked to my main account.
I created API Key and Secret Key for my sub-account.
I wanted to listen to socket using Bybit.Net library.
But socket listen didn't work. By the way, I am using -> "Unified Trading" account for Sub-Account.
NOTE: Socket listening for my main account works successfully, subject to the condition I specified in issiue #116.
Notworking Code:
Notworking Code:
Notworking Code:
The text was updated successfully, but these errors were encountered: