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. Activate Tiger OpenAPI access in the Developer Center to obtain your Tiger ID and private key.

For detailed steps, see Prepare.


Choose Your Integration Method

Step 1: Install the SDK

We recommend uv, a fast Python package manager:

uv pip install tigeropen

Or use pip:

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 APIs · 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?