---
name: Bybit Trading
slug: bybit-trading
category: AI Engineering
description: Trade cryptocurrencies on Bybit using natural language commands across any AI assistant. Supports spot, derivatives, earn, and more.
github: "https://github.com/bybit-exchange/skills"
language: JavaScript
stars: 70
forks: 10
install: "git clone https://github.com/bybit-exchange/skills"
added: 2026-07-16T03:20:46.271Z
last_synced: 2026-07-16T03:20:46.271Z
canonical_url: "https://dirskills.com/skills/bybit-trading"
---

# Bybit Trading

Trade cryptocurrencies on Bybit using natural language commands across any AI assistant. Supports spot, derivatives, earn, and more.

**Install:** `git clone https://github.com/bybit-exchange/skills`

## README

# Bybit AI Trading Skill

Trade on Bybit using natural language. Tell any AI assistant one sentence, and it can execute trades, check markets, manage positions, and more — zero installation required.

**Version:** 1.5.3 | **License:** MIT

## How It Works

Copy the following line and send it to your AI assistant:

```
Please read https://raw.githubusercontent.com/bybit-exchange/skills/main/SKILL.md, save it as a skill, and help me trade on Bybit.
```

The AI will download and install the skill automatically — then you can start trading in natural language. No npm packages, no CLI tools, no config files.

## Supported AI Platforms

Works with any AI assistant that can read files or URLs:

- OpenClaw
- Claude (Code, Desktop, API)
- ChatGPT
- Gemini
- Cursor / Windsurf
- Codex

## Capabilities

| Module | What Users Can Do |
|--------|-------------------|
| **Market** | Real-time prices, klines (13 intervals), orderbook (500 levels), funding rates, open interest, volatility |
| **Spot** | Market/limit orders, batch orders (20/batch), cancel, amend, spot margin |
| **Derivatives** | Long/short, leverage, TP/SL, trailing stop, conditional orders, hedge mode, margin adjustment |
| **Earn** | Flexible saving, on-chain staking, dual assets (structured products with BuyLow/SellHigh) |
| **Account** | Balances, internal transfers, deposit addresses, fee rates, sub-accounts, asset conversion |
| **Advanced** | WebSocket streams, crypto loans, RFQ block trades, spread trading, broker management |
| **Strategy** | TWAP, iceberg orders, chase orders, algorithmic execution |
| **Trading Bot** | Spot/futures grid bots, DCA bots, martingale, combo bots |
| **Copy Trading** | Follow top traders, classic and TradFi copy trading |
| **Alpha Trade** | On-chain DEX token swaps, meme coins, quote-then-execute model |
| **Pay** | QR payments, refunds, recurring agreement billing |
| **Fiat** | Fiat-to-crypto OTC, P2P ads and order management |

## Quick Start

### 1. Get an API Key

1. Log in to [Bybit](https://www.bybit.com) → API Management → Create New Key
2. Enable **Read + Trade** permissions only (never enable Withdraw for AI use)
3. Recommended: bind your IP and use a dedicated sub-account with limited balance

### 2. Configure Credentials

**Local CLI** (Claude Code, Cursor, etc.):

```bash
export BYBIT_API_KEY="your_api_key"
export BYBIT_API_SECRET="your_secret_key"
export BYBIT_ENV="mainnet"   # or "testnet"
```

**OpenClaw** — use `.env` file:

```bash
# ~/.openclaw/.env
BYBIT_API_KEY=your_api_key
BYBIT_API_SECRET=your_secret_key
BYBIT_ENV=mainnet
```

**Cloud AI** (ChatGPT, Gemini) — the AI will ask for credentials interactively and keep them in memory for the session only.

### 3. Start Trading

Just tell the AI what you want in natural language. The skill handles the rest.

## Security

| Feature | Description |
|---------|-------------|
| **Mainnet by default** | Users start on mainnet with full trade confirmation; can switch to testnet for practice |
| **Trade confirmation** | Every mainnet write operation shows a structured summary card — user must type CONFIRM |
| **Large order protection** | Orders exceeding 20% of balance or $10,000 trigger additional warnings |
| **API key masking** | Keys are displayed as first 5 + last 4 characters only |
| **Local HMAC signing** | Signatures are computed locally — secrets never leave the user's device |
| **Prompt injection defense** | API response text fields are displayed but never executed |
| **Graceful degradation** | If a module fails to load, write operations are disabled (read-only fallback) |
| **Rate limit protection** | Built-in 429 backoff and call interval rules |

## Auto Update

The skill includes a self-update mechanism. At session start, it checks the `VERSION` file on GitHub. If a newer version is available, it downloads updated files listed in `MANIFEST` — keeping users on the latest version automatically.

## License

[MIT](LICENSE)

