![]() |
VOOZH | about |
dotnet add package JK.Mexc.Net --version 5.3.0
NuGet\Install-Package JK.Mexc.Net -Version 5.3.0
<PackageReference Include="JK.Mexc.Net" Version="5.3.0" />
<PackageVersion Include="JK.Mexc.Net" Version="5.3.0" />Directory.Packages.props
<PackageReference Include="JK.Mexc.Net" />Project file
paket add JK.Mexc.Net --version 5.3.0
#r "nuget: JK.Mexc.Net, 5.3.0"
#:package JK.Mexc.Net@5.3.0
#addin nuget:?package=JK.Mexc.Net&version=5.3.0Install as a Cake Addin
#tool nuget:?package=JK.Mexc.Net&version=5.3.0Install as a Cake Tool
Mexc.Net is a strongly typed client library for accessing the Mexc REST and Websocket API.
The library is targeting both .NET Standard 2.0 and .NET Standard 2.1 for optimal compatibility, as well as the latest dotnet versions to use the latest framework features.
| .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 |
👁 NuGet version
👁 Nuget downloads
dotnet add package JK.Mexc.Net
Mexc.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.
Basic request:
// Get the ETH/USDT ticker via rest request
var restClient = new MexcRestClient();
var tickerResult = await restClient.SpotApi.ExchangeData.GetTickerAsync("ETHUSDT");
var lastPrice = tickerResult.Data.LastPrice;
Place order:
var restClient = new MexcRestClient(opts => {
opts.ApiCredentials = new MexcCredentials("APIKEY", "APISECRET");
});
// Place Limit order to buy 0.1 ETH at 2000
var orderResult = await restClient.SpotApi.Trading.PlaceOrderAsync(
"ETHUSDT",
OrderSide.Buy,
OrderType.Limit,
quantity: 10,
price: 2000
);
WebSocket subscription:
// Subscribe to ETH/USDT ticker updates via the websocket API
var socketClient = new MexcSocketClient();
var tickerSubscriptionResult = socketClient.SpotApi.SubscribeToMiniTickerUpdatesAsync("ETHUSDT", (update) =>
{
var lastPrice = update.Data.LastPrice;
});
For information on the clients, dependency injection, response processing and more see the Mexc.Net documentation or have a look at the examples here or here.
Mexc.Net includes AI-oriented documentation and examples for code generation tools:
| File | Purpose |
|---|---|
| Agents skill instructions with core usage patterns and pitfalls | |
| Short LLM index with links to docs, examples, and critical usage rules | |
| Detailed LLM context with endpoint routing, code patterns, and anti-hallucination checks | |
| Intent-to-method map for the actual Mexc.Net REST, WebSocket, and shared API surface | |
| Compilable single-file examples for common REST, WebSocket, shared API, and error handling workflows |
GitHub Copilot and Cursor instructions are also provided in .github/copilot-instructions.md and .cursor/rules/mexc-net.mdc; both point back to the root AI context files.
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.
👁 Nuget version
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 |
|---|---|---|
| Market Data Endpoints | ✓ | restClient.SpotApi.ExchangeData |
| SubAccount Endpoints | ✓ | restClient.SpotApi.SubAccount |
| Acount/Trade | ✓ | restClient.SpotApi.Account / restClient.SpotApi.Trading |
| Wallet endpoints | ✓ | restClient.SpotApi.Account |
| Websocket Market Streams | ✓ | socketClient.SpotApi |
| Websocket User Data Streams | ✓ | socketClient.SpotApi |
| API | Supported | Location |
|---|---|---|
| Market Endpoints | ✓ | restClient.FuturesApi.ExchangeData |
| Account and trading Endpoints | ✓ | restClient.FuturesApi.Account/restClient.FuturesApi.Trading |
| WebSocket Public | ✓ | socketClient.FuturesApi |
| WebSocket Private | ✓ | socketClient.FuturesApi |
| API | Supported | Location |
|---|---|---|
| * | X |
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 5.3.0 - 08 Jun 2026
Updated CryptoExchange.Net to version 11.2.2
Added restClient.SpotApi.Account.GetRebateHistoryAsync endpoint
Added restClient.SpotApi.Account.GetRebateDetailsAsync endpoint
Added restClient.SpotApi.Account.GetRebateKickbackAsync endpoint
Added restClient.SpotApi.Account.GetAffiliateCommissionAsync endpoint
Added Shared IFuturesOrderClientIdRestClient implementation
Fixed Shared GetFuturesUserTradesAsync Side determination
Fixed MexcUserAsset name property deserialization
Fixed incorrect network naming handling in Shared GetAssetsAsync implementation
Fixed partially canceled orders not returned in Shared Spot GetClosedSpotOrdersAsync implementation
Fixed user client provider not caching new client when previous client was disposed
Notes for updating:
Version 5.2.0 - 26 May 2026
Version 5.1.3 - 06 May 2026
Version 5.1.2 - 03 May 2026
Version 5.1.1 - 01 May 2026
Version 5.1.0 - 01 May 2026
Version 5.0.1 - 09 Apr 2026
Version 5.0.0 - 01 Apr 2026
Version 4.9.0 - 24 Mar 2026
Updated CryptoExchange.Net to version 11.0.1, see https://github.com/JKorf/CryptoExchange.Net/releases/ for full release notes
Updated class for supplying API credentials from ApiCredentials to MexcCredentials
Updated Shared order status parsing to default to Unknown value if not parsable
Added support for specifying non-HMAC credentials via Configuration
Notes for updating:
ApiCredentials = new ApiCredentials(..) ⇒ ApiCredentials = new MexcCredentials(..)Version 4.8.0 - 06 Mar 2026
Version 4.7.0 - 24 Feb 2026
Version 4.6.0 - 16 Feb 2026
Version 4.5.0 - 10 Feb 2026
Version 4.4.0 - 06 Feb 2026
Version 4.3.2 - 26 Jan 2026
Version 4.3.1 - 23 Jan 2026
Version 4.3.0 - 22 Jan 2026
Version 4.2.2 - 19 Jan 2026
Version 4.2.1 - 14 Jan 2026
Version 4.2.0 - 13 Jan 2026
Version 4.1.0 - 07 Jan 2026
Version 4.0.2 - 18 Dec 2025
Version 4.0.1 - 18 Dec 2025
Version 4.0.0 - 16 Dec 2025
Version 3.12.0 - 11 Nov 2025
Version 3.11.0 - 03 Nov 2025
Version 3.10.0 - 16 Oct 2025
Version 3.9.0 - 30 Sep 2025
Version 3.8.0 - 01 Sep 2025
Version 3.7.0 - 25 Aug 2025
Version 3.6.0 - 20 Aug 2025
Version 3.5.0 - 04 Aug 2025
Version 3.4.0 - 31 Jul 2025
Version 3.3.0 - 23 Jul 2025
Version 3.2.0 - 14 Jul 2025
Version 3.1.1 - 20 Jun 2025
Version 3.1.0 - 02 Jun 2025
Version 3.0.0 - 13 May 2025
Version 3.0.0-beta3 - 01 May 2025
Version 3.0.0-beta2 - 23 Apr 2025
Version 3.0.0-beta1 - 22 Apr 2025
Version 2.1.0 - 11 Feb 2025
Version 2.0.0 - 24 Jan 2025
Version 1.15.2 - 22 Jan 2025
Version 1.15.1 - 07 Jan 2025
Version 1.15.0 - 23 Dec 2024
Version 1.14.1 - 20 Dec 2024
Version 1.14.0 - 13 Dec 2024
Version 1.13.1 - 03 Dec 2024
Version 1.13.0 - 28 Nov 2024
Version 1.12.0 - 19 Nov 2024
Version 1.11.0 - 06 Nov 2024
Version 1.10.0 - 28 Oct 2024
Version 1.9.0 - 22 Oct 2024
Version 1.8.2 - 14 Oct 2024
Version 1.8.1 - 14 Oct 2024
Version 1.8.0 - 27 Sep 2024
Version 1.7.2 - 08 Aug 2024
Version 1.7.1 - 08 Aug 2024
Version 1.7.0 - 07 Aug 2024
Version 1.6.0 - 27 Jul 2024
Version 1.5.0 - 16 Jul 2024
Version 1.4.1 - 02 Jul 2024
Version 1.4.0 - 23 Jun 2024
Version 1.3.0 - 11 Jun 2024
Version 1.2.5 - 02 Jun 2024
Version 1.2.4 - 07 May 2024
Version 1.2.3 - 01 May 2024
Version 1.2.2 - 28 Apr 2024
Version 1.2.1 - 23 Apr 2024
Version 1.2.0 - 18 Apr 2024
Version 1.1.1 - 24 Mar 2024
Version 1.1.0 - 16 Mar 2024
Version 1.0.1 - 28 Feb 2024
Version 1.0.0 - 25 Feb 2024
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 2 NuGet packages that depend on JK.Mexc.Net:
| Package | Downloads |
|---|---|
|
CryptoClients.Net
CryptoClients.Net offers full easy access to 27 different cryptocurrency exchange API's, such as Binance, Bybit, HyperLiquid and many more. It offers a unified way to access the API's and tools to dynamically call endpoints on different exchanges. |
|
|
Le.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. |
Showing the top 1 popular GitHub repositories that depend on JK.Mexc.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 | 425 | 6/8/2026 |
| 5.2.0 | 741 | 5/26/2026 |
| 5.1.3 | 646 | 5/6/2026 |
| 5.1.2 | 298 | 5/3/2026 |
| 5.1.1 | 159 | 5/1/2026 |
| 5.1.0 | 430 | 5/1/2026 |
| 5.0.1 | 1,452 | 4/9/2026 |
| 5.0.0 | 1,171 | 4/1/2026 |
| 4.9.0 | 1,019 | 3/24/2026 |
| 4.8.0 | 689 | 3/6/2026 |
| 4.7.0 | 1,636 | 2/24/2026 |
| 4.6.0 | 2,571 | 2/16/2026 |
| 4.5.0 | 629 | 2/10/2026 |
| 4.4.0 | 312 | 2/6/2026 |
| 4.3.2 | 537 | 1/26/2026 |
| 4.3.1 | 321 | 1/23/2026 |
| 4.3.0 | 1,346 | 1/22/2026 |
| 4.2.2 | 372 | 1/19/2026 |
| 4.2.1 | 241 | 1/14/2026 |
| 4.2.0 | 256 | 1/13/2026 |