LazyTrader.Binance
1.0.4
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
<PackageReference Include="LazyTrader.Binance" Version="1.0.4" />
paket add LazyTrader.Binance --version 1.0.4
#r "nuget: LazyTrader.Binance, 1.0.4"
// 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
About The Project
This is my solution to integrate Binance API using .NET Core 6.
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
},
"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!
- 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. |
-
- 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.
Binance API integration for .NET Core 6