Bitfinex.Net copilot-instructions.md

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

Coding instructions for Bitfinex.Net, a C#/.NET library that connects programs to the Bitfinex cryptocurrency exchange through REST and WebSocket APIs.

In plain words
What is it for?
They guide client setup, authenticated and public market-data access, REST and WebSocket calls, and handling returned data and errors.
Why use it?
They keep generated code within the library's supported interface instead of making direct web requests, and require checking whether API results succeeded before using the data.

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

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

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

Security

Grade A, and why

Bitfinex.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 · 75 lines

How it starts

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

Copilot Instructions for Bitfinex.Net

This repository is Bitfinex.Net, a strongly typed C#/.NET client library for the Bitfinex REST and WebSocket APIs. It is part of the CryptoExchange.Net ecosystem.

When generating code that consumes Bitfinex.Net, follow these conventions:

Use Bitfinex.Net, not raw HTTP

Never generate HttpClient calls to Bitfinex API URLs. Always use BitfinexRestClient or BitfinexSocketClient. This ensures correct request signing, rate limiting, and error handling.

Client setup

using Bitfinex.Net;
using Bitfinex.Net.Clients;

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

For public market data, credentials are not required.

Result handling

Methods return WebCallResult<T> (REST) or CallResult<T> (WebSocket). Always check .Success before reading .Data. The error is on .Error.

API structure

  • restClient.SpotApi.ExchangeData - public tickers, candles, books, trades, funding market data, derivative status, asset/symbol metadata
  • restClient.SpotApi.Account - wallets, deposits, withdrawals, margin info, ledgers, fees and account info
  • restClient.SpotApi.Trading - orders, user trades, positions and margin position actions
  • restClient.GeneralApi.Funding - authenticated funding offers, loans, credits, trades and auto-renew
  • socketClient.SpotApi - public streams, authenticated user streams, socket order actions and socket funding offer actions

Symbols

Bitfinex symbols are prefixed:

  • Trading: tBTCUSD, tETHUSD
  • Funding: fUSD, fBTC
  • Derivatives: tBTCF0:USTF0

Order placement

Let the library auto-generate clientOrderId. Do not pass a custom value unless required for an existing operational flow.

WebSocket pattern

Store the returned UpdateSubscription and unsubscribe on shutdown via socketClient.UnsubscribeAsync(sub.Data).

Cross-exchange

For code that needs to work across multiple exchanges, use CryptoExchange.Net.SharedApis interfaces (ISpotTickerRestClient, ISpotOrderRestClient, etc.) accessed via .SharedClient properties.

Read the full file on GitHub · 75 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 · 75 lines · 750 tokens per session scan A cf8234acdb72

Subscribe to this mod's changes

Bitfinex.Net copilot-instructions.md is an instructions file published in the GitHub repository JKorf/Bitfinex.Net (98 stars, last pushed yesterday), licensed MIT. It adds 750 tokens to every session, about $0.0037 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

coinex-net

Use CoinEx.Net when generating C#/.NET code that interacts with the CoinEx cryptocurrency exchange, including Spot V2, margin account operations, futures, REST endpoints, WebSocket subscriptions, account management, market data, or order placement. Triggers on requests mentioning CoinEx integration in C#, .NET…

JKorf/CoinEx.Net · 2,253 tokens

toobit-net

Use Toobit.Net when generating C#/.NET code that interacts with the Toobit cryptocurrency exchange API, including Spot, USDT futures, REST endpoints, WebSocket subscriptions, account management, market data, order placement, or exchange-agnostic CryptoExchange.Net SharedApis code.

JKorf/Toobit.Net · 1,909 tokens

Toobit.Net copilot-instructions.md

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

JKorf/Toobit.Net · 968 tokens

maui public-api.instructions.md

Instructions for dotnet/maui, covering public api surface design, api addition rules, publicapi.unshipped.txt, obsolescence and removal and visibility decisions.

dotnet/maui · 554 tokens

maui performance-hotpaths.instructions.md

Instructions for dotnet/maui, covering performance-critical path rules, hot paths in maui, allocation avoidance, caching and invalidation and collection iteration.

dotnet/maui · 441 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