KrakenExchange.Net 4.3.0-beta1

This is a prerelease version of KrakenExchange.Net.
There is a newer version of this package available.
See the version list below for details.
dotnet add package KrakenExchange.Net --version 4.3.0-beta1                
NuGet\Install-Package KrakenExchange.Net -Version 4.3.0-beta1                
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="KrakenExchange.Net" Version="4.3.0-beta1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KrakenExchange.Net --version 4.3.0-beta1                
#r "nuget: KrakenExchange.Net, 4.3.0-beta1"                
#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 KrakenExchange.Net as a Cake Addin
#addin nuget:?package=KrakenExchange.Net&version=4.3.0-beta1&prerelease

// Install KrakenExchange.Net as a Cake Tool
#tool nuget:?package=KrakenExchange.Net&version=4.3.0-beta1&prerelease                

Kraken.Net

.NET Nuget version Nuget downloads

Kraken.Net is a wrapper around the Kraken API as described on Kraken, including all features the API provides using clear and readable objects, both for the REST as the websocket API's.

If you think something is broken, something is missing or have any questions, please open an Issue

Documentation

Installation

dotnet add package KrakenExchange.Net

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: bc1qz0jv0my7fc60rxeupr23e75x95qmlq6489n8gh
Eth: 0x8E21C4d955975cB645589745ac0c46ECA8FAE504

Alternatively, sponsor me on Github using Github Sponsors.

Discord

A Discord server is available here. For discussion and/or questions around the CryptoExchange.Net and implementation libraries, feel free to join.

