MCP Bybit Server provides a bridge to the Bybit cryptocurrency exchange API, enabling AI assistants to perform market data retrieval, account management, and order execution operations. Developed by Dana K. Williams, this Python implementation offers a comprehensive set of tools for interacting with Bybit's Unified Trading API v5, including functions for retrieving orderbooks, candlestick data, wallet balances, and placing/managing orders across spot and futures markets. The server requires Bybit API credentials and can be deployed as a Docker container, making it particularly useful for algorithmic trading, market analysis, and portfolio management applications.
Fetches order book information. Inputs: category, symbol, limit (optional). Returns: Order book details.
Fetches K-line (candlestick) data. Inputs: category, symbol, interval, start (optional), end (optional), limit (optional). Returns: Candlestick data.
Fetches cryptocurrency ticker information. Inputs: category, symbol. Returns: Ticker information.
Fetches account balance. Inputs: accountType, coin (optional). Returns: Balance information.
Fetches position information. Inputs: category, symbol (optional). Returns: Position information.
Places a limit or market order. Inputs: category, symbol, side, orderType, qty, price (optional for limit), positionIdx (optional for futures), and other optional parameters (e.g., timeInForce, takeProfit, stopLoss). Returns: Order placement confirmation.
Cancels an existing order. Inputs: category, symbol, orderId (optional), orderLinkId (optional). Returns: Cancellation confirmation.
Fetches historical order details. Inputs: category, symbol (optional), orderId (optional), limit (optional), etc. Returns: Order history.
Fetches current open orders. Inputs: category, symbol (optional), limit (optional), etc. Returns: Open order details.
Sets take profit, stop loss, or trailing stop for a position. Inputs: category, symbol, takeProfit (optional), stopLoss (optional), trailingStop (optional), positionIdx (optional). Returns: Setting confirmation.
Sets the margin mode (isolated or cross). Inputs: category, symbol, tradeMode, buyLeverage, sellLeverage. Returns: Setting confirmation.
Fetches information about the current API key. Inputs: None. Returns: API key details.
Fetches details about trading instruments (symbols). Inputs: category, symbol, status (optional), baseCoin (optional). Returns: Instrument details.
No reviews yet. Be the first to review!
Sign in to join the conversation