返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
t

tiger-trade

Execute US and HK stock trades via Tiger Brokers API. Use when user wants to buy or sell stocks, manage investment portfolio, place orders for US ETFs or HK stocks, or check account balance. Requires tiger-config.json with tiger_id account and private_key_pk8.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.5
安全检测
已通过
572
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

tiger-trade

# Tiger Trade Execute trades via Tiger Brokers API. ## Setup Create config file at `~/.tiger-config.json `: ```json { "tiger_id": "your_tiger_id", "account": "your_account", "private_key_pk8": "your_private_key" } ``` ## Check Stock Prices Use Tiger Broker website to get current prices: ``` https://www.itiger.com/hant/stock/02800 https://www.itiger.com/hant/stock/AAPL ``` Replace the stock code (02800 or AAPL) with any stock ## Quick Trade ```python import json from tigeropen.tiger_open_config import TigerOpenClientConfig from tigeropen.trade.trade_client import TradeClient from tigeropen.trade.request.model import PlaceModifyOrderParams from tigeropen.common.consts import OrderType with open('~/.tiger-config.json', 'r') as f: config = json.load(f) client_config = TigerOpenClientConfig() client_config.tiger_id = config['tiger_id'] client_config.account = config['account'] client_config.private_key = config['private_key_pk8'] client_config.sandbox = False client = TradeClient(client_config) # Place stock order contracts = client.get_contracts(['02800']) if contracts: order_params = PlaceModifyOrderParams() order_params.account = config['account'] order_params.contract = contracts[0] order_params.action = 'BUY' order_params.order_type = OrderType.LMT.value order_params.limit_price = 26.80 # Get from itiger.com order_params.quantity = 10000 result = client.place_order(order_params) print(result) ``` ## Order Types - `LMT` = Limit order - `MKT` = Market order ## Actions - `BUY` - 买入 - `SELL` - 卖出

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 tiger-trade-1776312962 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 tiger-trade-1776312962 技能

通过命令行安装

skillhub install tiger-trade-1776312962

下载

⬇ 下载 tiger-trade v1.0.5(免费)

文件大小: 1.43 KB | 发布时间: 2026-4-16 16:05

v1.0.5 最新 2026-4-16 16:05
- Updated documentation in SKILL.md for clarity and consistency.
- Generalized some example instructions and removed restrictive notes about Hong Kong stocks.
- No changes to code—documentation only.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部