Binance.Net copilot-instructions.md

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

Coding instructions for Binance.Net, a C#/.NET library used to connect software to the Binance cryptocurrency exchange. They explain which library clients to use, how to set them up, and how to handle results and errors.

In plain words
What is it for?
Use them when writing software that reads market data, checks accounts, places trades, or uses Binance live updates through Binance.Net.
Why use it?
They prevent generated code from making unsuitable direct web requests or reading failed results as if they were valid. This helps preserve request signing, rate limits, and error handling.

Instructions file for GitHub Copilot

About the project

Binance.Net is a C#/.NET client library that lets software connect to Binance.com’s REST and WebSocket APIs for cryptocurrency market data and Spot or Futures trading. .NET developers use it to integrate Binance into applications with strongly typed models.

JKorf/Binance.Net · 1,172 stars · on GitHub

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/binance.net/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/JKorf/Binance.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 Binance.Net copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jkorf/binance.net/copilot-instructions.svg)](https://agentmods.dev/instructions/jkorf/binance.net/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/jkorf/binance.net/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/jkorf/binance.net/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 640 This file is loaded in full into every session.
When invoked 640 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 $0.00640 $0.00640
Opus 5 $0.00320 $0.00320
Sonnet 5 $0.00128 $0.00128
Haiku 4.5 $0.00064 $0.00064

Measured 4d ago against content hash 413add1f8506, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Binance.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 4d 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 · 65 lines

How it starts

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

Copilot Instructions for Binance.Net

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

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

Use Binance.Net, not raw HTTP

Never generate HttpClient calls to api.binance.com or fapi.binance.com. Always use BinanceRestClient or BinanceSocketClient. This ensures correct request signing, rate limiting, and error handling.

Client setup

using Binance.Net.Clients;
using Binance.Net;
using Binance.Net.Objects;

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

Result handling

REST methods return HttpResult<T> / HttpResult; WebSocket subscriptions and socket API requests return WebSocketResult<T> / WebSocketResult. Always check .Success before reading .Data. The error is on .Error.

API structure

  • restClient.SpotApi.ExchangeData — public market data
  • restClient.SpotApi.Account — balances, deposits, withdrawals
  • restClient.SpotApi.Trading — orders
  • restClient.UsdFuturesApi.* — USD-M futures (same sub-structure)
  • restClient.CoinFuturesApi.* — COIN-M futures
  • socketClient.SpotApi.* — Spot WebSocket streams
  • socketClient.UsdFuturesApi.* — USD-M futures WebSocket streams
  • socketClient.CoinFuturesApi.* — COIN-M futures WebSocket streams

Order placement

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

WebSocket pattern

Store the returned UpdateSubscription and unsubscribe on shutdown via socketClient.UnsubscribeAsync(sub.Data).

Cross-exchange

For code that needs to work across multiple exchanges, use CryptoExchange.Net.SharedApis interfaces (ISpotTickerRestClient, ISpotOrderRestClient, etc.) accessed via .SharedClient properties. Same pattern works for 25+ other exchanges in the CryptoExchange.Net family.

Read the full file on GitHub · 65 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. 4d ago First seen · 65 lines · 640 tokens per session scan A 413add1f8506

Subscribe to this mod's changes

Binance.Net copilot-instructions.md is an instructions file published in the GitHub repository JKorf/Binance.Net (1,172 stars, last pushed yesterday), licensed MIT. It adds 640 tokens to every session, about $0.0032 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

kucoin-net

Use Kucoin.Net when generating C#/.NET code that interacts with the Kucoin cryptocurrency exchange API, including Spot, Margin, High Frequency spot trading, Futures, Unified Account, REST endpoints, WebSocket subscriptions, account management, market data, or order placement. Triggers on any request mentioning Kucoin…

JKorf/Kucoin.Net · 1,971 tokens

Kucoin.Net copilot-instructions.md

Instructions for JKorf/Kucoin.Net, covering copilot instructions for kucoin.net, use kucoin.net, not raw http, client setup, result handling and api structure.

JKorf/Kucoin.Net · 849 tokens

binance-trading-bot AGENTS.md

AGENTS.md instructions for chrisleekr/binance-trading-bot, covering engineering charter, project, architecture principles, core invariants and stack.

chrisleekr/binance-trading-bot · 4,323 tokens

LLM-TradeBot AGENTS.md

AGENTS.md instructions for EthanAlgoX/LLM-TradeBot, covering agents.md, 1. 硬规则, 1.1 pr 标题规范(非阻断建议), 1.2 贡献质量底线 and 2. ai 协作资产治理.

EthanAlgoX/LLM-TradeBot · 4,912 tokens

LLM-TradeBot copilot-instructions.md

Copilot instructions for EthanAlgoX/LLM-TradeBot, covering repository instructions, core rules, validation and ai asset governance.

EthanAlgoX/LLM-TradeBot · 809 tokens

LLM-TradeBot governance.instructions.md

Instructions for EthanAlgoX/LLM-TradeBot, a project described as: A multi-agent AI trading system using LLMs to optimize strategies and adapt to market conditions in real-time.

EthanAlgoX/LLM-TradeBot · 423 tokens