tigerfintech/tigeropen-skill

tigeropen-typescript

Tiger Brokers OpenAPI TypeScript SDK — complete skills for AI coding tools.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/tigerfintech/tigeropen-skill --skill tigeropen-typescript

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

Tiger Open API TypeScript SDK

老虎量化开放平台 TypeScript SDK 完整技能集 / Complete AI skill set for Tiger Brokers OpenAPI (TypeScript)
安全警告 / Safety Warning: 交易涉及真实资金。生成交易代码时默认使用模拟账户,除非用户明确要求实盘。实盘下单前必须与用户确认订单详情。 Trading involves real money. Default to Paper Trading when generating trading code. Always confirm order details before live orders.
  • Docs: https://docs.itigerup.com/docs/prepare
  • npm: npm install @tigeropenapi/tigeropen | Node.js 16+, ESM/CommonJS

Language Rules / 语言规则

根据用户输入语言自动回复。技术术语(代码、API 名称、参数名)保持原文不翻译。 Reply in the user's language. Keep technical terms (code, API names, parameters) as-is.

Reference Guides

  • [Quickstart](references/quickstart.md) — SDK install, config, client setup, error handling
  • [Market Data](references/quote.md) — Real-time quotes, K-lines, depth, options, futures
  • [Trading](references/trade.md) — Place/modify/cancel orders, positions, assets
  • [Real-time Push](references/push.md) — WebSocket push for quotes, orders, positions
  • [Account Management](references/account.md) — Account list, assets, positions, fund transfer, deposit/withdrawal
  • [Options Trading](references/option.md) — Option chain, expirations, Greeks, multi-leg strategies

Quick Start

typescript
import {
  createClientConfig,
  HttpClient,
  QuoteClient,
  TradeClient,
} from '@tigeropenapi/tigeropen';

// 1. 创建配置 / Create config
const config = createClientConfig({
  tigerId: 'your_tiger_id',
  privateKey: 'your_rsa_private_key',
  account: 'your_account',
});

// 2. 查询行情 / Query quotes(注意:接收请求对象,不是数组)
const httpClient = new HttpClient(config);
const qc = new QuoteClient(httpClient);
const quotes = await qc.getBrief({ symbols: ['AAPL', 'TSLA'] });
console.log(quotes);

// 3. 交易操作 / Trading
const tc = new TradeClient(httpClient, config.account);
const orders = await tc.getOrders({ limit: 20 });
console.log(orders);

When to Use Each Reference

TaskReference
First time setup, SDK install, auth configquickstart.md
Get stock/option/future quotes, K-linesquote.md
Place/modify/cancel orders, check positions/assetstrade.md
Real-time streaming data via WebSocketpush.md
Account info, assets, fund transfer, deposit/withdrawalaccount.md
Option chain, Greeks, expirations, multi-leg ordersoption.md

Common Symbols / 常见标的速查

港股 HK

常见称呼代码 Symbol
腾讯00700
阿里巴巴09988
美团03690
小米01810

美股 US

常见称呼代码 Symbol
苹果 / AppleAAPL
特斯拉 / TeslaTSLA
英伟达 / NVIDIANVDA
微软 / MicrosoftMSFT
谷歌 / GoogleGOOGL
亚马逊 / AmazonAMZN
MetaMETA
老虎证券 / TIGRTIGR
标普500 ETF / SPYSPY
纳指 ETF / QQQQQQ

관련 작업