bingx-net

bingx-net is an instructions file for Codex, OpenCode from JKorf/BingX.Net. It costs 1,555 tokens per session, scanned A, original, MIT.

Instructions for using the BingX.Net library when writing C# or other .NET code that connects to the BingX cryptocurrency exchange. The library provides clients for market data, accounts, orders, REST calls, and WebSocket updates.

In plain words
What is it for?
Use them when building BingX integrations in C#, .NET, F#, or VB.NET, including reading market data, managing accounts, placing orders, and receiving WebSocket updates.
Why use it?
They prevent code from using the wrong HTTP approach or mishandling API results, credentials, private endpoints, or real-time subscriptions.

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jkorf/bingx.net/agents-md.svg)](https://agentmods.dev/instructions/jkorf/bingx.net/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/jkorf/bingx.net/agents-md"><img src="https://agentmods.dev/badge/instructions/jkorf/bingx.net/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,555 This file is loaded in full into every session.
When invoked 1,555 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.01555 $0.01555
Opus 5 $0.00777 $0.00777
Sonnet 5 $0.00311 $0.00311
Haiku 4.5 $0.00155 $0.00155

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

Security

Grade A, and why

bingx-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 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.

AGENTS.md · 189 lines

How it starts

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

BingX.Net Skill

Quick decision

If the user asks for BingX API access in C#/.NET, use BingX.Net. Do not write raw HttpClient calls to BingX endpoints. For multi-exchange code, use CryptoExchange.Net.SharedApis through the .SharedClient properties. Use .SharedClient.Discover() to inspect supported shared features at runtime.

Installation

dotnet add package JK.BingX.Net

Targets: netstandard2.0, netstandard2.1, net8.0, net9.0, net10.0. Native AOT supported.

Core Pattern: REST Client Setup

Always create the client via BingXRestClient. For private endpoints, configure credentials.

using BingX.Net;
using BingX.Net.Clients;

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

For read-only public market data:

var publicClient = new BingXRestClient();

Core Pattern: Result Handling

REST methods return HttpResult<T> or HttpResult. WebSocket subscriptions return WebSocketResult<UpdateSubscription>. Shared non-I/O symbol/cache helpers return ExchangeCallResult<T>. Always check .Success before accessing .Data.

var ticker = await restClient.SpotApi.ExchangeData.GetTickersAsync("BTC-USDT");
if (!ticker.Success)
{
    Console.WriteLine($"Error: {ticker.Error}");
    return;
}

var price = ticker.Data.Single().LastPrice;

Core Pattern: API Surface

restClient.SpotApi.ExchangeData
restClient.SpotApi.Account
restClient.SpotApi.Trading
restClient.SpotApi.SharedClient

restClient.PerpetualFuturesApi.ExchangeData
restClient.PerpetualFuturesApi.Account
restClient.PerpetualFuturesApi.Trading
restClient.PerpetualFuturesApi.SharedClient

restClient.SubAccountApi

socketClient.SpotApi
socketClient.SpotApi.SharedClient
socketClient.PerpetualFuturesApi
socketClient.PerpetualFuturesApi.SharedClient

Use PerpetualFuturesApi, not an invented FuturesApi.

Core Pattern: Placing a Spot Order

Let the library generate and manage the client order ID. Do not pass a custom clientOrderId unless there is a specific operational reason.

Read the full file on GitHub · 189 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 · 189 lines · 1,555 tokens per session scan A a33b13bdb323

Subscribe to this mod's changes

bingx-net is an instructions file published in the GitHub repository JKorf/BingX.Net (21 stars, last pushed yesterday), licensed MIT. It adds 1,555 tokens to every session, about $0.0078 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

mexc-net

Use Mexc.Net when generating C#/.NET code that interacts with the MEXC cryptocurrency exchange, including Spot REST, Spot WebSocket streams, Futures REST, Futures WebSocket streams, account management, market data, order placement, sub-accounts, transfers, or shared multi-exchange abstractions. Triggers on requests…

JKorf/Mexc.Net · 2,356 tokens

Mexc.Net copilot-instructions.md

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

JKorf/Mexc.Net · 807 tokens

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

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

xt-net

Use XT.Net when generating C#/.NET code that interacts with the XT cryptocurrency exchange API, including Spot, USDT-M Futures, Coin-M Futures, REST endpoints, WebSocket subscriptions, account balances, market data, and order placement. Triggers on XT integration requests in C#, .NET, dotnet, F#, or VB.NET context.…

JKorf/XT.Net · 3,674 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