什么是 blinkxmcp?
连接 BlinkX 账户查看持仓、保证金和资料;跟踪行情、搜索 instrument、查看历史 K 线,并可下单、回测及实盘运行策略。
核心功能 (12 个工具)
loginOpen the BlinkX device login flow (clickable link).
get_holdingsFetch user holdings after successful login.
get_user_profileFetch the BlinkX user profile using the stored session token.
get_user_marginsFetch the BlinkX user margin details using the stored session token.
get_ltpRetrieve BlinkX quotes for one or more instruments. Supported quote types: - "" (or None): full market quote (`/quote`) - "full": alias for full market quote (`/quote`) - "ohlc": OHLC quote (`/quote/ohlc`) - "ltp": last traded price quote (`/quote/ltp`) Instruments format: NSE:NIFTY,BSE:BANKNIFTY no suffix like -EQ or prefix like a number Example: get_ltp(instruments=["NSE:NIFTY", "BSE:BANKNIFTY"], quote_type="ltp")
get_instrumentsFetch and parse the BlinkX instruments list (CSV format). Example: get_instruments(search="RELIANCE")
get_historical_candlesFetch historical candle data for a specific instrument from BlinkX SmartAPI. use get_instruments to get the instrument_token Example: get_historical_candles( instrument_token="1594_NSE", from_time="2025-10-29+10:02:03", to_time="2025-10-29+15:00:00", interval="minute" )
place_orderPlace an order using BlinkX SmartAPI (regular order). Always Confirm from user before placing order Example: place_order(tradingsymbol="RELIANCE-EQ", quantity=5, price=2800)
get_ordersFetch all orders or a specific order by ID from BlinkX SmartAPI. Example: get_orders() → Fetch all orders get_orders(order_id="251107000000021") → Fetch specific order
listenrun_strategyExecute a Python strategy code asynchronously. The code can: - Read live prices from LTP_STORE using: key = f"{scrip_code}_{exchange}" - Place orders using the async function func_place_order: - subscribe(scrip_code, exchange) → async function to subscribe to a symbol - unsubscribe(scrip_code, exchange) → async function to unsubscribe from a symbol - get_token(session_id: str) -> to get token for order placement, session id always to be sent by ai agent, possible output {"status": "ok", "access_token": access_token} or return {"status": "error", "access_token": None, "message": "Session ID not found in tokens file"} Arguments for func_place_order: - api_url: string, API endpoint (default: BlinkX regular order URL) - token: string, authentication token - tradingsymbol: string, symbol of the instrument (required) - exchange: string, exchange (e.g., NSE, BSE) - transaction_type: BUY or SELL - order_type: LIMIT or MARKET - quantity: int, number of shares/contracts - product: string, product type - validity: string, DAY or IOC - price: float, price for LIMIT orders Example strategy code: key = f'-1_NSE' ltp = LTP_STORE.get(key, 0) if ltp > 26100: await func_place_order(tradingsymbol='-1', exchange='NSE', transaction_type='BUY', price=ltp, quantity=1) always unsubscribe to symbol after placing order and always ensure proper logging for every iteration to get status of execution in format session ID: "Required logs" and use default logging ie already existing 'logger'
run_backtestRun a custom BACKTEST strategy provided by the AI agent using historical data fetched from BlinkX SmartAPI. historical data will be available in variable historical_data in format historical_data.append({ "timestamp": candle[0], # The timestamp is the first element "open": candle[1], # Open is the second element "high": candle[2], # High is the third element "low": candle[3], # Low is the fourth element "close": candle[4], # Close is the fifth element "volume": candle[5] # Volume is the sixth element }) and for recording trades call record_trade(side: str, price: float, qty: int) that stores trades in variable RESULTS = {"trades": [], "metrics": {}} this variable will already be defined and can be read as it is Inputs: --------- backtest_code : str The Python code written by the AI agent. The code will be wrapped inside an async function and executed. instrument_token : str The instrument token to fetch historical candle data. from_time : str The starting timestamp for fetching historical candles (e.g., "2025-10-29+10:02:03"). to_time : str The ending timestamp for fetching historical candles (e.g., "2025-10-29+15:00:00"). session_id : str The session ID for fetching the token needed to call the API. Returns: -------- dict : The result of the backtest, including trade records and metrics.
常见问题
blinkxmcp 是什么?
连接 BlinkX 账户查看持仓、保证金和资料;跟踪行情、搜索 instrument、查看历史 K 线,并可下单、回测及实盘运行策略。
blinkxmcp 提供哪些工具?
提供 12 个工具,包括 login、get_holdings、get_user_profile 等。
相关 Skills
MCP构建
by anthropics
聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。
✎ 想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。
Slack动图
by anthropics
面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。
✎ 帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。
接口设计评审
by alirezarezvani
审查 REST API 设计是否符合行业规范,自动检查命名、HTTP 方法、状态码与文档覆盖,识别破坏性变更并给出设计评分,适合评审接口方案和版本迭代前把关。
✎ 做API和架构方案时,它能帮你提前揪出接口设计问题并对齐最佳实践,评审视角系统,团队协作更省心。
相关 MCP Server
Slack 消息
编辑精选by Anthropic
Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。
✎ 这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。
by netdata
io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。
✎ 这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。
by d4vinci
Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。
✎ 这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。