Binance API wrapper using .NET Core
$ dotnet add package LazyTrader.BinanceBinance API wrapper for .NET Core 6.
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
}
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;
}
[HttpGet("account")]
public async Task<IActionResult> Account()
{
var result = await _spot.GetAccount();
return Ok(result);
}
See the open issues for a full list of proposed features (and known issues).
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!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Distributed under the GNU GPLv3 License. See LICENSE for more information.
Gonçalo Faria - @TheKathan - gonacfaria@gmail.com
Project Link: https://github.com/TheKathan/LazyTrader-Binance