Bitfinex.Net 7.2.4

dotnet add package Bitfinex.Net --version 7.2.4
NuGet\Install-Package Bitfinex.Net -Version 7.2.4
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="Bitfinex.Net" Version="7.2.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Bitfinex.Net --version 7.2.4
#r "nuget: Bitfinex.Net, 7.2.4"
#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.
// Install Bitfinex.Net as a Cake Addin
#addin nuget:?package=Bitfinex.Net&version=7.2.4

// Install Bitfinex.Net as a Cake Tool
#tool nuget:?package=Bitfinex.Net&version=7.2.4

.Bitfinex.Net Bitfinex.Net

.NET License

Bitfinex.Net is a strongly typed client library for accessing the Bitfinex REST and Websocket API. All data is mapped to readable models and enum values. Additional features include an implementation for maintaining a client side order book, easy integration with other exchange client libraries and more.

Supported Frameworks

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

Get the library

Nuget version Nuget downloads

dotnet add package Bitfinex.Net

How to use

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.

CryptoExchange.Net

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 Nuget version
BingX JKorf/BingX.Net Nuget version
Bitget JKorf/Bitget.Net Nuget version
Bybit JKorf/Bybit.Net Nuget version
CoinEx JKorf/CoinEx.Net Nuget version
CoinGecko JKorf/CoinGecko.Net Nuget version
Huobi/HTX JKorf/Huobi.Net Nuget version
Kraken JKorf/Kraken.Net Nuget version
Kucoin JKorf/Kucoin.Net Nuget version
Mexc JKorf/Mexc.Net Nuget version
OKX JKorf/OKX.Net Nuget version

Discord

Nuget version
A Discord server is available here. Feel free to join for discussion and/or questions around the CryptoExchange.Net and implementation libraries.

Supported functionality

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

Support the project

I develop and maintain this package on my own for free in my spare time, 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.

