Bitfinex.Net is a strongly typed client library for accessing the Bitfinex REST and Websocket API.
The library is targeting both .NET Standard 2.0
and .NET Standard 2.1
for optimal compatibility
.NET implementation | Version Support |
---|---|
.NET Core | 2.0 and higher |
.NET Framework | 4.6.1 and higher |
Mono | 5.4 and higher |
Xamarin.iOS | 10.14 and higher |
Xamarin.Android | 8.0 and higher |
UWP | 10.0.16299 and higher |
Unity | 2018.1 and higher |
dotnet add package Bitfinex.Net
Bitfinex.Net is available on GitHub packages. You'll need to add https://nuget.pkg.github.com/JKorf/index.json
as a NuGet package source.
The NuGet package files are added along side the source with the latest GitHub release which can found here.
REST Endpoints
// Get the ETH/USDT ticker via rest request
var restClient = new BitfinexRestClient();
var tickerResult = await restClient.SpotApi.ExchangeData.GetTickerAsync("tETHUST");
var lastPrice = tickerResult.Data.LastPrice;
Websocket streams
// Subscribe to ETH/USDT ticker updates via the websocket API
var socketClient = new BitfinexSocketClient();
var tickerSubscriptionResult = socketClient.SpotApi.SubscribeToTickerUpdatesAsync("tETHUST", (update) =>
{
var lastPrice = update.Data.LastPrice;
});
For information on the clients, dependency injection, response processing and more see the Bitfinex.Net documentation, CryptoExchange.Net documentation, or have a look at the examples here or here.
Bitfinex.Net is based on the CryptoExchange.Net base library. Other exchange API implementations based on the CryptoExchange.Net base library are available and follow the same logic.
CryptoExchange.Net also allows for easy access to different exchange API's.
Exchange | Repository | Nuget |
---|---|---|
Binance | JKorf/Binance.Net | |
BingX | JKorf/BingX.Net | |
Bitget | JKorf/Bitget.Net | |
BitMart | JKorf/BitMart.Net | |
Bybit | JKorf/Bybit.Net | |
Coinbase | JKorf/Coinbase.Net | |
CoinEx | JKorf/CoinEx.Net | |
CoinGecko | JKorf/CoinGecko.Net | |
Crypto.com | JKorf/CryptoCom.Net | |
Gate.io | JKorf/GateIo.Net | |
HTX | JKorf/HTX.Net | |
Kraken | JKorf/Kraken.Net | |
Kucoin | JKorf/Kucoin.Net | |
Mexc | JKorf/Mexc.Net | |
OKX | JKorf/OKX.Net | |
WhiteBit | JKorf/WhiteBit.Net |
A Discord server is available here. Feel free to join for discussion and/or questions around the CryptoExchange.Net and implementation libraries.
API | Supported | Location |
---|---|---|
Rest Public Endpoints | ✓ | restClient.SpotApi.ExchangeData |
Rest Public Pulse Endpoints | X | |
Calculation Endpoints | ✓ | restClient.SpotApi.ExchangeData |
Rest Authenticated Endpoints | ✓ | restClient.SpotApi.Account / restClient.SpotApi.Trading |
Rest Authenticated Pulse Endpoints | X | |
Rest Authenticated Merchant Endpoints | X | |
Websocket Public Channels | ✓ | socketClient.SpotApi |
Websocket Authenticated Channels | ✓ | socketClient.SpotApi |
Websocket Authenticated Inputs | ✓ | socketClient.SpotApi |
Any support is greatly appreciated.
Make a one time donation in a crypto currency of your choice. If you prefer to donate a currency not listed here please contact me.
Btc: bc1q277a5n54s2l2mzlu778ef7lpkwhjhyvghuv8qf
Eth: 0xcb1b63aCF9fef2755eBf4a0506250074496Ad5b7
USDT (TRX) TKigKeJPXZYyMVDgMyXxMf17MWYia92Rjd
Alternatively, sponsor me on Github using Github Sponsors.
Version 7.12.0 - 28 Nov 2024
Version 7.11.0 - 19 Nov 2024
Version 7.10.0 - 06 Nov 2024
Version 7.9.0 - 28 Oct 2024
Version 7.8.2 - 14 Oct 2024
Version 7.8.1 - 08 Oct 2024
Version 7.8.0 - 27 Sep 2024
Version 7.7.0 - 07 Aug 2024
Version 7.6.0 - 27 Jul 2024
Version 7.5.0 - 16 Jul 2024
Version 7.4.3 - 02 Jul 2024
Version 7.4.2 - 26 Jun 2024
Version 7.4.1 - 25 Jun 2024
Version 7.4.0 - 23 Jun 2024
Version 7.3.0 - 11 Jun 2024
Version 7.2.8 - 07 May 2024
Version 7.2.7 - 01 May 2024
Version 7.2.6 - 28 Apr 2024
Version 7.2.5 - 23 Apr 2024
Version 7.2.4 - 18 Apr 2024
Version 7.2.3 - 03 Apr 2024
Version 7.2.2 - 25 Mar 2024
Version 7.2.1 - 24 Mar 2024
Version 7.2.0 - 16 Mar 2024
Version 7.1.0 - 25 Feb 2024
Version 7.0.5 - 03 Dec 2023
Version 7.0.4 - 24 Oct 2023
Version 7.0.3 - 09 Oct 2023
Version 7.0.2 - 21 Sep 2023
Version 7.0.1 - 19 Sep 2023
Version 7.0.0 - 17 Sep 2023
Version 6.0.1 - 25 Aug 2023
Version 6.0.0 - 25 Jun 2023
Version 5.2.0 - 16 Apr 2023
Version 5.1.2 - 18 Mar 2023
Version 5.1.1 - 14 Feb 2023
Version 5.1.0 - 17 Nov 2022
Version 5.0.16 - 25 Sep 2022
Version 5.0.15 - 18 Jul 2022
Version 5.0.14 - 16 Jul 2022
Version 5.0.13 - 10 Jul 2022
Version 5.0.12 - 12 Jun 2022
Version 5.0.11 - 24 May 2022
Version 5.0.10 - 22 May 2022
Version 5.0.9 - 08 May 2022
Version 5.0.8 - 01 May 2022
Version 5.0.7 - 14 Apr 2022
Version 5.0.6 - 14 Mar 2022
Version 5.0.5 - 10 Mar 2022
Version 5.0.4 - 08 Mar 2022
Version 5.0.3 - 01 Mar 2022
Version 5.0.2 - 27 Feb 2022
Version 5.0.1 - 24 Feb 2022
Version 5.0.0 - 18 Feb 2022
Added Github.io page for documentation: https://jkorf.github.io/Bitfinex.Net/
Added unit tests for parsing the returned JSON for each endpoint and subscription
Added AddBitfinex extension method on IServiceCollection for easy dependency injection
Added URL reference to API endpoint documentation for each endpoint
Refactored client structure to be consistent across exchange implementations
Renamed various properties to be consistent across exchange implementations
Cleaned up project structure
Fixed various models
Updated CryptoExchange.Net, see https://github.com/JKorf/CryptoExchange.Net#release-notes
See https://jkorf.github.io/Bitfinex.Net/MigrationGuide.html for additional notes for updating from V4 to V5
Version 4.2.4 - 03 Nov 2021
Version 4.2.3 - 08 Oct 2021
Version 4.2.2 - 06 Oct 2021
Version 4.2.1 - 05 Oct 2021
Version 4.2.0 - 29 Sep 2021
params
to IEnumerable
Version 4.1.2 - 22 Sep 2021
Version 4.1.1 - 21 Sep 2021
Version 4.1.0 - 20 Sep 2021
Version 4.0.5 - 15 Sep 2021
Version 4.0.4 - 02 Sep 2021
Version 4.0.3 - 26 Aug 2021
Version 4.0.2 - 24 Aug 2021
Version 4.0.1 - 13 Aug 2021
Version 4.0.0 - 12 Aug 2021
Version 4.0.0-beta3 - 09 Aug 2021
Version 4.0.0-beta2 - 26 Jul 2021
Version 4.0.0-beta1 - 09 Jul 2021
Version 3.5.0-beta4 - 07 Jun 2021
Version 3.5.0-beta3 - 26 May 2021
Version 3.5.0-beta2 - 06 mei 2021
Version 3.5.0-beta1 - 30 apr 2021