LazyTrader.Binance 1.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package LazyTrader.Binance --version 1.0.4                
NuGet\Install-Package LazyTrader.Binance -Version 1.0.4                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LazyTrader.Binance" Version="1.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LazyTrader.Binance --version 1.0.4                
#r "nuget: LazyTrader.Binance, 1.0.4"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LazyTrader.Binance as a Cake Addin
#addin nuget:?package=LazyTrader.Binance&version=1.0.4

// Install LazyTrader.Binance as a Cake Tool
#tool nuget:?package=LazyTrader.Binance&version=1.0.4                

Contributors Forks Stargazers Issues License

About The Project

This is my solution to integrate Binance API using .NET Core 6.

Getting Started

Prerequisites

Usage

Just reference this to your project and you will be able to use the Binance API.

Add the following to your appsettings.config:

"Binance": {
    "Key": "binance-api-key",
    "Secret": "binance-api-secret",
    "RecvWindow": 10000
  },
"LazyTrader" : {
    "ThrottleSleepTime": 10000,
    "TradableAssets" : "BTC;ETH;TRX"
  }

And then with the following code:

builder.Services.AddBinance();

You are go to go, for example Spot:

private readonly Spot _spot;

public SpotController(Spot spot)
{
    _spot = spot;
}

[AllowAnonymous, HttpGet("account")]
public async Task<IActionResult> Account()
{
    var result = await _spot.GetAccount();
    return Ok(result);
}

of for Market:

private readonly Market _market;

public MarketController(Market market)
{
    _market = market;
}

[AllowAnonymous, HttpGet("exchangeInfo")]
public async Task<IActionResult> ExchangeInfo(string? symbol, List<string>? symbolsList)
{
    var result = await _market.GetExchangeInfo(symbol, symbolsList);
    return Ok(result);
}

See the open issues for a full list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GNU GPLv3 License. See LICENSE for more information.

Contact

Gonçalo Faria - @TheKathan - gonacfaria@gmail.com

LinkedIn

Project Link: https://github.com/TheKathan/LazyTrader-Binance

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.0 864 8/18/2022
1.0.4 835 7/21/2022

Binance API integration for .NET Core 6