https://github.com/morpheums/binance.api.csharp.client
C#.NET client for Binance Exchange API.
https://github.com/morpheums/binance.api.csharp.client
api apiclient binance binance-api cryptocurrency csharp dotnet nuget wrapper
Last synced: 19 days ago
JSON representation
C#.NET client for Binance Exchange API.
- Host: GitHub
- URL: https://github.com/morpheums/binance.api.csharp.client
- Owner: morpheums
- License: mit
- Created: 2017-10-13T22:39:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T19:14:23.000Z (over 2 years ago)
- Last Synced: 2025-03-24T18:19:27.956Z (about 1 month ago)
- Topics: api, apiclient, binance, binance-api, cryptocurrency, csharp, dotnet, nuget, wrapper
- Language: C#
- Homepage:
- Size: 1.58 MB
- Stars: 142
- Watchers: 25
- Forks: 86
- Open Issues: 56
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Binance API Csharp Client 
### C#.NET client for Binance Exchange API.
[]()
[](https://www.nuget.org/packages/Binance.API.Csharp.Client)
[](https://www.nuget.org/packages/Binance.API.Csharp.Client)## Features
- **Very easy** to understand and get started.
- **Complete implementation** of the Binance API and WebSockets.
- Validates transactions using the **[Binance Trading Rules](https://support.binance.com/hc/en-us/articles/115000594711-Trading-Rule)**
- 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](https://www.binance.com/register.html?ref=10200312), 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.*
```c#
var apiClient = new ApiClient("@Your-API-Key", "@Your-API-Secret");
```Create an instance of the **BinanceClient** which will receive the previously created APIClient
```c#
var binanceClient = new BinanceClient(apiClient);
```## Documentation and Examples
- [General Methods](/Documentation/GeneralMethods.md)
- [Market Methods](/Documentation/MarketMethods.md)
- [Account Methods](/Documentation/AccountMethods.md)
- [User Stream Methods](/Documentation/UserStreamMethods.md)
- [WebSocket Methods](/Documentation/WebSocketMethods.md)## License
Binance.API.Csharp.Client is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)## Code of Conduct
Please read and follow our [Code of Conduct](CODE_OF_CONDUCT.md).## Donations
If you find this tool useful, you can show you support with a kind donation:**BTC:** 19cgA4YLfxakSvGyu9isdwBJw11mhCVNAp
**ETH:** 0xf059966c50727c1a67c112360686fbfbb0798cfa