Skip to content

OrodruinLabs/CryptoExchanges.Net

Repository files navigation

CryptoExchanges.Net — one typed .NET interface across every exchange, with a read-only MCP server for AI agents

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 Status Package
Binance ✅ Supported Binance package Binance downloads
Bybit ✅ Supported Bybit package Bybit downloads
OKX ✅ Supported OKX package OKX downloads
Bitget ✅ Supported Bitget package Bitget downloads
Coinbase 🕓 Coming soon
Kraken 🕓 Coming soon
KuCoin ✅ Supported 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.

About

A unified .NET 10 SDK for cryptocurrency exchanges — one typed interface across Binance, Bybit, OKX & Bitget, with a read-only MCP server for AI agents.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages