Appearance
SDK Data Types
The SDK returns lightweight dataclasses and dictionaries for flexibility.
Account
python
Account(
account_id: str,
net_liquidation: float,
available_funds: float,
buying_power: float
)Position
python
Position(
conid: int,
symbol: str,
position: float,
avg_cost: float,
market_value: float,
unrealized_pnl: float,
asset_class: str
)Quote
python
Quote(
conid: int,
symbol: str,
last: float,
bid: float,
ask: float,
bid_size: int,
ask_size: int,
volume: int
)Bar
python
Bar(
timestamp: int,
open: float,
high: float,
low: float,
close: float,
volume: int
)Greeks
python
Greeks(
conid: int,
delta: float,
gamma: float,
theta: float,
vega: float,
iv: float
)OrderResult
python
OrderResult(
success: bool,
order_id: str,
message: str,
raw: dict
)ComboLeg
python
ComboLeg(
conid: int,
ratio: int,
action: str,
exchange: str = "SMART"
)MarketTime
python
MarketTime(
eastern_time: str,
is_weekday: bool,
is_market_hours: bool,
market_open: str,
market_close: str
)