Release notes

  • Version 4.3.0-beta1 - 06 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/tree/beta?tab=readme-ov-file#release-notes
    • Fixed issue in DI registration causing http client to not be correctly injected
    • Added single symbol overloads to Futures websocket subscriptions
    • Removed excessive constructor overload for KrakenRestClient
  • Version 4.2.2 - 04 Jan 2024

    • Fixed issue deserializing DateTime value in user order updates when running .net framework
  • Version 4.2.1 - 03 Jan 2024

    • Added SpotApi.Account.GetWithdrawAddressesAsync
    • Added SpotApi.Account.GetWithdrawMethodsAsync
    • Added missing otp parameter SpotApi.Trading.EditOrderAsync
    • Fixed SpotApi.Trading.EditOrderAsync response deserialization
  • Version 4.2.0 - 02 Dec 2023

    • Added SpotApi.Trading.AddMultipleOrdersAsync
    • Added SpotApi.Trading.EditOrderAsync
    • Added FuturesApi.Account.GetInitialMarginRequirementsAsync
    • Added FuturesApi.Account.GetMaxOrderQuantityAsync
    • Changed futures quantity parameter from int to decimal
  • Version 4.1.5 - 24 Oct 2023

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

    • Updated CryptoExchange.Net version
    • Added ISpotClient to DI injection
  • Version 4.1.3 - 25 Aug 2023

    • Updated CryptoExchange.Net
  • Version 4.1.2 - 23 Jul 2023

    • Fix for missing Symbol property on futures order book stream update
  • Version 4.1.1 - 11 Jul 2023

    • Added amount parameter to GetDepositAddresses endpoint
    • Added limit parameter to SpotApi GetTradeHistory endpoint
    • Added address parameter to Withdraw endpoint
    • Added missing stop order properties on futures OpenOrders model
    • Fixed duplice parameter issue on SpotApi PlaceOrder
    • Fixed TickSize property parsing on SpotApi GetSymbols endpoint
  • Version 4.1.0 - 05 Jul 2023

    • Added support for Kraken Futures
  • Version 4.0.0 - 25 Jun 2023

    • Updated CryptoExchange.Net to version 6.0.0
    • Renamed KrakenClient to KrakenRestClient
    • Renamed **Streams to **Api on the KrakenSocketClient
    • Updated endpoints to consistently use a base url without any path as basis to make switching environments/base urls clearer
    • Added IKrakenOrderBookFactory and implementation for creating order books
    • Updated dependency injection register method (AddKraken)
  • Version 3.1.10 - 19 Jun 2023

    • Fixed close ordertype parameter being sent even when not provided
  • Version 3.1.9 - 14 May 2023

    • Added close parameters to rest PlaceOrder endpoint
  • Version 3.1.8 - 15 Apr 2023

    • Added GetWithdrawalStatusAsync endpoint
    • Added CancelWithdrawalAsync endpoint
    • Added TransferAsync endpoint
    • Updated various response models and endpoint parameters
  • Version 3.1.7 - 18 Mar 2023

    • Added reduceOnly and selfTradePreventionType parameters to place order endpoints
    • Updated CryptoExchange.Net
  • Version 3.1.6 - 14 Feb 2023

    • Updated CryptoExchange.Net
    • Added retry on nonce error
  • Version 3.1.5 - 05 Feb 2023

    • Added CancelAllOrdersAsync endpoint
  • Version 3.1.4 - 13 Jan 2023

    • Added support for Trade In Force
  • Version 3.1.3 - 03 Jan 2023

    • Fixed stackoverflow on SubscribeToTradeUpdatesAsync
  • Version 3.1.2 - 29 Dec 2022

    • Added multi-symbol overloads for socket client subscribe methods
  • Version 3.1.1 - 21 Nov 2022

    • Fixed reconnect url
  • Version 3.1.0 - 17 Nov 2022

    • Updated CryptoExchange.Net
    • Fixed authenticated socket subscription not being able to reconnect
  • Version 3.0.15 - 17 Aug 2022

    • Added support for viqc oflags
  • Version 3.0.14 - 18 Jul 2022

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

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

    • Fixed exception when trying to access result from PlaceOrderAsync when validateOnly is set to true
    • Updated CryptoExchange.Net
  • Version 3.0.11 - 12 Jun 2022

    • Added staking endpoints
    • Updated CryptoExchange.Net
  • Version 3.0.10 - 24 May 2022

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

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

    • Fixed symbol validation not allowing T/EUR
    • Updated CryptoExchange.Net
  • Version 3.0.7 - 01 May 2022

    • Updated CryptoExchange.Net which fixed an timing related issue in the websocket reconnection logic
    • Added seconds representation to KlineInterval enum
    • Added flags parameter to socket PlaceOrderAsync
  • Version 3.0.6 - 14 Apr 2022

    • Updated CryptoExchange.Net
  • Version 3.0.5 - 10 Mar 2022

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

    • Fixed startTime/endTime parameters in socket PlaceOrderAsync
    • Fixed socket CancelOrderAsync not returning error on if failed
    • Updated CryptoExchange.Net
  • Version 3.0.3 - 01 Mar 2022

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

    • Updated CryptoExchange.Net to fix timestamping issue when request is ratelimiter
  • Version 3.0.1 - 24 Feb 2022

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

    • Added Github.io page for documentation: https://jkorf.github.io/Kraken.Net/

    • Added unit tests for parsing the returned JSON for each endpoint and subscription

    • Added AddKraken extension method on IServiceCollection for easy dependency injection

    • Added URL reference to API endpoint documentation for each endpoint

    • Added default rate limiter

    • 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/Kraken.Net/MigrationGuide.html for additional notes for updating from V2 to V3

  • Version 2.2.3 - 08 Oct 2021

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

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

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

    • Renamed SubscribeToDepthUpdatesAsync to SubscribeToOrderBookUpdatesAsync
    • Updated CryptoExchange.Net
  • Version 2.1.3 - 22 Sep 2021

    • Fixed nonce provider when running multiple program instances
  • Version 2.1.2 - 22 Sep 2021

    • Added trace output for nonce
  • Version 2.1.1 - 21 Sep 2021

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

    • Fix for not recognizing DOGE/BTC because Kraken renames them to XDG/XBT in update messages
    • Added custom nonce provider support
    • Added missing SetApiCredentials method
    • Updated CryptoExchange.Net
  • Version 2.0.11 - 15 Sep 2021

    • Updated CryptoExchange.Net
  • Version 2.0.10 - 09 Sep 2021

    • Removed invalid check GetOrdersAsync
  • Version 2.0.8 - 02 Sep 2021

    • Fix for disposing order book closing socket even if there are other connections
  • Version 2.0.7 - 02 Sep 2021

    • Fixed secondaryPrice parameter serialization in PlaceOrderAsync
    • Added snapshot parameter to SubscribeToOwnTradeUpdatesAsync
  • Version 2.0.6 - 01 Sep 2021

    • Fix for user trades subscription topic
  • Version 2.0.5 - 26 Aug 2021

    • Updated CryptoExchange.Net
  • Version 2.0.4 - 26 Aug 2021

    • Added SequenceNumber to order/trade socket updates
    • Changed all clientOrderId parameters to uint
  • Version 2.0.3 - 24 Aug 2021

    • Updated CryptoExchange.Net, improving websocket and SymbolOrderBook performance
    • Fix for order book subscription
  • Version 2.0.2 - 18 Aug 2021

    • Added GetSystemStatusAsync endpoint
    • Added SubscribeToSystemStatusUpdatesAsync subscription
    • Added Place/Cancel order requests on socket client
    • Fixed multiple symbols ticker subscriptions
  • Version 2.0.1 - 13 Aug 2021

    • Fix for OperationCancelledException being thrown when closing a socket from a .net framework project
    • Fixed deserialization issue in KrakenTradeVolume
  • Version 2.0.0 - 12 Aug 2021

  • Version 2.0.0-beta3 - 09 Aug 2021

    • Fixed deserialization error in GetTradeVolumeAsync
    • Fixed error message invalid symbol
    • Now uses IEnumerable<T> instead of params T in various methods
    • Renamed GetRecentTradesAsync to GetTradeHistoryAsync
    • Renamed GetTradeHistoryAsync to GetUserTradesAsync
    • Renamed GetTradesAsync to GetUserTradeDetailsAsync
    • Renamed WithdrawFundsAsync to WithdrawAsync
  • Version 2.0.0-beta2 - 26 Jul 2021

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

    • Fixed unsubscribing user streams
    • Added Async postfix for async methods
    • Updated CryptoExchange.Net
  • Version 1.4.3 - 04 mei 2021

    • Added GetAvailableBalances endpoint
  • Version 1.4.2 - 28 apr 2021

    • Updated CryptoExchange.Net
  • Version 1.4.1 - 19 apr 2021

    • Fixed ICommonSymbol.CommonName implementation on KrakenSymbol
    • Updated CryptoExchange.Net
  • Version 1.4.0 - 12 apr 2021

    • Added GetWithdrawInfo endpoint
    • Added authenticated SubscribeToOrderUpdates and SubscribeToOwnTradeUpdates subscriptions on socket client
  • Version 1.3.2 - 30 mrt 2021

    • Updated CryptoExchange.Net
  • Version 1.3.1 - 01 mrt 2021

    • Added Nuget SymbolPackage
  • Version 1.3.0 - 01 mrt 2021

    • Added config for deterministic build
    • Updated CryptoExchange.Net
  • Version 1.2.3 - 22 jan 2021

    • Updated for ICommonKline
  • Version 1.2.2 - 14 jan 2021

    • Updated CryptoExchange.Net
  • Version 1.2.1 - 22 dec 2020

    • Added missing SetDefaultOptions for socket client
    • Fixed symbol name check for ETH2.S/ETH
  • Version 1.2.0 - 21 dec 2020

    • Update CryptoExchange.Net
    • Updated to latest IExchangeClient
  • Version 1.1.9 - 11 dec 2020

    • Updated CryptoExchange.Net
    • Implemented IExchangeClient
  • Version 1.1.8 - 19 nov 2020

    • Updated CryptoExchange.Net
  • Version 1.1.7 - 09 nov 2020

    • Fix string values for order book checksum
  • Version 1.1.6 - 09 nov 2020

    • Fixed symbol validation
    • Added string value properties to orderbook for checksum validation
  • Version 1.1.5 - 08 Oct 2020

    • Fixed withdraw endpoint
  • Version 1.1.4 - 08 Oct 2020

    • Added withdraw method
    • Fix close timestamp orders
    • Added OrderMin property on pair
    • Updated CryptoExchange.Net
  • Version 1.1.3 - 28 Aug 2020

    • Updated CryptoExchange.Net
  • Version 1.1.2 - 12 Aug 2020

    • Updated CryptoExchange.Net
  • Version 1.1.1 - 21 Jul 2020

    • Added checksum validation for KrakenSymbolOrderBook
  • Version 1.1.0 - 20 Jul 2020

    • Added two-factor authentication support
  • Version 1.0.8 - 21 Jun 2020

    • Updated CryptoExchange
  • Version 1.0.7 - 16 Jun 2020

    • Fix for KrakenSymbolOrderBook
  • Version 1.0.6 - 07 Jun 2020

    • Updated CryptoExchange.Net to fix order book desync
  • Version 1.0.5 - 03 Mar 2020

    • Fixed since parameter in GetRecentTrades endpoint
  • Version 1.0.4 - 27 Jan 2020

    • Updated CryptoExchange.Net
  • Version 1.0.3 - 12 Nov 2019

    • Added TradingAgreement parameter for placing orders for German accounts
  • Version 1.0.2 - 24 Oct 2019

    • Fixed order deserialization
  • Version 1.0.1 - 23 Oct 2019

    • Fixed validation length symbols
  • Version 1.0.0 - 23 Oct 2019

    • See CryptoExchange.Net 3.0 release notes
    • Added input validation
    • Added CancellationToken support to all requests
    • Now using IEnumerable<> for collections
    • Renamed Market → Symbol
    • Renamed GetAccountBalance → GetBalances
  • Version 0.0.4 - 15 Oct 2019

    • Fixed placing orders
    • Fixed possible missmatch in stream subscriptions
  • Version 0.0.3 - 24 Sep 2019

    • Added missing order type, added missing ledger transfer types
  • Version 0.0.2 - 10 Sep 2019

    • Added missing SetDefaultOptions and SetApiCredentials methods
  • Version 0.0.1 - 29 Aug 2019

    • Initial release
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 (2)