Release notes

  • Version 7.2.4 - 18 Apr 2024

  • Version 7.2.3 - 03 Apr 2024

    • Updated string comparison for improved performance
    • Removed pre-send symbol validation
  • Version 7.2.2 - 25 Mar 2024

    • Fixed parameter serialization websocket queries
    • Added missing info websocket user data updates
  • Version 7.2.1 - 24 Mar 2024

  • Version 7.2.0 - 16 Mar 2024

  • Version 7.1.0 - 25 Feb 2024

    • Updated CryptoExchange.Net and implemented reworked websocket message handling. For release notes for the CryptoExchange.Net base library see: https://github.com/JKorf/CryptoExchange.Net?tab=readme-ov-file#release-notes
    • Combined multiple private websocket subscriptions into single subscription
    • Fixed issue in DI registration causing http client to not be correctly injected
    • Removed redundant BitfinexRestClient constructor overload
    • Removed UpdateType from BitfinexTradeSimple model in favor of the UpdateType in the DataEvent wrapper
    • Updated some namespaces
  • Version 7.0.5 - 03 Dec 2023

    • Updated CryptoExchange.Net
  • Version 7.0.4 - 24 Oct 2023

    • Updated CryptoExchange.Net
  • Version 7.0.3 - 09 Oct 2023

    • Updated CryptoExchange.Net version
  • Version 7.0.2 - 21 Sep 2023

    • Fixed incorrect url SpotApi.Account.WalletTransferAsync
  • Version 7.0.1 - 19 Sep 2023

    • Fixed socket ticker stream model
  • Version 7.0.0 - 17 Sep 2023

    • Updated all endpoints to V2 API (expect for Account.WithdrawAsync)
    • Updated all parameters and response models
    • Created endpoints for all possible requests for the Configs and Stats endpoints
    • Split the endpoints and subscriptions for trading symbols and funding symbols where necesarry
    • Added Account.GetMovementsDetailsAsync endpoint
    • Added Account.GetLoginHistoryAsync endpoint
    • Added Account.GetApiKeyPermissionsAsync endpoint
    • Added Account.GetAccountChangeLogAsync endpoint
    • Added ExchangeData.GetDerivativesStatusAsync endpoint
    • Added ExchangeData.GetLiquidationsAsync endpoint
    • Added ExchangeData.GetFundingStatisticsAsync endpoint
    • Added Trading.IncreasePositionAsync endpoint
    • Added Trading.GetIncreasePositionInfoAsync endpoint
    • Added Trading.GetPositionSnapshotsAsync endpoint
    • Added SubscribeToLiquidationUpdatesAsync stream
    • Added SubscribeToDerivativesUpdatesAsync stream
    • Added SubmitFundingOfferAsync socket request
    • Added CancelFundingOfferAsync socket request
  • Version 6.0.1 - 25 Aug 2023

    • Updated CryptoExchange.Net
  • Version 6.0.0 - 25 Jun 2023

    • Updated CryptoExchange.Net to version 6.0.0
    • Renamed BitfinexClient to BitfinexRestClient
    • Renamed SpotStreams to SpotApi on the BitfinexSocketClient
    • Updated endpoints to consistently use a base url without any path as basis to make switching environments/base urls clearer
    • Added IBitfinexOrderBookFactory and implementation for creating order books
    • Updated dependency injection register method (AddBitfinex)
  • Version 5.2.0 - 16 Apr 2023

    • Added GetTickerHistoryAsync endpoint
    • Updated socket PlaceOrderAsync parameters
    • Added missing order flag values
  • Version 5.1.2 - 18 Mar 2023

    • Updated CryptoExchange.Net
  • Version 5.1.1 - 14 Feb 2023

    • Updated CryptoExchange.Net
  • Version 5.1.0 - 17 Nov 2022

    • Updated CryptoExchange.Net
  • Version 5.0.16 - 25 Sep 2022

    • Fixed SpotApi.ExchangeData.GetOrderBookAsync() endpoint Bids/Asks being reversed
  • Version 5.0.15 - 18 Jul 2022

    • Updated CryptoExchange.Net
  • Version 5.0.14 - 16 Jul 2022

    • Updated CryptoExchange.Net
  • Version 5.0.13 - 10 Jul 2022

    • Fixed WalletTransferAsync success checking
    • Updated CryptoExchange.Net
  • Version 5.0.12 - 12 Jun 2022

    • Updated CryptoExchange.Net
  • Version 5.0.11 - 24 May 2022

    • Updated CryptoExchange.Net
  • Version 5.0.10 - 22 May 2022

    • Updated CryptoExchange.Net
  • Version 5.0.9 - 08 May 2022

    • Updated CryptoExchange.Net
  • Version 5.0.8 - 01 May 2022

    • Updated CryptoExchange.Net which fixed an timing related issue in the websocket reconnection logic
    • Added seconds representation to KlineInterval enum
    • Added allowed order book levels 1 and 250
  • Version 5.0.7 - 14 Apr 2022

    • Fixed deserialization error in ClosePositionAsync
    • Fixed WalletTransferAsync serialization issue
    • Updated CryptoExchange.Net
  • Version 5.0.6 - 14 Mar 2022

    • Added SubmitFundingAutoRenewAsync endpoint
    • Added GetFundingAutoRenewStatusAsync endpoint
  • Version 5.0.5 - 10 Mar 2022

    • Updated CryptoExchange.Net
  • Version 5.0.4 - 08 Mar 2022

    • Updated CryptoExchange.Net
  • Version 5.0.3 - 01 Mar 2022

    • Updated CryptoExchange.Net improving the websocket reconnection robustness
  • Version 5.0.2 - 27 Feb 2022

    • Updated CryptoExchange.Net
  • Version 5.0.1 - 24 Feb 2022

    • Updated CryptoExchange.Net
  • Version 5.0.0 - 18 Feb 2022

  • Version 4.2.4 - 03 Nov 2021

    • Fixed raw order book stream not accounting for checksum updates
  • Version 4.2.3 - 08 Oct 2021

    • Updated CryptoExchange.Net to fix some socket issues
  • Version 4.2.2 - 06 Oct 2021

    • Updated CryptoExchange.Net, fixing socket issue when calling from .Net Framework
  • Version 4.2.1 - 05 Oct 2021

    • Updated CryptoExchange.Net
  • Version 4.2.0 - 29 Sep 2021

    • Split GetTickerAsync in GetTickerAsync and GetTickersAsync, changed params to IEnumerable
    • Updated CryptoExchange.Net
  • Version 4.1.2 - 22 Sep 2021

    • Fixed nonce provider when running multiple program instances
  • Version 4.1.1 - 21 Sep 2021

    • Fix for nonce provider not working correctly in combination with other exchanges
  • Version 4.1.0 - 20 Sep 2021

    • Added custom nonce provider support
  • Version 4.0.5 - 15 Sep 2021

    • Updated CryptoExchange.Net
  • Version 4.0.4 - 02 Sep 2021

    • Fix for disposing order book closing socket even if there are other connections
  • Version 4.0.3 - 26 Aug 2021

    • Updated CryptoExchange.Net
  • Version 4.0.2 - 24 Aug 2021

    • Updated CryptoExchange.Net, improving websocket and SymbolOrderBook performance
    • Fixes for checksum validation BitfinexSymbolOrderBook
  • Version 4.0.1 - 13 Aug 2021

    • Fix for OperationCancelledException being thrown when closing a socket from a .net framework project
  • Version 4.0.0 - 12 Aug 2021

  • Version 4.0.0-beta3 - 09 Aug 2021

    • Renamed GetTradesForOrderAsync to GetOrderTradesAsync
    • Renamed GetTradesAsync to GetTradeHistoryAsync
    • Renamed GetTradeHistoryAsync to GetUserTradesAsync
    • Renamed GetOrderHistoryAsync to GetOrdersAsync
  • Version 4.0.0-beta2 - 26 Jul 2021

    • Updated CryptoExchange.Net
  • Version 4.0.0-beta1 - 09 Jul 2021

    • Added Async postfix for async methods
    • Updated CryptoExchange.Net
  • Version 3.5.0-beta4 - 07 Jun 2021

    • Fixed IExchangeClient PlaceOrder OrderType
    • Fixed WalletTransferAsync amount parameter serialization
    • Updated CryptoExchange.Net
  • Version 3.5.0-beta3 - 26 May 2021

    • Removed non-async calls
    • Updated to CryptoExchange.Net changes
  • Version 3.5.0-beta2 - 06 mei 2021

    • Updated CryptoExchange.Net
  • Version 3.5.0-beta1 - 30 apr 2021

    • Updated to CryptoExchange.Net 4.0.0-beta1, new websocket implementation
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Bitfinex.Net:

