A Stock Analysis
A股实时行情与分时量能分析
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.
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
SkillHub CLI
skillhub install esanle/tiger-tradeInspect the source and compatibility requirements, then follow its installation steps.
Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.
Execute trades via Tiger Brokers API.
Create config file at ~/.tiger-config.json :
{
"tiger_id": "your_tiger_id",
"account": "your_account",
"private_key_pk8": "your_private_key"
}
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
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)
LMT = Limit orderMKT = Market orderBUY - 买入SELL - 卖出These signals come from indexed source analysis and may lag behind changes. Check the current source files.
# 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` - 卖出A股实时行情与分时量能分析
A股模拟交易系统 - 数据爬取、存储、策略回测、模拟交易 / A-Share Paper Trading System - Data Fetch, Storage, Backtest, Simulation
Discover, install, update, or create the right skill when a workflow gap appears. Use when a task is repetitive, a role lacks a reliable procedure, an existing skill might save time, ClawHub search/install coul...
AI Automation Agency Blueprint