• Stars
    star
    139
  • Rank 254,834 (Top 6 %)
  • Language
    C#
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

C#.NET client for Binance Exchange API.

Binance API Csharp Client Icon

C#.NET client for Binance Exchange API.

GitHub last commit NuGet NuGet

Features

  • Very easy to understand and get started.
  • Complete implementation of the Binance API and WebSockets.
  • Validates transactions using the Binance Trading Rules
  • API results deserialized to concrete objects for ease of usage.
  • Includes a ready to go test project with all possible API calls, just provide your API Key and Secret.

Installation

Nuget Package Manager

PM> Install-Package Binance.API.Csharp.Client

.NET CLI

dotnet add package Binance.API.Csharp.Client

Getting Started

In order to use signed methods you need to create a Binance account, if you already have one, go to your account and create a new API private key.

Create an instance of the APIClient which receive the following parameters:

  • ApiKey - Key used to authenticate within the API.
  • ApiSecret - API secret used for signed API calls.
  • ApiUrl (Optional) - Base URL of the API.
  • WebSocketEndpoint (Optional) - URL of the WebSockets.
    var apiClient = new ApiClient("@Your-API-Key", "@Your-API-Secret");

Create an instance of the BinanceClient which will receive the previously created APIClient

    var binanceClient = new BinanceClient(apiClient);

Documentation and Examples

License

Binance.API.Csharp.Client is open-sourced software licensed under the MIT license

Code of Conduct

Please read and follow our Code of Conduct.

Donations

If you find this tool useful, you can show you support with a kind donation:

BTC: 19cgA4YLfxakSvGyu9isdwBJw11mhCVNAp

ETH: 0xf059966c50727c1a67c112360686fbfbb0798cfa