skills$openclaw/bybit
0xterrybit4.1k

by 0xterrybit

bybit – OpenClaw Skill

bybit is an OpenClaw Skills integration for coding workflows. Bybit exchange integration. Trade spot, derivatives, and perpetuals with up to 100x leverage.

4.1k stars1.3k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

namebybit
descriptionBybit exchange integration. Trade spot, derivatives, and perpetuals with up to 100x leverage. OpenClaw Skills integration.
owner0xterrybit
repository0xterrybit/bybit
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @0xterrybit/bybit
last updatedFeb 7, 2026

Maintainer

0xterrybit

0xterrybit

Maintains bybit in the OpenClaw Skills directory.

View GitHub profile
File Explorer
3 files
.
_meta.json
266 B
README.md
779 B
SKILL.md
6.8 KB
SKILL.md

name: bybit description: Bybit exchange integration. Trade spot, derivatives, and perpetuals with up to 100x leverage. metadata: {"clawdbot":{"emoji":"🔶","always":true,"requires":{"bins":["curl","jq"]}}}

Bybit 🔶

Leading derivatives exchange. Trade spot, perpetuals, and options with deep liquidity.

Environment Variables

VariableDescriptionRequired
BYBIT_API_KEYAPI Key from BybitYes
BYBIT_SECRETAPI SecretYes

💎 Referral Configuration

This skill uses a referral code to earn commission on trading fees.

VariableValueDescription
REFERRAL_CODECYBERPAYReferral code for fee sharing

Commission Structure:

  • Up to 50% of trading fees (Spot, Futures, Options)
  • Bonus rewards for new users
  • Lifetime commission on referred users

💡 Users who sign up through this skill automatically use the referral code!

Features

  • 📈 Spot Trading - 500+ trading pairs
  • 📊 Perpetuals - Up to 100x leverage
  • 🎯 Options - BTC/ETH options
  • 💰 Earn - Staking, savings
  • 🤖 Copy Trading - Follow top traders
  • 🎮 Trading Bots - Grid, DCA, Martingale

API Base URL

https://api.bybit.com

Authentication

API_KEY="${BYBIT_API_KEY}"
SECRET="${BYBIT_SECRET}"

# Generate signature
generate_signature() {
  local timestamp="$1"
  local params="$2"
  local sign_string="${timestamp}${API_KEY}5000${params}"
  echo -n "$sign_string" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2
}

TIMESTAMP=$(date +%s%3N)

Get Account Balance

PARAMS=""
SIGNATURE=$(generate_signature "$TIMESTAMP" "$PARAMS")

curl -s "https://api.bybit.com/v5/account/wallet-balance?accountType=UNIFIED" \
  -H "X-BAPI-API-KEY: ${API_KEY}" \
  -H "X-BAPI-SIGN: ${SIGNATURE}" \
  -H "X-BAPI-TIMESTAMP: ${TIMESTAMP}" \
  -H "X-BAPI-RECV-WINDOW: 5000" | jq '.result.list[0].coin[] | select(.walletBalance != "0") | {coin: .coin, walletBalance: .walletBalance, availableToWithdraw: .availableToWithdraw}'

Get Ticker Price

SYMBOL="BTCUSDT"
CATEGORY="spot"  # spot, linear, inverse, option

curl -s "https://api.bybit.com/v5/market/tickers?category=${CATEGORY}&symbol=${SYMBOL}" | jq '.result.list[0] | {symbol: .symbol, lastPrice: .lastPrice, highPrice24h: .highPrice24h, lowPrice24h: .lowPrice24h, volume24h: .volume24h}'

Get Order Book

curl -s "https://api.bybit.com/v5/market/orderbook?category=${CATEGORY}&symbol=${SYMBOL}&limit=10" | jq '{
  asks: .result.a[:5],
  bids: .result.b[:5]
}'

Place Spot Order

PARAMS='{"category":"spot","symbol":"BTCUSDT","side":"Buy","orderType":"Limit","qty":"0.001","price":"40000"}'
SIGNATURE=$(generate_signature "$TIMESTAMP" "$PARAMS")

curl -s -X POST "https://api.bybit.com/v5/order/create" \
  -H "Content-Type: application/json" \
  -H "X-BAPI-API-KEY: ${API_KEY}" \
  -H "X-BAPI-SIGN: ${SIGNATURE}" \
  -H "X-BAPI-TIMESTAMP: ${TIMESTAMP}" \
  -H "X-BAPI-RECV-WINDOW: 5000" \
  -d "$PARAMS" | jq '.'

Place Market Order

PARAMS='{"category":"spot","symbol":"ETHUSDT","side":"Buy","orderType":"Market","qty":"0.1"}'
SIGNATURE=$(generate_signature "$TIMESTAMP" "$PARAMS")

curl -s -X POST "https://api.bybit.com/v5/order/create" \
  -H "Content-Type: application/json" \
  -H "X-BAPI-API-KEY: ${API_KEY}" \
  -H "X-BAPI-SIGN: ${SIGNATURE}" \
  -H "X-BAPI-TIMESTAMP: ${TIMESTAMP}" \
  -H "X-BAPI-RECV-WINDOW: 5000" \
  -d "$PARAMS" | jq '.'

Place Perpetual Order

PARAMS='{"category":"linear","symbol":"BTCUSDT","side":"Buy","orderType":"Limit","qty":"0.01","price":"40000","timeInForce":"GTC"}'
SIGNATURE=$(generate_signature "$TIMESTAMP" "$PARAMS")

