Tothemoon.Net
0.9.3
dotnet add package Tothemoon.Net --version 0.9.3
NuGet\Install-Package Tothemoon.Net -Version 0.9.3
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="Tothemoon.Net" Version="0.9.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Tothemoon.Net --version 0.9.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Tothemoon.Net, 0.9.3"
#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 Tothemoon.Net as a Cake Addin #addin nuget:?package=Tothemoon.Net&version=0.9.3 // Install Tothemoon.Net as a Cake Tool #tool nuget:?package=Tothemoon.Net&version=0.9.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 1.0.0 - 26 Nov 2024
- Initial release
Product | Versions 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 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- CryptoExchange.Net (>= 8.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.