CryptoExchanges.Net

A unified .NET SDK for cryptocurrency exchanges — one typed interface across every exchange, with a read-only MCP server for AI agents.

NuGet License .NET Downloads


Supported Exchanges

Exchange Package
Binance Binance package Binance downloads
Bybit Bybit package Bybit downloads
OKX OKX package OKX downloads
Bitget Bitget package Bitget downloads
Coinbase Coinbase package Coinbase downloads
Kraken Kraken package Kraken downloads
KuCoin KuCoin package KuCoin downloads

REST, spot market data and account — read and write.

Exchange names and logos are trademarks of their respective owners. CryptoExchanges.Net is an independent open-source project and is not affiliated with, endorsed by, or sponsored by any listed exchange.


60-Second Quick Start

Library

dotnet add package CryptoExchanges.Net.Binance
await using var exchange = BinanceExchangeClient.Create(new BinanceOptions
{
    ApiKey    = "your-api-key",
    SecretKey = "your-secret-key",
});

var price = await exchange.MarketData.GetPriceAsync(new Symbol(Asset.Btc, Asset.Usdt));
Console.WriteLine($"BTC/USDT: ${price}");

MCP Server (AI agents)

dotnet tool install -g CryptoExchanges.Net.Mcp
claude mcp add crypto -- crypto-mcp

Your MCP-capable agent can now query live prices, order books, candles, and account balances across all supported exchanges.


MCP Server

CryptoExchanges.Net.Mcp is a read-only Model Context Protocol stdio server. It exposes 12 tools — six market-data tools (no credentials required) and six account tools (read-scoped API keys). All supported exchanges share the same tool vocabulary; no agent-side changes needed when switching exchanges.


Documentation

Doc Description
Getting started Install, credentials, first call
Library usage Full API reference with examples
Streaming WebSocket market-data streams, IStreamClient, auto-reconnect
Architecture Project structure, layers, design principles
Exchanges Per-exchange notes, credentials, supported operations
MCP server MCP tool reference, env vars, error categories
MCP client setup Per-client config (Claude, Cursor, Windsurf, VS Code…)

Building

dotnet build
dotnet test

Requires .NET 10.0 SDK.


License

Apache-2.0 — see LICENSE.


Built by Orodruin Labs.