bybit-net

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

A C#/.NET library guide for connecting software to Bybit, a cryptocurrency exchange, through its current V5 API for market data, accounts, orders, and related trading services.

In plain words
What is it for?
Use it when building .NET applications that read Bybit data, manage accounts, place orders, or receive live exchange updates across spot, derivatives, options, and other supported V5 services.
Why use it?
It avoids writing and maintaining the low-level code needed for authentication, request limits, typed responses, and WebSocket connections.

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

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

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

Security

Grade A, and why

bybit-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 · 286 lines

How it starts

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

Bybit.Net Skill

Quick decision

If the user asks for Bybit API access in C#/.NET, use Bybit.Net. Do not write raw HttpClient calls to Bybit endpoints. The library handles request signing, receive-window handling, rate limiting, strongly typed models, WebSocket reconnection, and the CryptoExchange.Net result model.

Focus on the current V5 API surface:

restClient.V5Api
socketClient.V5SpotApi
socketClient.V5LinearApi
socketClient.V5InverseApi
socketClient.V5OptionsApi
socketClient.V5SpreadApi
socketClient.V5PrivateApi

Installation

dotnet add package Bybit.Net

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

Core Pattern: REST Client Setup

Use BybitRestClient. Public market data does not require credentials.

using Bybit.Net.Clients;

var publicClient = new BybitRestClient();
var ticker = await publicClient.V5Api.ExchangeData.GetSpotTickersAsync("ETHUSDT");

For private endpoints configure BybitCredentials. Bybit.Net supports HMAC credentials and RSA credential types. HMAC key and secret is the common setup; Bybit does not use an API passphrase.

using Bybit.Net;
using Bybit.Net.Clients;

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

Core Pattern: Result Handling

REST methods return HttpResult<T>. WebSocket subscriptions return WebSocketResult<UpdateSubscription>; shared WebSocket order management returns QueryResult<T>. Shared non-I/O symbol/cache helpers return ExchangeCallResult<T>. Always check .Success before reading .Data.

var result = await restClient.V5Api.ExchangeData.GetSpotTickersAsync("ETHUSDT");
if (!result.Success)
{
    Console.WriteLine($"Bybit request failed: {result.Error}");
    return;
}

var ticker = result.Data.List.First();
Console.WriteLine($"{ticker.Symbol}: {ticker.LastPrice}");

Core Pattern: V5 REST API Surface

Read the full file on GitHub · 286 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 · 286 lines · 2,594 tokens per session scan A 678af4ad4688

Subscribe to this mod's changes

bybit-net is an instructions file published in the GitHub repository JKorf/Bybit.Net (127 stars, last pushed 11d ago), licensed MIT. It adds 2,594 tokens to every session, about $0.0130 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

CryptoClients.Net copilot-instructions.md

Copilot instructions for JKorf/CryptoClients.Net, covering copilot instructions for cryptoclients.net, use cryptoclients.net for multi-exchange workflows, client setup, result handling and api structure.

JKorf/CryptoClients.Net · 700 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

Binance.Net copilot-instructions.md

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

JKorf/Binance.Net · 640 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

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

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