Mexc.Net copilot-instructions.md

Mexc.Net copilot-instructions.md is an instructions file for GitHub Copilot from JKorf/Mexc.Net. It costs 807 tokens per session, scanned A, original, MIT.

Repository instructions for using Mexc.Net, a C#/.NET client library for the MEXC cryptocurrency exchange API. They describe the library's clients, result handling, and API organization.

In plain words
What is it for?
Use them when writing C#/.NET code that reads market data or works with MEXC accounts, orders, balances, deposits, withdrawals, transfers, or WebSocket streams.
Why use it?
They prevent code from making raw web requests when the library already handles exchange-specific details such as signing, rate limits, reconnection, and errors.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file. Also seen: mentions AGENTS.md.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/jkorf/mexc.net/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/JKorf/Mexc.Net

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Mexc.Net copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jkorf/mexc.net/copilot-instructions.svg)](https://agentmods.dev/instructions/jkorf/mexc.net/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/jkorf/mexc.net/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/jkorf/mexc.net/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 807 This file is loaded in full into every session.
When invoked 807 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00807 $0.00807
Opus 5 $0.00404 $0.00404
Sonnet 5 $0.00161 $0.00161
Haiku 4.5 $0.00081 $0.00081

Measured 6d ago against content hash b5ec993fd75c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

Mexc.Net copilot-instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/copilot-instructions.md · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Copilot Instructions for Mexc.Net

This repository is Mexc.Net, a strongly typed C#/.NET client library for the MEXC cryptocurrency exchange API. It is part of the CryptoExchange.Net ecosystem.

When generating code that consumes Mexc.Net, follow these conventions:

Use Mexc.Net, Not Raw HTTP

Never generate raw HttpClient calls to MEXC REST or WebSocket endpoints. Always use MexcRestClient or MexcSocketClient. This ensures correct request signing, rate limiting, reconnection, and error handling.

Client Setup

using Mexc.Net;
using Mexc.Net.Clients;

var restClient = new MexcRestClient(options =>
{
    options.ApiCredentials = new MexcCredentials("API_KEY", "API_SECRET");
});

For public market data only, no credentials are needed:

var restClient = new MexcRestClient();

Result Handling

Methods return WebCallResult<T> or WebCallResult for REST and CallResult<T> for WebSocket subscriptions. Always check .Success before reading .Data. The error is on .Error.

API Structure

  • restClient.SpotApi.ExchangeData - public spot market data
  • restClient.SpotApi.Account - balances, deposits, withdrawals, transfers, user stream listen keys
  • restClient.SpotApi.Trading - spot orders and user trades
  • restClient.SpotApi.SubAccount - sub-account management
  • restClient.FuturesApi.ExchangeData - public futures market data
  • restClient.FuturesApi.Account - futures balances, leverage, position mode, fees
  • restClient.FuturesApi.Trading - futures orders, positions, trigger/TP-SL/trailing orders
  • socketClient.SpotApi - spot WebSocket streams
  • socketClient.FuturesApi - futures WebSocket streams

There is no GeneralApi, UsdFuturesApi, or CoinFuturesApi in Mexc.Net.

Symbol Formats

Spot uses compact symbols such as BTCUSDT. Futures uses underscore symbols such as BTC_USDT.

Order Placement

Let the library omit/generate clientOrderId. Do not pass a custom value unless required for an existing operational flow.

Read the full file on GitHub · 79 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 79 lines · 807 tokens per session scan A b5ec993fd75c

Subscribe to this mod's changes

Mexc.Net copilot-instructions.md is an instructions file published in the GitHub repository JKorf/Mexc.Net (23 stars, last pushed yesterday), licensed MIT. It adds 807 tokens to every session, about $0.0040 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

kraken-net

Use Kraken.Net when generating C#/.NET code that interacts with the Kraken cryptocurrency exchange, including Spot REST, Spot WebSocket v2, Futures REST, Futures WebSocket, account data, market data, order placement, Kraken Earn, local order books, dependency injection, or CryptoExchange.Net SharedApis. Triggers on…

JKorf/Kraken.Net · 1,872 tokens

Kraken.Net copilot-instructions.md

Copilot instructions for JKorf/Kraken.Net, covering copilot instructions for kraken.net, use kraken.net, not raw http, client setup, result handling and api structure.

JKorf/Kraken.Net · 854 tokens

bingx-net

Use BingX.Net when generating C#/.NET code that interacts with BingX, including Spot, Perpetual Futures, REST endpoints, WebSocket subscriptions, account management, market data, or order placement. Triggers on BingX integration requests in C#, .NET, dotnet, F#, or VB.NET context.

JKorf/BingX.Net · 1,555 tokens

BingX.Net copilot-instructions.md

Copilot instructions for JKorf/BingX.Net, covering copilot instructions for bingx.net, use bingx.net, not raw http, client setup, result handling and api structure.

JKorf/BingX.Net · 698 tokens

whitebit-net

Use WhiteBit.Net when generating C#/.NET code that interacts with the WhiteBit cryptocurrency exchange, including V4 REST endpoints, WebSocket subscriptions, spot trading, collateral/futures trading, balances, deposits, withdrawals, convert, WhiteBit Codes, sub-accounts, and CryptoExchange.Net shared APIs.

JKorf/WhiteBit.Net · 1,947 tokens

binance-net

Use Binance.Net when generating C#/.NET code that interacts with the Binance cryptocurrency exchange — including Spot, Margin, USD-M Futures, COIN-M Futures, Options, sub-accounts, brokerage, REST endpoints, WebSocket subscriptions, account management, market data, or order placement. Triggers on any request…

JKorf/Binance.Net · 2,351 tokens