GithubHelp home page GithubHelp logo

marfusios / binance-client-websocket Goto Github PK

View Code? Open in Web Editor NEW
51.0 51.0 31.0 271 KB

๐Ÿ› ๏ธ C# client for Binance websocket API

License: Apache License 2.0

C# 100.00%
api-client binance binance-api bitcoin cryptocurrency dotnet-core exchange websockets

binance-client-websocket's Introduction

Hi there ๐Ÿ‘‹

Let's hack something...

๐Ÿ’ป ๐Ÿ“ˆ โ‚ฟ ๐Ÿ†“ โšช

mk logo bitcoin beer

HitCount ViewCount

binance-client-websocket's People

Contributors

backb0ne avatar jannemandev avatar marfusios avatar vmed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

binance-client-websocket's Issues

Kline Data not populating

Kline data not populating due to the invalid json structure while serialize. Please update with below chnages.

namespace Binance.Client.Websocket.Responses.Kline
{
///


/// The current klines/candlestick
///

public class Klinedata : MessageBase
{
///
/// Kline start time
///

[JsonProperty("k")]
public Kline Kline { get; set; }

}

public class Kline : MessageBase
{
    /// <summary>
    /// Kline start time
    /// </summary>
    [JsonProperty("t")]
    public double StartTime { get; set; }

    /// <summary>
    /// Kline close time
    /// </summary>
    [JsonProperty("T")]
    public double CloseTime { get; set; }

    /// <summary>
    /// Symbol
    /// </summary>
    [JsonProperty("s")]
    public string Symbol { get; set; }

    /// <summary>
    /// Interval
    /// </summary>
    [JsonProperty("i")]
    public string Interval { get; set; }

    /// <summary>
    /// First trade ID
    /// </summary>
    [JsonProperty("f")]
    public double FirstTradeId { get; set; }

    /// <summary>
    /// Last trade ID
    /// </summary>
    [JsonProperty("L")]
    public double LastTradeId { get; set; }

    /// <summary>
    /// Open price
    /// </summary>
    [JsonProperty("o")]
    public double OpenPrice { get; set; }

    /// <summary>
    /// Close price
    /// </summary>
    [JsonProperty("c")]
    public double ClosePrice { get; set; }

    /// <summary>
    /// High price
    /// </summary>
    [JsonProperty("h")]
    public double HighPrice { get; set; }

    /// <summary>
    /// Low price
    /// </summary>
    [JsonProperty("l")]
    public double LowPrice { get; set; }

    /// <summary>
    /// Base asset volume
    /// </summary>
    [JsonProperty("v")]
    public double BaseAssetVolume { get; set; }

    /// <summary>
    /// Number of trades
    /// </summary>
    [JsonProperty("n")]
    public double NumberTrades { get; set; }

    /// <summary>
    /// Is this kline closed?
    /// </summary>
    [JsonProperty("x")]
    public bool IsClose { get; set; }

    /// <summary>
    /// Quote asset volume
    /// </summary>
    [JsonProperty("q")]
    public double QuoteAssetVolume { get; set; }

    /// <summary>
    /// Taker buy base asset volume
    /// </summary>
    [JsonProperty("V")]
    public double TakerBuyBaseAssetVolume { get; set; }

    /// <summary>
    /// Taker buy quote asset volume
    /// </summary>
    [JsonProperty("Q")]
    public double TakerBuyQuoteAssetVolume { get; set; }

    /// <summary>
    /// Ignore
    /// </summary>
    [JsonProperty("B")]
    public double Ignore { get; set; }
}

}

Binanace Authentication

Hello there,
Can we log in to the Binance websocket and listen to orders or positions?
Thanks :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.