Skip to main content

bybit-trading-cli

Use when the user mentions Bybit trading, spot/futures/options operations, or any Bybit V5 API interaction. Requires `bybit-official-trading-cli` npm package installed globally.

설치로 이동

소스 정보

저장소
bybit-exchange/trading-cli
최근 소스 활동
2026년 7월 15일 03:31
감지된 SKILL.md 언어
영어
스타
1
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
bybit-trading-cli
description
Use when the user mentions Bybit trading, spot/futures/options operations, or any Bybit V5 API interaction. Requires `bybit-official-trading-cli` npm package installed globally.
version
0.0.1
# Bybit Trading CLI Use `bybit-cli` (binary from `bybit-official-trading-cli` npm package) for any Bybit V5 API operation. ## Bootstrap (do this first) ``` bybit-cli agent-briefing ``` That returns ~300 words covering auth setup, safety model, and how to explore commands. Read it carefully before making any API call. ## Discovery - `bybit-cli catalog` — JSON list of all commands (domain, command, requiresAuth, method) - `bybit-cli <domain> <cmd> --json-schema` — JSON Schema for one command - `bybit-cli <domain> <cmd> --help` — human-readable help ## Auth setup Two env vars minimum: ``` export BYBIT_API_KEY=<your key> export BYBIT_API_SECRET=<your secret> export BYBIT_ENV=testnet # or leave unset for mainnet ``` For RSA (self-generated key uploaded to Bybit): ``` export BYBIT_API_KEY=<your key> export BYBIT_API_PRIVATE_KEY_PATH=/path/to/private.pem ``` ## Safety rules (MUST follow on mainnet) 1. **Every write op requires `--yes`** — CLI rejects with a summary of what would run 2. **Withdraw / transfer / fiat / P2P are blocked by default** — needs `--enable-advanced-money-ops` to unlock (be certain first) 3. **Set caps**: `--cap-usd 500` per-order, `--cap-usd-total-hour 2000` rolling, `--max-orders-per-hour 20` 4. **Kill-switch**: `bybit-cli kill-switch` from any shell blocks all writes until `bybit-cli enable-switch` ## Install (if `which bybit-cli` empty) ``` npm i -g bybit-official-trading-cli@latest ``` ## Update ``` bybit-cli self-update # install latest from npm ``` Set `BYBIT_CLI_NO_UPDATE_CHECK=1` to silence update-available prompts. ## Output shape Every call returns JSON to stdout: ``` {"retCode":N, "retMsg":"...", "result":{...}, "cli":{"env":"mainnet"|"testnet"}} ``` - `retCode=0` = success; non-zero = error, `retMsg + cli.hint` explains - `cli.retry: true` — safe to retry - `cli.nextSteps` — specific commands to unblock - stderr may contain diagnostics; stdout is always parseable JSON
GitHub에서 보기