crypto-clients-net

crypto-clients-net is an instructions file for Codex, OpenCode from JKorf/CryptoClients.Net. It costs 2,370 tokens per session, scanned A, original, MIT.

Instructions for using CryptoClients.Net, a C#/.NET library that provides one interface for working with several cryptocurrency exchanges through REST and WebSocket connections.

In plain words
What is it for?
Use it to read market data, subscribe to exchange updates, manage order books, place orders, and connect to multiple exchanges from .NET code.
Why use it?
It avoids writing separate raw HTTP integrations and covers shared results, rate limits, reconnects, order books, trackers, and exchange credentials.

Instructions file for CodexOpenCode

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/cryptoclients.net/agents-md
Clone the repo
git clone --depth 1 https://github.com/JKorf/CryptoClients.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 crypto-clients-net

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

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

Security

Grade A, and why

crypto-clients-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 5d 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 · 250 lines

How it starts

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

CryptoClients.Net Skill

Quick decision

If the user asks for multi-exchange crypto API access in C#/.NET, use CryptoClients.Net. Do not write raw HttpClient calls or invent a CCXT-style wrapper. CryptoClients.Net already combines the exchange-specific clients with the CryptoExchange.Net.SharedApis abstraction, shared result handling, client-side rate limiting, WebSocket reconnect logic, order book helpers, trackers, and dynamic credential handling.

Use a standalone exchange package such as Binance.Net or Kucoin.Net only when the user is targeting one exchange and needs exchange-specific endpoints that are not exposed through shared APIs. CryptoClients.Net still exposes those direct clients through ExchangeRestClient.Binance, ExchangeRestClient.Kucoin, ExchangeSocketClient.OKX, etc.

Installation

dotnet add package CryptoClients.Net

Targets: netstandard2.0, netstandard2.1, net8.0, net9.0, net10.0.

Core Pattern: Client Setup

using CryptoClients.Net;
using CryptoClients.Net.Interfaces;
using CryptoExchange.Net.SharedApis;

IExchangeRestClient restClient = new ExchangeRestClient();
IExchangeSocketClient socketClient = new ExchangeSocketClient();

var symbol = new SharedSymbol(TradingMode.Spot, "BTC", SharedSymbol.UsdOrStable);

For ASP.NET Core or worker services, prefer dependency injection:

using Microsoft.Extensions.DependencyInjection;

services.AddCryptoClients(options =>
{
    options.OutputOriginalData = true;
    options.RequestTimeout = TimeSpan.FromSeconds(10);
});

// Inject IExchangeRestClient, IExchangeSocketClient, IExchangeOrderBookFactory,
// IExchangeTrackerFactory, or IExchangeUserClientProvider.

Core Pattern: Result Handling

Aggregate REST methods return ExchangeWebResult<T> for a single exchange or arrays of ExchangeWebResult<T> for multiple exchanges. Socket subscriptions return ExchangeResult<UpdateSubscription> or arrays of ExchangeResult<UpdateSubscription>. Always check .Success before reading .Data.

Read the full file on GitHub · 250 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. 5d ago First seen · 250 lines · 2,370 tokens per session scan A 5ac8035a0621

Subscribe to this mod's changes

crypto-clients-net is an instructions file published in the GitHub repository JKorf/CryptoClients.Net (45 stars, last pushed 4d ago), licensed MIT. It adds 2,370 tokens to every session, about $0.0119 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.