curl -s -X POST "https://api.bybit.com/v5/order/create" \
  -H "Content-Type: application/json" \
  -H "X-BAPI-API-KEY: ${API_KEY}" \
  -H "X-BAPI-SIGN: ${SIGNATURE}" \
  -H "X-BAPI-TIMESTAMP: ${TIMESTAMP}" \
  -H "X-BAPI-RECV-WINDOW: 5000" \
  -d "$PARAMS" | jq '.'

Get Open Orders

PARAMS="category=spot"
SIGNATURE=$(generate_signature "$TIMESTAMP" "$PARAMS")

curl -s "https://api.bybit.com/v5/order/realtime?${PARAMS}" \
  -H "X-BAPI-API-KEY: ${API_KEY}" \
  -H "X-BAPI-SIGN: ${SIGNATURE}" \
  -H "X-BAPI-TIMESTAMP: ${TIMESTAMP}" \
  -H "X-BAPI-RECV-WINDOW: 5000" | jq '.result.list[] | {symbol: .symbol, side: .side, price: .price, qty: .qty, orderStatus: .orderStatus}'

Cancel Order

PARAMS='{"category":"spot","symbol":"BTCUSDT","orderId":"12345678"}'
SIGNATURE=$(generate_signature "$TIMESTAMP" "$PARAMS")

curl -s -X POST "https://api.bybit.com/v5/order/cancel" \
  -H "Content-Type: application/json" \
  -H "X-BAPI-API-KEY: ${API_KEY}" \
  -H "X-BAPI-SIGN: ${SIGNATURE}" \
  -H "X-BAPI-TIMESTAMP: ${TIMESTAMP}" \
  -H "X-BAPI-RECV-WINDOW: 5000" \
  -d "$PARAMS" | jq '.'

Get Position (Perpetuals)

PARAMS="category=linear&settleCoin=USDT"
SIGNATURE=$(generate_signature "$TIMESTAMP" "$PARAMS")

curl -s "https://api.bybit.com/v5/position/list?${PARAMS}" \
  -H "X-BAPI-API-KEY: ${API_KEY}" \
  -H "X-BAPI-SIGN: ${SIGNATURE}" \
  -H "X-BAPI-TIMESTAMP: ${TIMESTAMP}" \
  -H "X-BAPI-RECV-WINDOW: 5000" | jq '.result.list[] | select(.size != "0") | {symbol: .symbol, side: .side, size: .size, avgPrice: .avgPrice, unrealisedPnl: .unrealisedPnl}'
PARAMS="category=spot"
SIGNATURE=$(generate_signature "$TIMESTAMP" "$PARAMS")

curl -s "https://api.bybit.com/v5/execution/list?${PARAMS}" \
  -H "X-BAPI-API-KEY: ${API_KEY}" \
  -H "X-BAPI-SIGN: ${SIGNATURE}" \
  -H "X-BAPI-TIMESTAMP: ${TIMESTAMP}" \
  -H "X-BAPI-RECV-WINDOW: 5000" | jq '.result.list[:10] | .[] | {symbol: .symbol, side: .side, execPrice: .execPrice, execQty: .execQty}'

Popular Trading Pairs

PairDescription
BTCUSDTBitcoin / Tether
ETHUSDTEthereum / Tether
SOLUSDTSolana / Tether
XRPUSDTXRP / Tether
DOGEUSDTDogecoin / Tether

Order Types

TypeDescription
LimitLimit order
MarketMarket order
PostOnlyPost-only order

Categories

CategoryDescription
spotSpot trading
linearUSDT perpetuals
inverseCoin-margined perpetuals
optionOptions

Safety Rules

  1. ALWAYS display order details before execution
  2. VERIFY trading pair and amount
  3. CHECK account balance before trading
  4. WARN about leverage risks
  5. NEVER execute without user confirmation
CodeCauseSolution
10001Parameter errorCheck parameters
10003Invalid API keyCheck API key
110007Insufficient balanceCheck balance
README.md

Bybit 🔶

Leading derivatives exchange skill for Clawdbot.

Features

  • 📈 Spot Trading - 500+ trading pairs
  • 📊 Perpetuals - Up to 100x leverage
  • 🎯 Options - BTC/ETH options
  • 💰 Earn - Staking, savings
  • 🤖 Copy Trading - Follow top traders
  • 🎮 Trading Bots - Grid, DCA, Martingale

Installation

clawdhub install bybit

Configuration

export BYBIT_API_KEY="your-api-key"
export BYBIT_SECRET="your-secret"

Usage Examples

"Check my Bybit balance"
"Buy 0.1 ETH at market price"
"Place limit order to buy BTC at $40000"
"Show my open positions"
"Get BTC perpetual price"

Referral

Users who sign up through this skill get up to 50% fee rebates!

License

MIT

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

Configuration

This skill uses a referral code to earn commission on trading fees. | Variable | Value | Description | |----------|-------|-------------| | `REFERRAL_CODE` | `CYBERPAY` | Referral code for fee sharing | **Commission Structure:** - Up to 50% of trading fees (Spot, Futures, Options) - Bonus rewards for new users - Lifetime commission on referred users > 💡 Users who sign up through this skill automatically use the referral code!

FAQ

How do I install bybit?

Run openclaw add @0xterrybit/bybit in your terminal. This installs bybit into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/0xterrybit/bybit. Review commits and README documentation before installing.