AgentSkillsCN

bybit-futures

Bybit Futures 交易,附带 DB 跟踪功能

SKILL.md
--- frontmatter
name: bybit-futures
description: Bybit Futures trading with DB tracking
emoji: "🟠"
commands:
  - /bb
gates:
  envs:
    - BYBIT_API_KEY

Bybit Futures

Trade perpetual futures on Bybit with up to 100x leverage and full database tracking.

Quick Start

bash
# Set credentials
export BYBIT_API_KEY="your-api-key"
export BYBIT_API_SECRET="your-api-secret"

# Check balance
/bb balance

# Open position
/bb long BTCUSDT 0.01 10x

# View stats
/bb stats

Commands

Account

CommandDescription
/bb balanceCheck wallet balance
/bb positionsView open positions
/bb ordersList open orders

Trading

CommandDescription
/bb long <symbol> <size> [leverage]xOpen long position
/bb short <symbol> <size> [leverage]xOpen short position
/bb close <symbol>Close position
/bb closeallClose all positions
/bb tp <symbol> <price>Set take-profit
/bb sl <symbol> <price>Set stop-loss
/bb leverage <symbol> <value>Set leverage

Market Data

CommandDescription
/bb price <symbol>Get current price
/bb funding <symbol>Check funding rate
/bb markets [query]List markets

Database/History

CommandDescription
/bb trades [symbol] [limit]Trade history from database
/bb dbstats [symbol] [period]Win rate, PnL, profit factor
/bb dbfunding [symbol]Funding payments history
/bb dbpositions [all]Position history

Stats periods: day, week, month

Examples

bash
/bb long BTCUSDT 0.01 10x      # 10x leveraged long
/bb short ETHUSDT 0.1 20x      # 20x leveraged short
/bb tp BTCUSDT 105000          # Take profit at $105k
/bb sl BTCUSDT 95000           # Stop loss at $95k
/bb close BTCUSDT              # Close BTC position
/bb trades BTCUSDT 20          # Last 20 BTC trades
/bb stats ETHUSDT week         # ETH stats for past week