JKorf / Binance.Net

A C# .netstandard client library for the Binance REST and Websocket Spot and Futures API focusing on clear usage and models
https://jkorf.github.io/Binance.Net/
MIT License
1.04k stars 429 forks source link

How to get Klines from BTCUSDT Future, not exchange #337

Closed dante1989 closed 4 years ago

dante1989 commented 4 years ago

i'm using this code to get exchange's Klines btcusdt exchange

    Dim clientBinance = New BinanceClient 'API Tài Khoản Binance
    clientBinance.SetApiCredentials(API_Binance1, Secret_Binance1)
    Dim m1d As CallResult(Of IEnumerable(Of BinanceKline))
    m1d = Await clientBinance.GetKlinesAsync(Symbol, TickTimeFrame1d, fromtime, totime)

But, now I want to get future's Klines data instead of exchange. how do i get future data? Thank you so much

JKorf commented 4 years ago

Hi, you'll need to use the futures client, which is separate from the normal client. For futures use the BinanceFuturesClient class.

dante1989 commented 4 years ago

Thank you