← 返回
未分类 Key

Tigerbrokers

Tiger Brokers OpenAPI Python SDK — complete skills for AI coding tools. Covers SDK setup, market data queries, stock/futures/options trading, real-time push...
Tiger Brokers OpenAPI PythonSDK — 为 AI 编码工具提供完整技能。涵盖 SDK 搭建、市场数据查询、股票/期货/期权交易、实时推送...
hotea
未分类 clawhub v1.0.1 2 版本 100000 Key: 需要
★ 0
Stars
📥 563
下载
💾 2
安装
2
版本
#latest

概述

Tiger Open API Python SDK

> 老虎量化开放平台 Python SDK 完整技能集 / Complete AI skill set for Tiger Brokers OpenAPI

> 安全警告 / Safety Warning: 交易涉及真实资金。生成交易代码时默认使用模拟账户(Paper Trading),除非用户明确要求实盘。实盘下单前必须与用户确认订单详情。

> Trading involves real money. Default to Paper Trading account when generating trading code unless the user explicitly requests live trading. Always confirm order details with the user before live orders.

  • Docs: https://docs.itigerup.com/docs/prepare
  • GitHub: https://github.com/tigerfintech/openapi-python-sdk
  • SDK: pip install tigeropen | Python 3.8 - 3.14

Language Rules / 语言规则

根据用户输入语言自动回复。用户使用英文提问则用英文回复,使用中文提问则用中文回复。技术术语(代码、API 名称、参数名)保持原文不翻译。

Reply in the user's language. Keep technical terms (code, API names, parameters) as-is.

Reference Guides

This skill is organized into focused reference files. Load the relevant guide based on your task:

  • Quickstart — SDK install, authentication, client setup, enums/objects, error codes, FAQ
  • Market Data — Real-time quotes, K-lines, depth, ticks, capital flow, fundamentals, scanner
  • Trading — Place orders (market/limit/stop/algo), order management, assets, positions, fund transfers
  • Options — Option chains, Greeks, single-leg/multi-leg combos, option calculator
  • Real-time Push — Subscribe to quote/depth/tick/K-line/order/position/asset changes via PushClient
  • CLI Tool — Command-line interface: config, quote, trade, account, push commands with table/json/csv output
  • MCP Server — Expose Tiger API as MCP tools for Cursor, Claude Code, Kiro, Trae

Quick Start

from tigeropen.common.consts import Language, Market
from tigeropen.tiger_open_config import TigerOpenClientConfig
from tigeropen.common.util.signature_utils import read_private_key
from tigeropen.quote.quote_client import QuoteClient
from tigeropen.trade.trade_client import TradeClient

# 1. Configure / 配置
# 方式一:配置文件(推荐) / Method 1: Config file (recommended)
config = TigerOpenClientConfig(props_path='/path/to/your/config/')

# 方式二:代码赋值 / Method 2: Code assignment
# config = TigerOpenClientConfig()
# config.tiger_id = 'your_tiger_id'
# config.private_key = read_private_key('/path/to/your_private_key.pem')
# config.account = 'your_account'
# config.language = Language.en_US

# 2. Query quotes / 查询行情
quote_client = QuoteClient(config)
quote = quote_client.get_market_status(Market.US)

# 3. Place order / 下单
trade_client = TradeClient(config)
# See references/trade.md for order examples

When to Use Each Reference

TaskReference
-----------------
First time setup, SDK install, auth configquickstart.md
Get stock/option/future quotes, K-lines, screenerquote.md
Place/modify/cancel orders, check positions/assetstrade.md
Option chains, Greeks, combo strategiesoption.md
Real-time streaming data via WebSocketpush.md
CLI commands: query data, manage orders from terminalcli.md
Set up MCP Server for AI editor integrationmcp.md

Common Symbols / 常见标的速查

当用户使用中文名称或英文简称时,按下表映射。不在表中的标的根据上下文判断。

Map user's natural language to symbols. For unlisted symbols, infer from context.

港股 HK

常见称呼代码 Symbol
---------------------
腾讯00700
阿里巴巴、阿里09988
美团03690
小米01810
京东09618
比亚迪01211
快手01024
百度09888
网易09999
中芯国际00981
MINIMAX00100
智谱02513

美股 US

常见称呼代码 Symbol
---------------------
苹果 / AppleAAPL
特斯拉 / TeslaTSLA
英伟达 / NVIDIANVDA
微软 / MicrosoftMSFT
谷歌 / GoogleGOOGL
亚马逊 / AmazonAMZN
MetaMETA
台积电 / TSMTSM
AMDAMD
老虎证券 / Tiger / TIGRTIGR
阿里巴巴(美股)/ BABABABA
京东(美股)/ JDJD
拼多多 / PDDPDD
标普500 ETF / SPYSPY
纳指 ETF / QQQQQQ

版本历史

共 2 个版本

  • v1.0.1 当前
    2026-05-03 05:11 安全 安全
  • v1.0.0
    2026-03-31 05:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,223 📥 267,422
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,073 📥 805,944
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 673 📥 325,032