Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| BYBIT_API_KEY | Yes | Your Bybit API key | |
| BYBIT_TESTNET | No | Set to true to use the Bybit testnet (default is false) | false |
| BYBIT_API_SECRET | Yes | Your Bybit API secret | |
| BYBIT_TRADING_ENABLED | No | Set to true to enable trading operations (default is false). Trading is DISABLED by default for safety. | false |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_server_time | Get the current Bybit server time |
| get_tickers | Get real-time ticker information including current prices, 24h volume, and price changes for trading symbols. Use this to get current market data for any cryptocurrency pair. |
| get_order_book | Get order book depth for a trading symbol |
| get_recent_trades | Get recent trades for a symbol |
| get_kline | Get historical candlestick/OHLC data for technical analysis. Returns open, high, low, close prices and volume data. If no time range specified, returns recent data ending at current time. |
| get_mark_price_kline | Get mark price candlestick data for derivatives trading. Mark price is used for liquidation calculations and PnL. Available for linear and inverse perpetual contracts only. |
| get_index_price_kline | Get index price candlestick data for derivatives. Index price is the fair value price based on major spot exchanges, used as reference for mark price calculation. |
| get_premium_index_price_kline | Get premium index price candlestick data for linear perpetuals. Premium index shows the funding rate basis and is used to calculate funding payments. |
| get_instruments_info | Get trading instruments information |
| get_funding_rate_history | Get funding rate history |
| get_open_interest | Get open interest data |
| get_insurance | Get insurance fund data |
| get_risk_limit | Get risk limit information |
| get_long_short_ratio | Get long/short ratio data |
| get_open_closed_orders | Get both open (pending) and recently closed orders. Essential for monitoring order status and trading activity. Use this to check if orders are filled, cancelled, or still pending. |
| get_order_history | Get comprehensive order history with detailed information about past orders including execution details, timestamps, and status changes. Useful for trade analysis and record keeping. |
| get_trade_history | Get detailed execution history showing actual trades (fills) with execution prices, quantities, fees, and timestamps. Essential for performance analysis and tax reporting. |
| get_wallet_balance | Get detailed wallet balance information including available balance, locked balance, and total equity across different account types. Essential for portfolio monitoring and risk management. |
| get_single_coin_balance | Get balance information for a specific coin with additional details like transferable amounts and account relationships. More detailed than wallet balance for single coin queries. |
| get_account_info | Get comprehensive account information including margin ratios, account status, upgrade status, and overall account health metrics. Essential for risk monitoring. |
| get_position_info | Get detailed position information including size, value, PnL, and margin for your trading positions. Essential for portfolio monitoring and risk management. |
| get_closed_pnl | Get historical profit and loss data for closed positions. Useful for performance analysis and tax reporting. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Bybit Market Information | General information about Bybit market endpoints and capabilities |