LazyTrader.Binance
1.2.0
dotnet add package LazyTrader.Binance --version 1.2.0
NuGet\Install-Package LazyTrader.Binance -Version 1.2.0
<PackageReference Include="LazyTrader.Binance" Version="1.2.0" />
paket add LazyTrader.Binance --version 1.2.0
#r "nuget: LazyTrader.Binance, 1.2.0"
// Install LazyTrader.Binance as a Cake Addin #addin nuget:?package=LazyTrader.Binance&version=1.2.0 // Install LazyTrader.Binance as a Cake Tool #tool nuget:?package=LazyTrader.Binance&version=1.2.0
About The Project
Binance API wrapper for .NET Core 6.
Release Notes
1.2.0
- Added support for the Binance NFT endpoints.
1.1.0
- Added support for the Binance Wallet endpoints.
1.0.0
- Initial release
- Added support for the Binance Spot Trade endpoints.
- Added support for the Binance Market Data endpoints.
Getting Started
Prerequisites
- Get a binance api key and secret. Get your own
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
}
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).
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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the GNU GPLv3 License. See LICENSE
for more information.
Contact
Gonçalo Faria - @TheKathan - gonacfaria@gmail.com
Project Link: https://github.com/TheKathan/LazyTrader-Binance
Product | Versions 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. |
-
net6.0
- Microsoft.Extensions.Configuration (>= 6.0.1)
- Microsoft.Extensions.Http.Polly (>= 6.0.7)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.1)
- Polly (>= 7.2.3)
- Polly.Extensions.Http (>= 3.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.