Quick Start

Get started in 5 minutes by making your first market data request. Choose the Python SDK, Java SDK, or a no-code AI/MCP integration.

Prerequisites

  1. Open and fund a Tiger Brokers account.
  2. Choose an authentication method:
    • Signature authentication: activate Tiger OpenAPI access in the Developer Center and obtain your Tiger ID and private key.
    • OAuth2 authorization: individual users can authorize access without a private key. It is available with Python SDK >= 3.8.0, Java SDK >= 2.7.0, and CLI tigeropen >= 3.8.0. Institutional users must use signature authentication.

For detailed steps, see Authentication, Python Preparation, or Java Preparation.


Choose Your Integration Method

Step 1: Install the SDK

We recommend uv, a fast Python package manager:

mkdir my-tiger-project && cd my-tiger-project
uv init
uv add tigeropen

Or use pip inside a virtual environment:

python3 -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install tigeropen

Step 2: Configure Credentials

Pass the path to the config file downloaded from the Developer Center:

from tigeropen.tiger_open_config import TigerOpenClientConfig

client_config = TigerOpenClientConfig(props_path='your_config_directory_path')

Step 3: Retrieve Candlestick Data

from tigeropen.quote.quote_client import QuoteClient
from tigeropen.common.consts import BarPeriod

quote_client = QuoteClient(client_config)

# Query Apple daily candlestick (last 5 bars)
bars = quote_client.get_bars(['AAPL'], period=BarPeriod.DAY, limit=5)
print(bars[['symbol', 'time', 'open', 'high', 'low', 'close', 'volume']])

Sample output:

  symbol          time    open    high     low   close     volume
0   AAPL  1715731200000  189.50  191.20  188.80  190.10  52341000
1   AAPL  1715644800000  188.10  190.50  187.60  189.30  48120000

Step 4: Query Positions

from tigeropen.trade.trade_client import TradeClient
from tigeropen.common.consts import SecurityType

trade_client = TradeClient(client_config)

positions = trade_client.get_positions(sec_type=SecurityType.STK)
for p in positions:
    print(p.contract.symbol, p.quantity, p.average_cost, p.market_value)

Next steps: Full feature examples · Market Data · Place orders


Other Language SDKs

In addition to Python and Java, Tiger OpenAPI also provides SDKs for the following languages:

LanguageDocs
C++Cpp SDK
C#C# SDK
GoGo SDK
TypeScriptTypeScript SDK
RustRust SDK

Need Help?

Use the Ask AI button in the top-right corner for quick answers.

Related documentation:


Did this page help you?