-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
UsdFuturesApi.SubscribeToUserDataUpdatesAsync #1382
Comments
Hi, I don't immediately see anything wrong. You should probably check |
i tried to push the |
I had to grab the key from the BinanceRestClient var client2 = new BinanceRestClient(options => this worked for me. |
Hello Everyone,
can you check if i'm missing something on subscribe user data, i can see the subscrition live, but do not get any event:
`
var startOkay = await _binanceSocketClient.SpotApi.Account.StartUserStreamAsync();
var key = startOkay.Data.Result;
var OrderSubscriptionResult = await _binanceSocketClient.UsdFuturesApi.SubscribeToUserDataUpdatesAsync(key,
onLeverageUpdate: (data) =>
{
Console.WriteLine("onLeverageUpdate");
},
onMarginUpdate: (data) =>
{
Console.WriteLine(data.OriginalData);
},
onAccountUpdate: (data) =>
{
Console.WriteLine(data.OriginalData);
},
onOrderUpdate: (data) =>
{
Console.WriteLine(data.OriginalData);
},
onListenKeyExpired: (data) =>
{
Console.WriteLine(data.OriginalData);
},
onStrategyUpdate: (data) =>
{
Console.WriteLine(data.OriginalData);
},
onGridUpdate: (data) =>
{
Console.WriteLine(data.OriginalData);
},
onConditionalOrderTriggerRejectUpdate: (data) =>
{
Console.WriteLine(data.OriginalData);
}
);
//My DI
builder.Services.AddBinance(restOptions => {
restOptions.Environment = BinanceEnvironment.Testnet;
restOptions.ApiCredentials = new ApiCredentials("MyKey", "MySecret");
},
socketOptions => {
socketOptions.Environment = BinanceEnvironment.Testnet;
socketOptions.ApiCredentials = new ApiCredentials("MyKey", "MySecret");
});`
The text was updated successfully, but these errors were encountered: