Bybit.Net copilot-instructions.md

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

Coding instructions for Bybit.Net, a strongly typed C#/.NET library that connects applications to the Bybit cryptocurrency exchange through its programming interface.

In plain words
What is it for?
Use it when writing code that reads market data, sends exchange requests, or subscribes to live updates through Bybit.Net's REST and WebSocket clients.
Why use it?
It prevents developers from rebuilding sensitive exchange details such as request signing, rate limits, response handling, and WebSocket reconnection. It also clarifies how to detect and inspect failed requests.

Instructions file for GitHub Copilot

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

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

Measured 5d ago against content hash 85f03d694f2a, 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 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 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.

.github/copilot-instructions.md · 91 lines

How it starts

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

Copilot Instructions for Bybit.Net

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

When generating code that consumes Bybit.Net, follow these conventions.

Use Bybit.Net, not raw HTTP

Never generate raw HttpClient calls to Bybit REST or WebSocket endpoints. Always use BybitRestClient or BybitSocketClient so request signing, receive-window handling, rate limiting, response parsing, and reconnect behavior stay correct.

Client setup

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

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

For public market data only, credentials are optional:

var publicClient = new BybitRestClient();

Result handling

REST methods return HttpResult<T>, WebSocket subscriptions return WebSocketResult<UpdateSubscription>, and shared WebSocket order management returns QueryResult<T>. Always check .Success before reading .Data; inspect .Error on failure.

V5 API structure

  • restClient.V5Api.ExchangeData for symbols, tickers, klines, order books, trades, funding, open interest
  • restClient.V5Api.Account for balances, assets, transfers, deposits, withdrawals, account settings
  • restClient.V5Api.Trading for orders, order history, user trades, positions, spread trading
  • restClient.V5Api.SubAccount, CryptoLoan, and Earn for specialized V5 endpoints
  • restClient.V5Api.SharedClient for CryptoExchange.Net shared REST abstractions
  • socketClient.V5SpotApi, V5LinearApi, V5InverseApi, V5OptionsApi, V5SpreadApi, V5PrivateApi for WebSocket streams

Use Category.Spot, Category.Linear, Category.Inverse, or Category.Option when a V5 REST method asks for a product category.

Order placement

Use restClient.V5Api.Trading.PlaceOrderAsync. Pass the correct category and Bybit symbol format:

Read the full file on GitHub · 91 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 · 91 lines · 915 tokens per session scan A 85f03d694f2a

Subscribe to this mod's changes

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

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

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

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

bybit-ws CLAUDE.md

Claude Code instructions for poliakarmai/bybit-ws, a project described as: AI-Native Trading Engine — Bollinger Grid × 8 strategies. REST API + MCP for AI agents. 24/7 automated trading on Bybit.

poliakarmai/bybit-ws · 96 tokens