Showing the top 2 NuGet packages that depend on KrakenExchange.Net:

Package Downloads
CryptoClients.Net

CryptoClients.Net is a collection of multiple cryptocurrency exchange API clients for accessing both the REST API's and WebSocket API's. Supports order and account management and requesting and streaming both public and private data.

CryptoThune.Net

Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on KrakenExchange.Net:

Repository Stars
JKorf/CryptoExchange.Net
A C# .netstandard base library used for implementing cryptocurrency exchange API's.
Version Downloads Last updated
5.3.0 294 11/19/2024
5.2.0 653 11/6/2024
5.1.1 436 11/1/2024
5.1.0 286 10/28/2024
5.0.2 479 10/22/2024
5.0.1 92 10/21/2024
5.0.0 687 10/14/2024
4.12.0 3,080 9/27/2024
4.11.1 1,737 8/28/2024
4.11.0 854 8/7/2024
4.10.0 4,402 7/29/2024
4.8.1 1,287 7/2/2024
4.8.0 1,184 6/23/2024
4.7.0 13,168 6/11/2024
4.6.6 12,776 6/2/2024
4.6.5 17,602 5/7/2024
4.6.4 14,145 5/3/2024
4.6.3 12,437 5/1/2024
4.6.2 12,555 4/28/2024
4.6.1 12,561 4/23/2024
4.6.0 12,625 4/18/2024
4.5.0 13,026 4/1/2024
4.4.3 12,700 3/25/2024
4.4.2 11,806 3/24/2024
4.4.1 11,772 3/24/2024
4.4.0 12,094 3/16/2024
4.3.0 13,309 2/25/2024
4.3.0-beta2 11,899 2/21/2024
4.3.0-beta1 8,198 2/6/2024
4.2.2 9,441 1/4/2024
4.2.1 8,395 1/3/2024
4.2.0 18,537 12/2/2023
4.1.5 12,458 10/24/2023
4.1.4 1,105 10/9/2023
4.1.3 2,374 8/25/2023
4.1.2 1,772 7/23/2023
4.1.1 1,272 7/11/2023
4.1.0 1,456 7/5/2023
4.0.0 1,395 6/25/2023
3.1.10 1,171 6/19/2023
3.1.9 4,244 5/14/2023
3.1.8 1,564 4/15/2023
3.1.7 10,739 3/18/2023
3.1.6 1,609 2/14/2023
3.1.5 1,212 2/5/2023
3.1.4 1,332 1/25/2023
3.1.3 1,305 1/3/2023
3.1.2 1,084 12/29/2022
3.1.1 1,921 11/21/2022
3.1.0 1,278 11/17/2022
3.0.15 3,560 8/19/2022
3.0.14 4,026 7/18/2022
3.0.13 1,289 7/16/2022
3.0.12 11,676 7/10/2022
3.0.11 1,753 6/12/2022
3.0.10 3,541 5/24/2022
3.0.9 1,437 5/22/2022
3.0.8 1,340 5/8/2022
3.0.7 1,275 5/1/2022
3.0.6 2,674 4/14/2022
3.0.5 2,202 3/10/2022
3.0.4 1,270 3/8/2022
3.0.3 2,732 3/1/2022
3.0.2 4,806 2/27/2022
3.0.1 1,572 2/24/2022
3.0.0 1,498 2/18/2022
3.0.0-beta4 954 2/5/2022
3.0.0-beta3 925 1/31/2022
3.0.0-beta2 841 1/24/2022
3.0.0-beta1 902 1/15/2022
3.0.0-alpha6 928 1/7/2022
3.0.0-alpha5 955 1/3/2022
3.0.0-alpha4 878 1/1/2022
3.0.0-alpha3 880 12/27/2021
3.0.0-alpha2 853 12/21/2021
3.0.0-alpha1 929 12/7/2021
2.2.4 4,631 12/6/2021
2.2.3 3,771 10/8/2021
2.2.2 1,071 10/6/2021
2.2.1 1,121 10/5/2021
2.2.0 1,353 9/29/2021
2.1.3 2,036 9/22/2021
2.1.2 1,088 9/22/2021
2.1.1 1,117 9/21/2021
2.1.0 1,094 9/20/2021
2.0.11 1,044 9/15/2021
2.0.10 1,077 9/9/2021
2.0.8 1,301 9/2/2021
2.0.7 1,035 9/2/2021
2.0.6 1,141 9/1/2021
2.0.5 1,354 8/26/2021
2.0.4 1,024 8/26/2021
2.0.3 1,074 8/24/2021
2.0.2 1,194 8/18/2021
2.0.1 1,066 8/13/2021
2.0.0 1,027 8/12/2021
2.0.0-beta3 884 8/9/2021
2.0.0-beta2 925 7/26/2021
2.0.0-beta1 979 7/9/2021
1.5.0-beta4 1,018 6/7/2021
1.5.0-beta3 938 5/26/2021
1.5.0-beta2 937 5/6/2021
1.5.0-beta1 905 4/30/2021
1.4.3 8,053 5/4/2021
1.4.2 1,770 4/28/2021
1.4.1 1,221 4/19/2021
1.4.0 1,235 4/12/2021
1.3.2 1,195 3/30/2021
1.3.1 1,985 3/1/2021
1.3.0 1,332 3/1/2021
1.2.3 1,623 1/22/2021
1.2.2 1,505 1/14/2021
1.2.1 1,351 12/22/2020
1.2.0 1,206 12/21/2020
1.1.9 1,246 12/11/2020
1.1.8 2,346 11/19/2020
1.1.7 1,312 11/9/2020
1.1.6 1,250 11/9/2020
1.1.5 2,308 10/8/2020
1.1.4 1,316 10/8/2020
1.1.3 1,837 8/28/2020
1.1.2 1,307 8/12/2020
1.1.1 1,347 7/21/2020
1.1.0 1,284 7/20/2020
1.0.8 1,478 6/21/2020
1.0.7 1,285 6/16/2020
1.0.6 1,281 6/7/2020
1.0.5 7,944 3/3/2020
1.0.4 1,394 1/27/2020
1.0.3 2,063 11/12/2019
1.0.2 1,365 10/24/2019
1.0.1 1,304 10/23/2019
1.0.0 1,291 10/23/2019
0.0.4 1,273 10/15/2019
0.0.3 1,350 9/24/2019
0.0.2 1,230 9/10/2019
0.0.1 1,323 8/29/2019

4.3.0-beta1 - 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/tree/beta?tab=readme-ov-file#release-notes, Fixed issue in DI registration causing http client to not be correctly injected, Added single symbol overloads to Futures websocket subscriptions, Removed excessive constructor overload for KrakenRestClient