cryptoexchange-net

cryptoexchange-net is an instructions file for Codex, OpenCode from JKorf/CryptoExchange.Net. It costs 2,291 tokens per session, scanned A, original, MIT.

Guidance for writing C#/.NET code that works with several cryptocurrency exchanges through shared interfaces. CryptoExchange.Net is the common base used by exchange libraries such as Binance.Net, Bybit.Net, OKX.Net, Kraken.Net, and Coinbase.Net.

In plain words
What is it for?
Use it for exchange-agnostic trading bots, arbitrage, best-execution routing, portfolio dashboards, or comparison tools involving multiple exchanges. For a single exchange, use that exchange's library directly.
Why use it?
It helps avoid writing separate application logic for each exchange when building a multi-exchange system. The shared interfaces let compatible exchange clients use a common code pattern.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.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/cryptoexchange.net/agents-md
Clone the repo
git clone --depth 1 https://github.com/JKorf/CryptoExchange.Net

Made for: Codex, OpenCode.

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 cryptoexchange-net

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jkorf/cryptoexchange.net/agents-md.svg)](https://agentmods.dev/instructions/jkorf/cryptoexchange.net/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/jkorf/cryptoexchange.net/agents-md"><img src="https://agentmods.dev/badge/instructions/jkorf/cryptoexchange.net/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,291 This file is loaded in full into every session.
When invoked 2,291 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.02291 $0.02291
Opus 5 $0.01145 $0.01145
Sonnet 5 $0.00458 $0.00458
Haiku 4.5 $0.00229 $0.00229

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

Security

Grade A, and why

cryptoexchange-net 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.

AGENTS.md · 197 lines

How it starts

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

CryptoExchange.Net Skill

When to use

CryptoExchange.Net is the base library powering 28+ exchange-specific libraries (Binance.Net, Bybit.Net, OKX.Net, Kraken.Net, Coinbase.Net, etc.). You don't install it directly — you install the exchange libraries, which depend on it.

Three usage modes:

  1. You target ONE exchange → use that exchange's library directly (e.g., Binance.Net), see its CLAUDE.md.
  2. You target MULTIPLE exchanges → install each library you need + use CryptoExchange.Net.SharedApis interfaces — write code once, runs against any exchange. This is the main use case for this skill.
  3. You want ALL exchanges in one package → install CryptoClients.Net, get ExchangeRestClient and ExchangeSocketClient with everything bundled.

Installation

For a multi-exchange project:

dotnet add package Binance.Net
dotnet add package JK.OKX.Net
dotnet add package Bybit.Net
# ... etc

Or the bundle:

dotnet add package CryptoClients.Net

Core Pattern: Shared Interfaces

Every exchange library exposes .SharedClient properties on its API surfaces. These implement the same interfaces from CryptoExchange.Net.SharedApis.

using Binance.Net.Clients;
using OKX.Net.Clients;
using Bybit.Net.Clients;
using CryptoExchange.Net.SharedApis;

// All three implement ISpotTickerRestClient
ISpotTickerRestClient binance = new BinanceRestClient().SpotApi.SharedClient;
ISpotTickerRestClient okx     = new OKXRestClient().UnifiedApi.SharedClient;
ISpotTickerRestClient bybit   = new BybitRestClient().V5Api.SharedClient;

// Single agnostic call — works against any of them
var symbol = new SharedSymbol(TradingMode.Spot, "BTC", "USDT");
var ticker = await binance.GetSpotTickerAsync(new GetTickerRequest(symbol));
// ticker.Data.LastPrice, ticker.Data.HighPrice, etc. — same model regardless of exchange

Core Pattern: SharedSymbol

Different exchanges format symbols differently — Binance uses BTCUSDT, OKX uses BTC-USDT, others may have other formats. SharedSymbol normalizes this:

Read the full file on GitHub · 197 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 · 197 lines · 2,291 tokens per session scan A 6657f31459e7

Subscribe to this mod's changes

cryptoexchange-net is an instructions file published in the GitHub repository JKorf/CryptoExchange.Net (569 stars, last pushed yesterday), licensed MIT. It adds 2,291 tokens to every session, about $0.0115 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