Tothemoon.Net
0.10.0
dotnet add package Tothemoon.Net --version 0.10.0
NuGet\Install-Package Tothemoon.Net -Version 0.10.0
<PackageReference Include="Tothemoon.Net" Version="0.10.0" />
<PackageVersion Include="Tothemoon.Net" Version="0.10.0" />
<PackageReference Include="Tothemoon.Net" />
paket add Tothemoon.Net --version 0.10.0
#r "nuget: Tothemoon.Net, 0.10.0"
#:package Tothemoon.Net@0.10.0
#addin nuget:?package=Tothemoon.Net&version=0.10.0
#tool nuget:?package=Tothemoon.Net&version=0.10.0
Tothemoon.Net
Tothemoon.Net is a strongly typed client library for accessing the Tothemoon REST API.
Features
- Response data is mapped to descriptive models
- Input parameters and response values are mapped to discriptive enum values where possible
- Client side order book implementation
- Extensive logging
- Support for different environments
- Easy integration with other exchange client based on the CryptoExchange.Net base library
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 |
How to use
REST Endpoints
// Get the BTC/EUR order book via rest request and display asks
var restClient = new TothemoonRestClient();
var result = await restClient.SpotApi.ExchangeData.GetOrderBookAsync("BTC_EUR");
foreach (var ask in result.Data.Data.Asks.ToList())
{
Console.WriteLine($"Ask: {ask.Quantity} , {ask.Price}");
}
CryptoExchange.Net
Mexc.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 | |
Bitfinex | JKorf/Bitfinex.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 | |
OKX | JKorf/OKX.Net | |
WhiteBit | JKorf/WhiteBit.Net |
Supported functionality
Spot V3
API | Supported | Location |
---|---|---|
Market Data Endpoints | ✓ | restClient.SpotApi.ExchangeData |
SubAccount Endpoints | X | |
Acount/Trade | ✓ | restClient.SpotApi.Account / restClient.SpotApi.Trading |
Wallet endpoints | ✓ | restClient.SpotApi.Account |
Websocket Market Streams | X | |
Websocket User Data Streams | X |
Release notes
Version 0.10.0 - 25 Jul 2025
- Upgrade to CryptoExchange.NET version 9
- Added rate limiter as according to https://docs.tothemoon.com/#rate-limit
Version 0.9.0 - 26 Nov 2024
- Initial release
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 was computed. 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. |
-
net9.0
- CryptoExchange.Net (>= 9.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.