Bitvavo.Net 0.4.0

dotnet add package Bitvavo.Net --version 0.4.0
                    
NuGet\Install-Package Bitvavo.Net -Version 0.4.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Bitvavo.Net" Version="0.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bitvavo.Net" Version="0.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Bitvavo.Net" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Bitvavo.Net --version 0.4.0
                    
#r "nuget: Bitvavo.Net, 0.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Bitvavo.Net@0.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bitvavo.Net&version=0.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Bitvavo.Net&version=0.4.0
                    
Install as a Cake Tool

Bitvavo.Net

NuGet version NuGet downloads License

The NuGet badges show "not found" until the first package publish — that is expected for this pre-release.

A high-performance .NET client library for the Bitvavo REST and WebSocket APIs, built on the CryptoExchange.Net base library.

This package is a community contribution, intended for adoption into the JKorf exchange-clients ecosystem alongside Binance.Net, Kraken.Net, Bybit.Net, etc. — same API patterns, same WebCallResult<T> discipline, same options shape, same DI extension surface.

The package targets net8.0;net9.0;net10.0 and is built on CryptoExchange.Net 11.1.1.

For information on the clients, dependency injection, response processing, and the shared interfaces, see the CryptoExchange.Net documentation.

Status

v0.3.0-preview:

  • ✅ Public REST: GetMarketsAsync, GetKlinesAsync, GetServerTimeAsync, GetAssetsAsync, GetTickerPricesAsync, GetTickerBookAsync, GetTicker24hAsync, GetOrderBookAsync, GetPublicTradesAsync
  • ✅ Public WebSocket: candles + trades subscriptions
  • ✅ Signed REST (HMAC-SHA256) — Account (info / balances / fees), Trading (place / update / get / cancel / batch-cancel / open / history / fills), Funding (deposit address + history, withdrawal history, withdraw POST)
  • ✅ Authenticated WebSocket: private account channel — subscribe to order-state + fill events

Supported features

Spot REST

API Supported Location
Public market data restClient.SpotApi.ExchangeData
Account restClient.SpotApi.Account
Trading restClient.SpotApi.Trading
Funding restClient.SpotApi.Account
Report (MiCA) restClient.SpotApi.Report
Institutional / subaccounts restClient.SpotApi.Institutional

Spot WebSocket

API Supported Location
Public streams socketClient.SpotApi.ExchangeData
Private account channel socketClient.SpotApi.Account

CryptoExchange.Net Shared interfaces

API Supported Location
Shared REST interfaces restClient.SpotApi.SharedClient
Shared socket interfaces socketClient.SpotApi.SharedClient

The package implements the full CryptoExchange.Net Shared-interface layer — 14 REST shared interfaces and 4 socket shared interfaces — so Bitvavo can be driven through the same exchange-agnostic abstractions as every other CryptoExchange.Net client.

Install

dotnet add package Bitvavo.Net --prerelease

Quick start — REST

using Bitvavo.Net.Clients;

using var client = new BitvavoRestClient();

var markets = await client.SpotApi.ExchangeData.GetMarketsAsync();
if (!markets.Success)
{
    Console.WriteLine($"Failed: {markets.Error}");
    return;
}

foreach (var m in markets.Data.Take(5))
{
    Console.WriteLine($"{m.Market}  status={m.Status}  pricePrecision={m.PricePrecision}");
}

Output:

ETH-EUR  status=trading  pricePrecision=5
BTC-EUR  status=trading  pricePrecision=2
...

Quick start — WebSocket

using var socketClient = new BitvavoSocketClient();
var sub = await socketClient.SpotApi.ExchangeData.SubscribeToKlineUpdatesAsync(
    "ETH-EUR", KlineInterval.OneMinute,
    update => Console.WriteLine($"{update.Data.Market}  close={update.Data.ClosePrice}"));

Quick start — signed REST

using Bitvavo.Net;
using Bitvavo.Net.Clients;
using Bitvavo.Net.Enums;
using Bitvavo.Net.Objects.Models.Spot;

using var client = new BitvavoRestClient(opts =>
    opts.ApiCredentials = new BitvavoCredentials(apiKey, apiSecret));

// Account info + balances
var info = await client.SpotApi.Account.GetAccountInfoAsync();
var balances = await client.SpotApi.Account.GetBalancesAsync();

// Place a limit buy order
var order = await client.SpotApi.Trading.PlaceOrderAsync(
    new BitvavoPlaceOrderRequest(
        "ETH-EUR", OrderSide.Buy, OrderType.Limit, OperatorId: 1,
        Amount: 0.5m, Price: 1500m, TimeInForce: TimeInForce.GoodTillCanceled));

Quick start — authenticated WebSocket

using var client = new BitvavoSocketClient(opts =>
    opts.ApiCredentials = new BitvavoCredentials(apiKey, apiSecret));

var sub = await client.SpotApi.Account.SubscribeToOrderUpdatesAsync(
    new[] { "ETH-EUR" },
    evt => Console.WriteLine($"order {evt.Data.OrderId} → {evt.Data.Status}"));

The framework runs Bitvavo's HMAC-SHA256 auth handshake automatically before dispatching the first authenticated subscription on the connection.

Smoke testing

The BitvavoSmoke exe (in Application/BitvavoSmoke) exercises every layer of the package out-of-the-box:

dotnet run --project Application/BitvavoSmoke                    # REST (markets + candles)
dotnet run --project Application/BitvavoSmoke -- --socket        # + public WebSocket subs
dotnet run --project Application/BitvavoSmoke -- --signed        # + signed REST: account / balances / order history
dotnet run --project Application/BitvavoSmoke -- --signed-ws     # + signed WebSocket: ETH-EUR private order/fill stream

The --signed and --signed-ws paths expect BITVAVO_API_KEY + BITVAVO_API_SECRET environment variables. The API key only needs the view capability for the smoke; trading + withdraw scopes are NOT exercised. Never check credentials into git.

Conventions

This library follows JKorf's exchange-client conventions exactly:

  • Result type: every public method returns Task<WebCallResult<T>> (or Task<CallResult<UpdateSubscription>> for sockets) — never throws on protocol errors.
  • Options: configure via new BitvavoRestClient(opts => { opts.RequestTimeout = ...; }).
  • DI: register via services.AddBitvavo() — pooled HttpClient, transient REST client, singleton WebSocket client. Optional Action<BitvavoRestOptions> / Action<BitvavoSocketOptions> configurators.
  • Naming: Bitvavo*RestClient*SpotApi*ExchangeData/Trading/Account mirrors Binance.Net etc.

Bitvavo API

Building

dotnet build Bitvavo.Net.csproj
dotnet test  Bitvavo.Net.Tests

Contributing

Issues + PRs welcome. The eventual home for this package is JKorf/Bitvavo.Net — once the read-only surface is feature-complete and battle-tested, it will be submitted for adoption into JKorf's organisation.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.0 96 5/23/2026