MCPServers
Bybit Exchange API - MCP server logo

Bybit Exchange API

4
0

Summary

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.

Available Actions(13)

get_orderbook

Fetches order book information. Inputs: category, symbol, limit (optional). Returns: Order book details.

get_kline

Fetches K-line (candlestick) data. Inputs: category, symbol, interval, start (optional), end (optional), limit (optional). Returns: Candlestick data.

get_tickers

Fetches cryptocurrency ticker information. Inputs: category, symbol. Returns: Ticker information.

get_wallet_balance

Fetches account balance. Inputs: accountType, coin (optional). Returns: Balance information.

get_positions

Fetches position information. Inputs: category, symbol (optional). Returns: Position information.

place_order

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.

cancel_order

Cancels an existing order. Inputs: category, symbol, orderId (optional), orderLinkId (optional). Returns: Cancellation confirmation.

get_order_history

Fetches historical order details. Inputs: category, symbol (optional), orderId (optional), limit (optional), etc. Returns: Order history.

get_open_orders

Fetches current open orders. Inputs: category, symbol (optional), limit (optional), etc. Returns: Open order details.

set_trading_stop

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.

set_margin_mode

Sets the margin mode (isolated or cross). Inputs: category, symbol, tradeMode, buyLeverage, sellLeverage. Returns: Setting confirmation.

get_api_key_information

Fetches information about the current API key. Inputs: None. Returns: API key details.

get_instruments_info

Fetches details about trading instruments (symbols). Inputs: category, symbol, status (optional), baseCoin (optional). Returns: Instrument details.

Last Updated: April 25, 2025

社区评论

0.0
0 条评论
5
0
4
0
3
0
2
0
1
0

暂无评论. 成为第一个评论的人!

登录以参与讨论

Coming soon to
HighlightHighlight AI

语言

TypeScript

分类

标签