Package Downloads
exchange-client-1

Exchange client gather all exchanges via jkorf and it uses common client sources

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Bitfinex.Net:

Repository Stars
silahian/VisualHFT
VisualHFT is a cutting-edge GUI platform for market analysis, focusing on real-time visualization of market microstructure. Built with WPF & C#, it displays key metrics like Limit Order Book dynamics and execution quality. Its modular design ensures adaptability for developers and traders, enabling tailored analytical solutions.
JKorf/CryptoExchange.Net
Base for exchanges
Version Downloads Last updated
7.2.4 27 4/18/2024
7.2.3 107 4/3/2024
7.2.2 269 3/25/2024
7.2.1 159 3/24/2024
7.2.0 214 3/16/2024
7.1.0 579 2/25/2024
7.1.0-beta2 267 2/17/2024
7.1.0-beta1 346 2/6/2024
7.0.5 1,074 12/3/2023
7.0.4 994 10/24/2023
7.0.3 731 10/9/2023
7.0.2 889 9/21/2023
7.0.1 590 9/19/2023
7.0.0 617 9/17/2023
6.0.1 1,164 8/25/2023
6.0.0 1,594 6/25/2023
5.2.0 1,633 4/16/2023
5.1.2 1,449 3/18/2023
5.1.1 1,401 2/14/2023
5.1.0 1,677 11/17/2022
5.0.16 1,661 9/25/2022
5.0.15 2,277 7/18/2022
5.0.14 1,056 7/16/2022
5.0.13 2,032 7/10/2022
5.0.12 1,377 6/12/2022
5.0.11 1,335 5/24/2022
5.0.10 1,077 5/22/2022
5.0.9 1,289 5/8/2022
5.0.8 1,200 5/1/2022
5.0.7 1,706 4/14/2022
5.0.6 1,857 3/14/2022
5.0.5 1,070 3/10/2022
5.0.4 1,057 3/8/2022
5.0.3 2,561 3/1/2022
5.0.2 1,092 2/27/2022
5.0.1 1,142 2/24/2022
5.0.0 1,056 2/18/2022
5.0.0-beta4 768 2/5/2022
5.0.0-beta3 734 1/31/2022
5.0.0-beta2 747 1/24/2022
5.0.0-beta1 809 1/15/2022
5.0.0-alpha6 715 1/7/2022
5.0.0-alpha5 764 1/3/2022
5.0.0-alpha4 748 1/1/2022
5.0.0-alpha3 738 12/27/2021
5.0.0-alpha2 771 12/21/2021
5.0.0-alpha1 795 12/7/2021
4.2.4 4,109 11/3/2021
4.2.3 1,324 10/8/2021
4.2.2 962 10/6/2021
4.2.1 938 10/5/2021
4.2.0 1,143 9/29/2021
4.1.2 986 9/22/2021
4.1.1 1,034 9/21/2021
4.1.0 957 9/20/2021
4.0.5 993 9/15/2021
4.0.4 1,032 9/2/2021
4.0.3 1,049 8/26/2021
4.0.2 951 8/24/2021
4.0.1 1,189 8/13/2021
4.0.0 918 8/12/2021
4.0.0-beta3 788 8/9/2021
4.0.0-beta2 824 7/26/2021
4.0.0-beta1 836 7/9/2021
3.5.0-beta4 965 6/7/2021
3.5.0-beta3 796 5/26/2021
3.5.0-beta2 835 5/6/2021
3.5.0-beta1 829 4/30/2021
3.4.7 2,157 5/4/2021
3.4.6 982 4/28/2021
3.4.5 1,071 4/20/2021
3.4.4 982 4/19/2021
3.4.3 1,243 4/8/2021
3.4.2 1,164 3/30/2021
3.4.1 1,448 3/1/2021
3.4.0 1,208 3/1/2021
3.3.1 1,169 2/24/2021
3.3.0 1,160,197 2/9/2021
3.2.0 1,047 2/3/2021
3.1.2 1,156 1/22/2021
3.1.1 1,048 1/14/2021
3.1.0 1,259 12/21/2020
3.0.18 1,181 12/11/2020
3.0.17 1,524 11/19/2020
3.0.16 1,883 10/8/2020
3.0.15 1,776 8/28/2020
3.0.14 1,253 8/12/2020
3.0.13 1,374 7/20/2020
3.0.12 1,478 6/21/2020
3.0.11 1,162 6/16/2020
3.0.10 1,275 6/7/2020
3.0.9 7,985 3/3/2020
3.0.8 1,186 3/3/2020
3.0.7 1,518 2/5/2020
3.0.6 1,320 1/27/2020
3.0.5 2,122 11/19/2019
3.0.4 1,237 11/19/2019
3.0.3 1,246 11/15/2019
3.0.2 1,253 11/12/2019
3.0.1 1,403 10/24/2019
3.0.0 1,189 10/23/2019
2.1.6 17,107 8/7/2019
2.1.5 1,216 8/6/2019
2.1.4 1,239 8/5/2019
2.1.3 2,176 7/9/2019
2.1.2 1,311 7/8/2019
2.1.1 1,328 7/1/2019
2.1.0 1,313 6/27/2019
2.0.12 6,068 5/14/2019
2.0.11 1,360 5/1/2019
2.0.10 1,839 3/18/2019
2.0.9 1,409 3/8/2019
2.0.8 1,254 3/7/2019
2.0.7 1,749 2/18/2019
2.0.6 1,833 2/1/2019
2.0.5 1,822 1/9/2019
2.0.4 1,928 12/17/2018
2.0.3 1,432 12/10/2018
2.0.2 1,453 12/6/2018
2.0.1 1,346 12/6/2018
2.0.0 1,372 12/5/2018
1.2.6 1,928 10/30/2018
1.2.5 1,523 10/18/2018
1.2.4 1,755 9/21/2018
1.2.3 1,444 9/19/2018
1.2.2 1,584 9/7/2018
1.2.1 1,853 8/22/2018
1.2.0 3,299 8/21/2018
1.1.8 1,494 8/20/2018
1.1.7 1,582 8/16/2018
1.1.6 1,511 8/15/2018
1.1.5 1,527 8/13/2018
1.1.4 1,700 7/30/2018
1.1.3 1,606 7/24/2018
1.1.2 1,522 7/20/2018
1.1.1 1,651 7/18/2018
1.1.0 1,620 7/16/2018
1.0.19 1,626 7/12/2018
1.0.18 1,881 7/3/2018
1.0.17 3,816 6/28/2018
1.0.16 1,684 6/26/2018
1.0.15 1,688 6/26/2018
1.0.14 1,673 6/25/2018
1.0.13 1,599 6/22/2018
1.0.12 1,823 6/11/2018
1.0.11 1,596 6/6/2018
1.0.10 1,560 6/5/2018
1.0.9 1,634 6/4/2018
1.0.8 4,451 5/12/2018
1.0.7 1,614 5/12/2018
1.0.6 1,652 5/8/2018
1.0.5 1,534 5/7/2018
1.0.4 1,540 5/7/2018
1.0.3 1,664 5/4/2018
1.0.2 1,653 4/20/2018
1.0.1 1,597 4/20/2018
1.0.0 1,622 4/19/2018
0.0.8 2,286 3/23/2018
0.0.7 1,750 3/23/2018
0.0.6 1,597 3/22/2018
0.0.5 1,572 3/21/2018
0.0.4 1,605 3/20/2018
0.0.3 1,770 3/12/2018
0.0.2 1,662 3/9/2018
0.0.1 1,631 3/8/2018