Closed TarrahArshad closed 4 years ago
Hi. You can download the alpha version Install-Package Binance.Net -Version 5.1.0-alpha7
i installed but i can't find mewthod for subscripton inwebsocket for future
GetFuturesAccountBalance i can't find sample or document for this or other method
var Account = await Ws.SubscribeToUserDataUpdatesAsync(listenKey,
Balance =>
{
},
Position =>
{
},
Order =>
{
},
ListenKeyExpired =>
{
}).ConfigureAwait(false);
The futures implementation is still in alpha release, so there are bound to be some things which aren't complete/not documented or just broken. If you have any questions or remarks just ask.
what is type of WS in ur code?
var Account = await Ws.SubscribeToUserDataUpdatesAsync(listenKey, Balance => { }, Position => { }, Order => { }, ListenKeyExpired => { }).ConfigureAwait(false);
type of Ws ?
var Account = await Ws.SubscribeToUserDataUpdatesAsync(listenKey, Balance => { }, Position => { }, Order => { }, ListenKeyExpired => { }).ConfigureAwait(false);
what is listenKey ?
BinanceFuturesSocketClient Ws = new BinanceFuturesSocketClient();
BinanceFuturesClient Client = new BinanceFuturesClient();
Client.SetApiCredentials(ApiKey, SecretKey);
Ws.SetApiCredentials(ApiKey, SecretKey);
var listenKey = await Client.StartUserStreamAsync().ConfigureAwait(false);
var Account = await Ws.SubscribeToUserDataUpdatesAsync(listenKey,
Balance =>
{
},
Position =>
{
},
Order =>
{
},
ListenKeyExpired =>
{
}).ConfigureAwait(false);
[image: image.png] again error
On Tue, Mar 17, 2020 at 3:04 AM Mykyta Kochetkov notifications@github.com wrote:
BinanceFuturesSocketClient Ws = new BinanceFuturesSocketClient();BinanceFuturesClient Client = new BinanceFuturesClient(); Client.SetApiCredentials(ApiKey, SecretKey);Ws.SetApiCredentials(ApiKey, SecretKey); var listenKey = await Client.StartUserStreamAsync().ConfigureAwait(false); var Account = await Ws.SubscribeToUserDataUpdatesAsync(listenKey, Balance => {
}, Position => { }, Order => { }, ListenKeyExpired => { }).ConfigureAwait(false);
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JKorf/Binance.Net/issues/291#issuecomment-599804479, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRXVHIMH4SGL6VQ4PO4U5LRH2ZO3ANCNFSM4LMAIXQQ .
listenKey.Data
[image: image.png]
On Mon, Mar 16, 2020 at 9:16 PM Jan Korf notifications@github.com wrote:
The futures implementation is still in alpha release, so there are bound to be some things which aren't complete/not documented or just broken. If you have any questions or remarks just ask.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JKorf/Binance.Net/issues/291#issuecomment-599674210, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRXVHM5XEOP72UKECGSQYLRHZQXZANCNFSM4LMAIXQQ .
now code work without error but i have error in
var bf = Client.GetFuturesAccountBalance();
signatuyre erroir
Checked on the testnet
Client.GetFuturesAccountBalance();
- working
but i'm on mainnet
it doesn't matter. what version of alpha do you use? and what error does it give you
alpha version Install-Package Binance.Net -Version 5.1.0-alpha7
it doesn't matter. what version of alpha do you use? and what error does it give you
Hi. You can download the alpha version Install-Package Binance.Net -Version 5.1.0-alpha7
I use it
I use it
why erro ?
show me your error
show me your error
show me your error
http://snap.ashampoo.com/YTPCBQLi5jeoxmFrXVEtPkvsqtP4gCIaWyCYJOBhXgvqs3clRh9cRuUCif9OHHO0
check your secret key
check your secret key
its correct on sport wallet work fine but oin future not work and i checked future feature checked
for spot and futures, do you use different keys?
for spot and futures, do you use different keys?
no i use same
separate keys are created for futures
separate keys are created for futures
where i create ? i use mainnet no test
http://snap.ashampoo.com/8X5vXbSwNcUiDctCxQoFLt1hlMNl5Eh35erUFfmthc3lepN4A5cMq6T3KChHhOeE
see just i ckecked future but not work
Checked on the
testnet
Client.GetFuturesAccountBalance();
- working
what is testnet how to i create testnet api and how to set testnet ?
public BinanceFuturesClient Client = new BinanceFuturesClient(new BinanceFuturesClientOptions("https://testnet.binancefuture.com")
{
LogVerbosity = LogVerbosity.Debug,
LogWriters = new List<TextWriter> { Console.Out }
});
public BinanceFuturesClient Client = new BinanceFuturesClient(new BinanceFuturesClientOptions("https://testnet.binancefuture.com") { LogVerbosity = LogVerbosity.Debug, LogWriters = new List<TextWriter> { Console.Out } });
where i can crate testnetapi ? an what is mainnet address ?
solved now work fine
on mainnet code work fine but in testnet not work show invalid api. i not found api area for testaccount u can help me?
your code not work on testnet i have error can't continue
One key for spot and futures, and another for testnet
One key for spot and futures, and another for testnet
where i can crate api key for testnet ?
now i connected and work fine but event of order and balance and position after updates not handle
var Account = await Ws.SubscribeToUserDataUpdatesAsync(listenKey.Data,
Balance =>
{
// label1.Text = Balance.WalletBalance.ToString();
},
Position =>
{
grvPosition.DataSource = Position;
},
Order =>
{
grvPosition.DataSource = Order;
},
ListenKeyExpired =>
{
}).ConfigureAwait(false);
year, error on JsonProperty send PR #293 https://github.com/JKorf/Binance.Net/pull/293/commits/4889ebd0237fbf00f21e3febcac1129642bc94e2
year, error on JsonProperty send PR #293 4889ebd
but nothing show error . code do not have a error
You have 2 options
You have 2 options
- Wait for @JKorf to add my PR
- Use my fork to test the update now
how to test ur fork ? update ?
download and Compile Binance.Net
from my account
download and Compile
Binance.Net
from my account
download or update byt nuget ?
No, without nuget, just as a project
No, without nuget, just as a project
but i need use my current project how to add to my project i never before use that
I've pushed alpha8 version to nuget, should be available in a few minutes
i need balance and position and order websocket subscription and price also