Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Lightweight connector for integration with Binance API
| Date | Stars |
|---|---|
| 2026-07-24 | 258 |
| 2026-07-25 | 258 |
| 2026-07-28 | 258 |
| 2026-07-30 | 258 |
| 2026-08-25 | 259 |
| 2026-08-26 | 260 |
| 2026-09-15 | 261 |
| 2026-09-17 | 260 |
| 2026-09-18 | 260 |
| 2026-09-20 | 260 |
Today
— stars today
This week
— stars this week
This month
+2 stars this month
Momentum
0.0
growth rate 0.00%/day
# Binance Public API Connector DotNET
[![[Nuget]](https://img.shields.io/nuget/v/Binance.Spot)](https://www.nuget.org/packages/Binance.Spot)
[](https://opensource.org/licenses/MIT)
This is a lightweight library that works as a connector to [Binance public API](https://github.com/binance/binance-spot-api-docs)
- Supported APIs:
- `/api/*`
- `/sapi/*`
- Spot WebSocket Market Stream
- Spot User Data Stream
- Spot WebSocket API
- Test cases and examples
- Customizable base URL, request timeout and HTTP proxy
- Response Metadata
## Installation
```bash
dotnet add package Binance.Spot
```
## RESTful APIs
Usage example
```csharp
using System;
using System.Threading.Tasks;
using Binance.Spot;
class Program
{
static async Task Main(string[] args)
{
Market market = new Market();
string serverTime = await market.CheckServerTime();
Console.WriteLine(serverTime);
}
}
```
Please find `Examples` folder to check for more endpoints.
## WebSocket Stream
Usage Example
```csharp
using System;
using System.Threading;
using System.Threading.Tasks;
using Binance.Spot;
class Program
{
static async Task Main(string[] args)
{
var websocket = new MarketDataWebSocket("btcusdt@aggTrade");
websocket.OnMessageReceived(
(data) =>
{
Console.WriteLine(data);
return Task.CompletedTask;
}, CancellationToken.None);
await websocket.ConnectAsync(CancellationToken.None);
}
}
```
More websocket examples are available in the `Examples` folder
## WebSocket API
Usage Example
```csharp
using System.Threading;
using System.Threading.Tasks;
using Binance.Common;
using Binance.Spot;
public class NewOrder_Example
{
public static async Task Main(string[] args)
{
var websocket = new WebSocketApi("wss://ws-api.testnet.binance.vision/ws-api/v3", "apiKey", new BinanceHmac("apiSecret"));
websocket.OnMessageReceived(
async (data) =>
{
Console.WriteLine(data);
await Task.CompletedTask;
}, CancellationToken.None);
await websocket.ConnectAsync(CancellationToken.None);
await websocket.AccountTrade.NewOrderAsync(symbol: "BNBUSDT", side: Models.Side.BUY, type: Models.OrderType.LIMIT, timeInForce: Models.TimeInForce.GTC, price: 300, quantity: 1, cancellationToken: CancellationToken.None);
await Task.Delay(5000);
Console.WriteLine("Disconnect with WebSocket API Server");
await websocket.DisconnectAsync(CancellationToken.None);
}
}
```
- The `requestId` param is optional. If not sent, it defaults to a randomly created `GUID` (Globally Unique Identifier).
- The `cancellationToken` is optional. If not sent, it defaults to `CancellationToken.None`.
More websocket API examples are available in the `Examples` folder
## Authentication - RESTful APIs
For API endpoints that requires signature, new authentication interfaces are introduced to generate the signature since V2.
```csharp
// HMAC signature
new SpotAccountTrade(httpClient, new BinanceHmac("apiSecret"), apiKey: "apiKey")
// RSA signature
string privateKey = File.ReadAllText("/Users/john/ssl/PrivateKey.pem");
new SpotAccountTrade(httpClient, new BinanceRsa(privateKey), apiKey: "apiKey")
// Encrypted RSA signature
new SpotAccountTrade(httpClient, new BinanceRsa(privateKey, "thePrivateKeyPassword"), apiKey: "apiKey")
```
For V1.x, it's required to pass `apiKey` and `apiSecret` directly.
```csharp
new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret)
```
For more details, please find the example from the endpoints `/api/v3/account` in file `AccountInformation_Example`.
## Authentication - WebSocket API
```csharp
// HMAC signature
new WebSocketApi(apiKey: "apiKey", signatureService: new BinanceHmac("apiSecret"));
// RSA signature
string privateKey = File.ReadAllTeExcerpt of 8,455 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:b6b53136b162aec5, name:connector, desc:connector, readme:connector
matched fp:b6b53136b162aec5, topic:trading