Skip to content
Get started

V1

ModelsExpand Collapse
Literal["COMMON_STOCK", "PREFERRED_STOCK", "OPTION", 2 more]

Security type

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"

V1Accounts

Manage trading accounts, balances, and portfolio history.

Get Accounts
v1.accounts.get_accounts(AccountGetAccountsParams**kwargs) -> AccountGetAccountsResponse
GET/v1/accounts
Get Account By ID
v1.accounts.get_account_by_id(intaccount_id) -> AccountGetAccountByIDResponse
GET/v1/accounts/{account_id}
Patch Account By ID
v1.accounts.patch_account_by_id(intaccount_id, AccountPatchAccountByIDParams**kwargs) -> AccountPatchAccountByIDResponse
PATCH/v1/accounts/{account_id}
Get Account Balances
v1.accounts.get_account_balances(intaccount_id, AccountGetAccountBalancesParams**kwargs) -> AccountGetAccountBalancesResponse
GET/v1/accounts/{account_id}/balances
Get Portfolio History
v1.accounts.get_portfolio_history(intaccount_id, AccountGetPortfolioHistoryParams**kwargs) -> AccountGetPortfolioHistoryResponse
GET/v1/accounts/{account_id}/portfolio-history
ModelsExpand Collapse
class Account:

Represents a trading account

id: int

The unique identifier for the account

formatint64
account_holder_entity_id: int

The account holder entity identifier

formatint64
full_name: str

The full legal name of the account

open_date: date

The date the account was opened

formatdate
options_level: int

The options level of the account

formatint64
short_name: str

The short name of the account

The current status of the account

One of the following:
"ACTIVE"
"INACTIVE"
"CLOSED"

The sub-type of account

One of the following:
"CASH"
"MARGIN"
"OTHER"

The type of account

One of the following:
"CUSTOMER"
"OTHER"
close_date: Optional[date]

The date the account was closed, if applicable

formatdate
class AccountBalances:

Represents the balance details for a trading account

account_id: int

The unique identifier for the account

formatint64
buying_power: str

The total buying power available in the account.

currency: str

Currency identifier for all monetary values.

daily_realized_pnl: str

Realized profit or loss since start of day.

daily_total_pnl: str

Total profit or loss since start of day.

daily_unrealized_pnl: str

Total unrealized profit or loss across all positions relative to prior close.

equity: str

The total equity in the account.

long_market_value: str

The total market value of all long positions.

margin_type: MarginType

The applicable margin model for the account

One of the following:
"OTHER"
"NONE"
"PORTFOLIO_MARGIN"
"RISK_BASED_HAIRCUT_BROKER_DEALER"
"REG_T"
"RISK_BASED_HAIRCUT_MARKET_MAKER"
"CIRO"
"FUTURES_NLV"
"FUTURES_TOT_EQ"
open_order_adjustment: str

Signed buying-power correction from open orders.

settled_cash: str

The amount of cash that is settled and available for withdrawal or trading.

Start-of-day snapshot balances.

buying_power: str

Start-of-day buying power.

equity: str

Start-of-day equity.

long_market_value: str

Start-of-day long market value.

short_market_value: str

Start-of-day short market value.

asof: Optional[date]

Timestamp for the start-of-day values.

formatdate
day_trade_buying_power: Optional[str]

Start-of-day day-trade buying power.

maintenance_margin_excess: Optional[str]

Start-of-day maintenance margin excess.

maintenance_margin_requirement: Optional[str]

Start-of-day maintenance margin requirement.

trade_cash: Optional[str]

Start-of-day trade cash.

trade_cash: str

Trade-date effective cash.

unsettled_credits: str

Trade-date unsettled cash credits.

unsettled_debits: str

Trade-date unsettled cash debits.

withdrawable_cash: str

The amount of cash currently available to withdraw.

margin_details: Optional[MarginDetails]

Margin-account-only details.

day_trade_count: int

The number of day trades executed over the 5 most recent trading days.

formatint32
minimum0
initial_margin_excess: str

Initial margin excess for trade-date balances.

initial_margin_requirement: str

Initial margin requirement for trade-date balances.

maintenance_margin_excess: str

Maintenance margin excess for trade-date balances.

maintenance_margin_requirement: str

Maintenance margin requirement for trade-date balances.

pattern_day_trader: bool

true if the account is currently flagged as a PDT, otherwise false.

day_trade_buying_power_usage: Optional[str]

The amount of day-trade buying power used during the current trading day.

top_contributors: Optional[List[MarginTopContributor]]

Optional top margin contributors, returned only when explicitly requested.

day_trade_buying_power_usage: str

Day-trade buying power consumed by fills against this underlying on the current trade date. Populated only for pattern day trader accounts.

initial_margin_requirement: str

Initial margin requirement attributable to this underlying.

maintenance_margin_requirement: str

Maintenance margin requirement attributable to this underlying.

market_value: str

Net market value attributable to this underlying.

underlying_instrument_id: str

UUID of the underlying security contributing to margin requirement.

formatuuid
usage: Optional[MarginDetailsUsage]

Current usage totals.

total: str

The total margin available in the current model.

used: str

The amount of margin that is currently being utilized.

multiplier: Optional[str]

Applied multiplier for margin calculations.

short_market_value: Optional[str]

The total market value of all short positions.

class AccountBalancesSod:
buying_power: str

Start-of-day buying power.

equity: str

Start-of-day equity.

long_market_value: str

Start-of-day long market value.

short_market_value: str

Start-of-day short market value.

asof: Optional[date]

Timestamp for the start-of-day values.

formatdate
day_trade_buying_power: Optional[str]

Start-of-day day-trade buying power.

maintenance_margin_excess: Optional[str]

Start-of-day maintenance margin excess.

maintenance_margin_requirement: Optional[str]

Start-of-day maintenance margin requirement.

trade_cash: Optional[str]

Start-of-day trade cash.

List[Account]
id: int

The unique identifier for the account

formatint64
account_holder_entity_id: int

The account holder entity identifier

formatint64
full_name: str

The full legal name of the account

open_date: date

The date the account was opened

formatdate
options_level: int

The options level of the account

formatint64
short_name: str

The short name of the account

The current status of the account

One of the following:
"ACTIVE"
"INACTIVE"
"CLOSED"

The sub-type of account

One of the following:
"CASH"
"MARGIN"
"OTHER"

The type of account

One of the following:
"CUSTOMER"
"OTHER"
close_date: Optional[date]

The date the account was closed, if applicable

formatdate
class AccountSettings:
risk: Optional[RiskSettings]

Risk settings for the account

max_notional: Optional[str]

The maximum notional value available to the account

Literal["ACTIVE", "INACTIVE", "CLOSED"]

Account status

One of the following:
"ACTIVE"
"INACTIVE"
"CLOSED"
Literal["CASH", "MARGIN", "OTHER"]

Account subtype classification providing more granular categorization

One of the following:
"CASH"
"MARGIN"
"OTHER"
Literal["CUSTOMER", "OTHER"]

Account type classification

One of the following:
"CUSTOMER"
"OTHER"
class MarginDetails:
day_trade_count: int

The number of day trades executed over the 5 most recent trading days.

formatint32
minimum0
initial_margin_excess: str

Initial margin excess for trade-date balances.

initial_margin_requirement: str

Initial margin requirement for trade-date balances.

maintenance_margin_excess: str

Maintenance margin excess for trade-date balances.

maintenance_margin_requirement: str

Maintenance margin requirement for trade-date balances.

pattern_day_trader: bool

true if the account is currently flagged as a PDT, otherwise false.

day_trade_buying_power_usage: Optional[str]

The amount of day-trade buying power used during the current trading day.

top_contributors: Optional[List[MarginTopContributor]]

Optional top margin contributors, returned only when explicitly requested.

day_trade_buying_power_usage: str

Day-trade buying power consumed by fills against this underlying on the current trade date. Populated only for pattern day trader accounts.

initial_margin_requirement: str

Initial margin requirement attributable to this underlying.

maintenance_margin_requirement: str

Maintenance margin requirement attributable to this underlying.

market_value: str

Net market value attributable to this underlying.

underlying_instrument_id: str

UUID of the underlying security contributing to margin requirement.

formatuuid
usage: Optional[MarginDetailsUsage]

Current usage totals.

total: str

The total margin available in the current model.

used: str

The amount of margin that is currently being utilized.

class MarginDetailsUsage:
total: str

The total margin available in the current model.

used: str

The amount of margin that is currently being utilized.

class MarginTopContributor:
day_trade_buying_power_usage: str

Day-trade buying power consumed by fills against this underlying on the current trade date. Populated only for pattern day trader accounts.

initial_margin_requirement: str

Initial margin requirement attributable to this underlying.

maintenance_margin_requirement: str

Maintenance margin requirement attributable to this underlying.

market_value: str

Net market value attributable to this underlying.

underlying_instrument_id: str

UUID of the underlying security contributing to margin requirement.

formatuuid
Literal["OTHER", "NONE", "PORTFOLIO_MARGIN", 6 more]

An account’s margin type

One of the following:
"OTHER"
"NONE"
"PORTFOLIO_MARGIN"
"RISK_BASED_HAIRCUT_BROKER_DEALER"
"REG_T"
"RISK_BASED_HAIRCUT_MARKET_MAKER"
"CIRO"
"FUTURES_NLV"
"FUTURES_TOT_EQ"
class PortfolioHistoryResponse:
segments: List[PortfolioHistorySegment]
date: date

The date for this segment

formatdate
eod_equity: str

The equity at the end of the trading day.

realized_pnl: str

Sum of the profit and loss realized from position closing trading activity.

sod_equity: str

The equity at the start of the trading day.

unrealized_pnl: str

Sum of the profit and loss from market changes.

bought_notional: Optional[str]

Amount bought MTM

day_pnl: Optional[str]

Sum of the profit and loss from intraday trading activities for the trading day.

net_pnl: Optional[str]

P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses

position_pnl: Optional[str]

P&L attributable to start-of-day (carried) positions from market movement during this trading day.

sold_notional: Optional[str]

Amount sold MTM

class PortfolioHistorySegment:
date: date

The date for this segment

formatdate
eod_equity: str

The equity at the end of the trading day.

realized_pnl: str

Sum of the profit and loss realized from position closing trading activity.

sod_equity: str

The equity at the start of the trading day.

unrealized_pnl: str

Sum of the profit and loss from market changes.

bought_notional: Optional[str]

Amount bought MTM

day_pnl: Optional[str]

Sum of the profit and loss from intraday trading activities for the trading day.

net_pnl: Optional[str]

P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses

position_pnl: Optional[str]

P&L attributable to start-of-day (carried) positions from market movement during this trading day.

sold_notional: Optional[str]

Amount sold MTM

class RiskSettings:

Risk settings for an account

max_notional: Optional[str]

The maximum notional value available to the account

class AccountGetAccountsResponse:
id: int

The unique identifier for the account

formatint64
account_holder_entity_id: int

The account holder entity identifier

formatint64
full_name: str

The full legal name of the account

open_date: date

The date the account was opened

formatdate
options_level: int

The options level of the account

formatint64
short_name: str

The short name of the account

The current status of the account

One of the following:
"ACTIVE"
"INACTIVE"
"CLOSED"

The sub-type of account

One of the following:
"CASH"
"MARGIN"
"OTHER"

The type of account

One of the following:
"CUSTOMER"
"OTHER"
close_date: Optional[date]

The date the account was closed, if applicable

formatdate
class AccountGetAccountByIDResponse:
data: Account

Represents a trading account

id: int

The unique identifier for the account

formatint64
account_holder_entity_id: int

The account holder entity identifier

formatint64
full_name: str

The full legal name of the account

open_date: date

The date the account was opened

formatdate
options_level: int

The options level of the account

formatint64
short_name: str

The short name of the account

The current status of the account

One of the following:
"ACTIVE"
"INACTIVE"
"CLOSED"

The sub-type of account

One of the following:
"CASH"
"MARGIN"
"OTHER"

The type of account

One of the following:
"CUSTOMER"
"OTHER"
close_date: Optional[date]

The date the account was closed, if applicable

formatdate
class AccountPatchAccountByIDResponse:
risk: Optional[RiskSettings]

Risk settings for the account

max_notional: Optional[str]

The maximum notional value available to the account

class AccountGetAccountBalancesResponse:

Represents the balance details for a trading account

account_id: int

The unique identifier for the account

formatint64
buying_power: str

The total buying power available in the account.

currency: str

Currency identifier for all monetary values.

daily_realized_pnl: str

Realized profit or loss since start of day.

daily_total_pnl: str

Total profit or loss since start of day.

daily_unrealized_pnl: str

Total unrealized profit or loss across all positions relative to prior close.

equity: str

The total equity in the account.

long_market_value: str

The total market value of all long positions.

margin_type: MarginType

The applicable margin model for the account

One of the following:
"OTHER"
"NONE"
"PORTFOLIO_MARGIN"
"RISK_BASED_HAIRCUT_BROKER_DEALER"
"REG_T"
"RISK_BASED_HAIRCUT_MARKET_MAKER"
"CIRO"
"FUTURES_NLV"
"FUTURES_TOT_EQ"
open_order_adjustment: str

Signed buying-power correction from open orders.

settled_cash: str

The amount of cash that is settled and available for withdrawal or trading.

Start-of-day snapshot balances.

buying_power: str

Start-of-day buying power.

equity: str

Start-of-day equity.

long_market_value: str

Start-of-day long market value.

short_market_value: str

Start-of-day short market value.

asof: Optional[date]

Timestamp for the start-of-day values.

formatdate
day_trade_buying_power: Optional[str]

Start-of-day day-trade buying power.

maintenance_margin_excess: Optional[str]

Start-of-day maintenance margin excess.

maintenance_margin_requirement: Optional[str]

Start-of-day maintenance margin requirement.

trade_cash: Optional[str]

Start-of-day trade cash.

trade_cash: str

Trade-date effective cash.

unsettled_credits: str

Trade-date unsettled cash credits.

unsettled_debits: str

Trade-date unsettled cash debits.

withdrawable_cash: str

The amount of cash currently available to withdraw.

margin_details: Optional[MarginDetails]

Margin-account-only details.

day_trade_count: int

The number of day trades executed over the 5 most recent trading days.

formatint32
minimum0
initial_margin_excess: str

Initial margin excess for trade-date balances.

initial_margin_requirement: str

Initial margin requirement for trade-date balances.

maintenance_margin_excess: str

Maintenance margin excess for trade-date balances.

maintenance_margin_requirement: str

Maintenance margin requirement for trade-date balances.

pattern_day_trader: bool

true if the account is currently flagged as a PDT, otherwise false.

day_trade_buying_power_usage: Optional[str]

The amount of day-trade buying power used during the current trading day.

top_contributors: Optional[List[MarginTopContributor]]

Optional top margin contributors, returned only when explicitly requested.

day_trade_buying_power_usage: str

Day-trade buying power consumed by fills against this underlying on the current trade date. Populated only for pattern day trader accounts.

initial_margin_requirement: str

Initial margin requirement attributable to this underlying.

maintenance_margin_requirement: str

Maintenance margin requirement attributable to this underlying.

market_value: str

Net market value attributable to this underlying.

underlying_instrument_id: str

UUID of the underlying security contributing to margin requirement.

formatuuid
usage: Optional[MarginDetailsUsage]

Current usage totals.

total: str

The total margin available in the current model.

used: str

The amount of margin that is currently being utilized.

multiplier: Optional[str]

Applied multiplier for margin calculations.

short_market_value: Optional[str]

The total market value of all short positions.

class AccountGetPortfolioHistoryResponse:
segments: List[PortfolioHistorySegment]
date: date

The date for this segment

formatdate
eod_equity: str

The equity at the end of the trading day.

realized_pnl: str

Sum of the profit and loss realized from position closing trading activity.

sod_equity: str

The equity at the start of the trading day.

unrealized_pnl: str

Sum of the profit and loss from market changes.

bought_notional: Optional[str]

Amount bought MTM

day_pnl: Optional[str]

Sum of the profit and loss from intraday trading activities for the trading day.

net_pnl: Optional[str]

P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses

position_pnl: Optional[str]

P&L attributable to start-of-day (carried) positions from market movement during this trading day.

sold_notional: Optional[str]

Amount sold MTM

V1API Version

Endpoints for API service metadata.

Get the API version.
v1.api_version.get_version() -> APIVersionGetVersionResponse
GET/v1/version
ModelsExpand Collapse
class Version:

API version information

version: str

API version string

class APIVersionGetVersionResponse:
data: Version

API version information

version: str

API version string

V1Calendar

Access clocks and financial calendars for market sessions and events.

Get Clock
v1.calendar.get_clock() -> CalendarGetClockResponse
GET/v1/clock
Get Market Hours Calendar.
v1.calendar.get_market_hours_calendar(CalendarGetMarketHoursCalendarParams**kwargs) -> CalendarGetMarketHoursCalendarResponse
GET/v1/calendars/market-hours
ModelsExpand Collapse
class ClockDetail:

Current server time and market clock information

clock: datetime

Current server time in UTC

formatdate-time
Literal["TRADING_DAY", "EARLY_CLOSE", "HOLIDAY", "WEEKEND"]

Day type for market hours - indicates the type of trading day

One of the following:
"TRADING_DAY"
"EARLY_CLOSE"
"HOLIDAY"
"WEEKEND"
class MarketHoursDetail:

Comprehensive market hours information for a specific market and date

current_time: datetime

Current time in market timezone with offset

formatdate-time
date: date

The date for which market hours are provided

formatdate
market: MarketType

Market type identifier

One of the following:
"us_equities"
"us_options"
market_name: str

Human-readable market name

next_sessions: TradingSessions

Next trading day’s session schedules (without time_until fields)

after_hours: Optional[SessionSchedule]

After-hours session schedule, null if not available

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
pre_market: Optional[SessionSchedule]

Pre-market session schedule, null if not available

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
regular: Optional[SessionSchedule]

Regular trading session schedule, null if holiday/weekend

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
status: MarketStatus

Market status information

day_type: DayType

The type of trading day

One of the following:
"TRADING_DAY"
"EARLY_CLOSE"
"HOLIDAY"
"WEEKEND"
is_open: bool

Whether the market is currently open (real-time)

current_session: Optional[MarketSessionType]

Current session type if market is open, null if closed

One of the following:
"pre_market"
"regular"
"after_hours"
timezone: str

IANA timezone identifier for the market

today_sessions: TradingSessions

Trading session schedules for the requested date with time_until fields

after_hours: Optional[SessionSchedule]

After-hours session schedule, null if not available

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
pre_market: Optional[SessionSchedule]

Pre-market session schedule, null if not available

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
regular: Optional[SessionSchedule]

Regular trading session schedule, null if holiday/weekend

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
current_time: datetime

Current time in market timezone with offset

formatdate-time
date: date

The date for which market hours are provided

formatdate
market: MarketType

Market type identifier

One of the following:
"us_equities"
"us_options"
market_name: str

Human-readable market name

next_sessions: TradingSessions

Next trading day’s session schedules (without time_until fields)

after_hours: Optional[SessionSchedule]

After-hours session schedule, null if not available

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
pre_market: Optional[SessionSchedule]

Pre-market session schedule, null if not available

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
regular: Optional[SessionSchedule]

Regular trading session schedule, null if holiday/weekend

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
status: MarketStatus

Market status information

day_type: DayType

The type of trading day

One of the following:
"TRADING_DAY"
"EARLY_CLOSE"
"HOLIDAY"
"WEEKEND"
is_open: bool

Whether the market is currently open (real-time)

current_session: Optional[MarketSessionType]

Current session type if market is open, null if closed

One of the following:
"pre_market"
"regular"
"after_hours"
timezone: str

IANA timezone identifier for the market

today_sessions: TradingSessions

Trading session schedules for the requested date with time_until fields

after_hours: Optional[SessionSchedule]

After-hours session schedule, null if not available

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
pre_market: Optional[SessionSchedule]

Pre-market session schedule, null if not available

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
regular: Optional[SessionSchedule]

Regular trading session schedule, null if holiday/weekend

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
Literal["pre_market", "regular", "after_hours"]

Session type for market hours

One of the following:
"pre_market"
"regular"
"after_hours"
class MarketStatus:

Market status information

day_type: DayType

The type of trading day

One of the following:
"TRADING_DAY"
"EARLY_CLOSE"
"HOLIDAY"
"WEEKEND"
is_open: bool

Whether the market is currently open (real-time)

current_session: Optional[MarketSessionType]

Current session type if market is open, null if closed

One of the following:
"pre_market"
"regular"
"after_hours"
Literal["us_equities", "us_options"]

Market type for market hours calendar endpoint

One of the following:
"us_equities"
"us_options"
class SessionSchedule:

Session schedule with open and close timestamps

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
class TradingSessions:

Trading sessions for a market day with full timestamps

after_hours: Optional[SessionSchedule]

After-hours session schedule, null if not available

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
pre_market: Optional[SessionSchedule]

Pre-market session schedule, null if not available

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
regular: Optional[SessionSchedule]

Regular trading session schedule, null if holiday/weekend

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
class CalendarGetClockResponse:

Current server time and market clock information

clock: datetime

Current server time in UTC

formatdate-time
class CalendarGetMarketHoursCalendarResponse:
current_time: datetime

Current time in market timezone with offset

formatdate-time
date: date

The date for which market hours are provided

formatdate
market: MarketType

Market type identifier

One of the following:
"us_equities"
"us_options"
market_name: str

Human-readable market name

next_sessions: TradingSessions

Next trading day’s session schedules (without time_until fields)

after_hours: Optional[SessionSchedule]

After-hours session schedule, null if not available

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
pre_market: Optional[SessionSchedule]

Pre-market session schedule, null if not available

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
regular: Optional[SessionSchedule]

Regular trading session schedule, null if holiday/weekend

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
status: MarketStatus

Market status information

day_type: DayType

The type of trading day

One of the following:
"TRADING_DAY"
"EARLY_CLOSE"
"HOLIDAY"
"WEEKEND"
is_open: bool

Whether the market is currently open (real-time)

current_session: Optional[MarketSessionType]

Current session type if market is open, null if closed

One of the following:
"pre_market"
"regular"
"after_hours"
timezone: str

IANA timezone identifier for the market

today_sessions: TradingSessions

Trading session schedules for the requested date with time_until fields

after_hours: Optional[SessionSchedule]

After-hours session schedule, null if not available

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
pre_market: Optional[SessionSchedule]

Pre-market session schedule, null if not available

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration
regular: Optional[SessionSchedule]

Regular trading session schedule, null if holiday/weekend

close: datetime

Session close timestamp with timezone offset

formatdate-time
open: datetime

Session open timestamp with timezone offset

formatdate-time
time_until_close: Optional[str]

ISO 8601 duration until session closes. Null if session is not currently open.

formatduration
time_until_open: Optional[str]

ISO 8601 duration until session opens. Null if session has already started or closed.

formatduration

V1Instrument Data

Retrieve instrument analytics, market data, news, and related reference data.

Get All Instrument Events
v1.instrument_data.get_all_instrument_events(InstrumentDataGetAllInstrumentEventsParams**kwargs) -> InstrumentDataGetAllInstrumentEventsResponse
GET/v1/instruments/events
Get Instrument Events
v1.instrument_data.get_instrument_events(InstrumentIDOrSymbolinstrument_id, InstrumentDataGetInstrumentEventsParams**kwargs) -> InstrumentDataGetInstrumentEventsResponse
GET/v1/instruments/{instrument_id}/events
Get Instrument Fundamentals
v1.instrument_data.get_instrument_fundamentals(InstrumentIDOrSymbolinstrument_id) -> InstrumentDataGetInstrumentFundamentalsResponse
GET/v1/instruments/{instrument_id}/fundamentals
Get Instrument Balance Sheet Statements
v1.instrument_data.get_instrument_balance_sheet_statements(InstrumentIDOrSymbolinstrument_id, InstrumentDataGetInstrumentBalanceSheetStatementsParams**kwargs) -> InstrumentDataGetInstrumentBalanceSheetStatementsResponse
GET/v1/instruments/{instrument_id}/balance-sheets
Get Instrument Income Statements
v1.instrument_data.get_instrument_income_statements(InstrumentIDOrSymbolinstrument_id, InstrumentDataGetInstrumentIncomeStatementsParams**kwargs) -> InstrumentDataGetInstrumentIncomeStatementsResponse
GET/v1/instruments/{instrument_id}/income-statements
Get Instrument Analyst Consensus
v1.instrument_data.get_instrument_analyst_consensus(InstrumentIDOrSymbolinstrument_id, InstrumentDataGetInstrumentAnalystConsensusParams**kwargs) -> InstrumentDataGetInstrumentAnalystConsensusResponse
GET/v1/instruments/{instrument_id}/analyst-reporting
Get Instrument Cash Flow Statements
v1.instrument_data.get_instrument_cash_flow_statements(InstrumentIDOrSymbolinstrument_id, InstrumentDataGetInstrumentCashFlowStatementsParams**kwargs) -> InstrumentDataGetInstrumentCashFlowStatementsResponse
GET/v1/instruments/{instrument_id}/cash-flow-statements
ModelsExpand Collapse
Literal["EARNINGS", "DIVIDEND", "STOCK_SPLIT", "IPO"]

Event types supported by the all-events endpoint.

One of the following:
"EARNINGS"
"DIVIDEND"
"STOCK_SPLIT"
"IPO"
class AnalystDistribution:

Analyst recommendation distribution

buy: int

Number of buy recommendations

formatint64
hold: int

Number of hold recommendations

formatint64
sell: int

Number of sell recommendations

formatint64
strong_buy: int

Number of strong buy recommendations

formatint64
strong_sell: int

Number of strong sell recommendations

formatint64
Literal["STRONG_BUY", "BUY", "HOLD", 2 more]

Analyst rating category

One of the following:
"STRONG_BUY"
"BUY"
"HOLD"
"SELL"
"STRONG_SELL"
Literal["QUARTERLY", "ANNUAL", "TTM", "BIANNUAL"]

Fiscal period type for earnings reports

One of the following:
"QUARTERLY"
"ANNUAL"
"TTM"
"BIANNUAL"
class InstrumentAllEventsData:

All-events payload grouped by date.

event_dates: List[InstrumentEventsByDate]

Events grouped by date in descending order.

date: date

Event date.

formatdate

Flat event envelopes for this date.

symbol: str

Symbol associated with the event.

Event type discriminator.

One of the following:
"EARNINGS"
"DIVIDEND"
"STOCK_SPLIT"
"IPO"
dividend_event_data: Optional[InstrumentDividendEvent]

Dividend payload when type is DIVIDEND.

adjusted_dividend_amount: str

The adjusted dividend amount accounting for any splits.

ex_date: date

The day the stock starts trading without the right to receive that dividend.

formatdate
declaration_date: Optional[date]

The declaration date of the dividend

formatdate
dividend_amount: Optional[str]

The dividend amount per share.

dividend_yield: Optional[str]

The dividend yield as a percentage of the stock price.

frequency: Optional[str]

The frequency of the dividend payments (e.g., “Quarterly”, “Annual”).

payment_date: Optional[date]

The payment date is the date on which a declared stock dividend is scheduled to be paid.

formatdate
record_date: Optional[date]

The record date, set by a company’s board of directors, is when a company compiles a list of shareholders of the stock for which it has declared a dividend.

formatdate
earnings_event_data: Optional[InstrumentEarnings]

Earnings payload when type is EARNINGS.

date: date

The date when the earnings report was published

formatdate
eps_actual: Optional[str]

The actual earnings per share (EPS) for the period

eps_estimate: Optional[str]

The estimated earnings per share (EPS) for the period

eps_surprise_percent: Optional[str]

The percentage difference between actual and estimated EPS

revenue_actual: Optional[str]

The actual total revenue for the period

revenue_estimate: Optional[str]

The estimated total revenue for the period

revenue_surprise_percent: Optional[str]

The percentage difference between actual and estimated revenue

instrument_id: Optional[str]

OEMS instrument identifier, when the instrument is found in the instrument cache.

formatuuid
ipo_event_data: Optional[InstrumentEventIpoItem]

IPO payload when type is IPO.

actions: Optional[str]

IPO action.

announced_at: Optional[datetime]

IPO announced timestamp.

formatdate-time
company: Optional[str]

IPO company name.

exchange: Optional[str]

IPO exchange.

market_cap: Optional[str]

IPO market cap.

price_range: Optional[str]

IPO price range.

shares: Optional[str]

IPO shares offered.

name: Optional[str]

Instrument name associated with the event, when available.

reporting_currency: Optional[str]

The currency used for reporting financial data.

stock_split_event_data: Optional[InstrumentSplitEvent]

Stock split payload when type is STOCK_SPLIT.

date: date

The date of the stock split

formatdate
denominator: str

The denominator of the split ratio

numerator: str

The numerator of the split ratio

split_type: str

The type of stock split (e.g., “stock-split”, “stock-dividend”, “bonus-issue”)

class InstrumentAnalystConsensus:

Aggregated analyst consensus metrics

date: date

The date the consensus snapshot was generated

formatdate
distribution: Optional[AnalystDistribution]

Count of individual analyst recommendations by category

buy: int

Number of buy recommendations

formatint64
hold: int

Number of hold recommendations

formatint64
sell: int

Number of sell recommendations

formatint64
strong_buy: int

Number of strong buy recommendations

formatint64
strong_sell: int

Number of strong sell recommendations

formatint64
price_target: Optional[PriceTarget]

Aggregated analyst price target statistics

average: str

Average analyst price target

currency: str

ISO 4217 currency code of the price targets

high: str

Highest analyst price target

low: str

Lowest analyst price target

rating: Optional[AnalystRating]

Consensus analyst rating

One of the following:
"STRONG_BUY"
"BUY"
"HOLD"
"SELL"
"STRONG_SELL"
class InstrumentBalanceSheetStatement:

A quarterly balance sheet statement for an instrument.

accepted_date: datetime

The date and time when the filing was accepted by the SEC

formatdate-time
filing_date: date

The date the financial statement was filed

formatdate
period: str

The fiscal period identifier (e.g., “Q1”, “Q2”, “Q3”, “Q4”)

period_type: FiscalPeriodType

The type of fiscal period

One of the following:
"QUARTERLY"
"ANNUAL"
"TTM"
"BIANNUAL"
reported_currency: str

The currency in which the statement is reported (ISO 4217)

year: int

The fiscal year of the statement

formatint32
account_payables: Optional[str]

Account payables

accounts_receivables: Optional[str]

Accounts receivables

accrued_expenses: Optional[str]

Accrued expenses

accumulated_other_comprehensive_income_loss: Optional[str]

Accumulated other comprehensive income/loss

additional_paid_in_capital: Optional[str]

Additional paid-in capital

capital_lease_obligations: Optional[str]

Capital lease obligations (total)

capital_lease_obligations_current: Optional[str]

Capital lease obligations (current portion)

cash_and_cash_equivalents: Optional[str]

Cash and cash equivalents

cash_and_short_term_investments: Optional[str]

Cash and short-term investments combined

common_stock: Optional[str]

Common stock

deferred_revenue: Optional[str]

Deferred revenue

deferred_revenue_non_current: Optional[str]

Deferred revenue (non-current)

deferred_tax_liabilities_non_current: Optional[str]

Deferred tax liabilities (non-current)

goodwill: Optional[str]

Goodwill

goodwill_and_intangible_assets: Optional[str]

Goodwill and intangible assets combined

intangible_assets: Optional[str]

Intangible assets

inventory: Optional[str]

Inventory

long_term_debt: Optional[str]

Long-term debt

long_term_investments: Optional[str]

Long-term investments

minority_interest: Optional[str]

Minority interest

net_debt: Optional[str]

Net debt (total debt minus cash)

net_receivables: Optional[str]

Net receivables

other_assets: Optional[str]

Other assets

other_current_assets: Optional[str]

Other current assets

other_current_liabilities: Optional[str]

Other current liabilities

other_liabilities: Optional[str]

Other liabilities

other_non_current_assets: Optional[str]

Other non-current assets

other_non_current_liabilities: Optional[str]

Other non-current liabilities

other_payables: Optional[str]

Other payables

other_receivables: Optional[str]

Other receivables

other_total_stockholders_equity: Optional[str]

Other total stockholders equity

preferred_stock: Optional[str]

Preferred stock

prepaids: Optional[str]

Prepaids

property_plant_and_equipment_net: Optional[str]

Property, plant and equipment net of depreciation

retained_earnings: Optional[str]

Retained earnings

short_term_debt: Optional[str]

Short-term debt

short_term_investments: Optional[str]

Short-term investments

tax_assets: Optional[str]

Tax assets

tax_payables: Optional[str]

Tax payables

total_assets: Optional[str]

Total assets

total_current_assets: Optional[str]

Total current assets

total_current_liabilities: Optional[str]

Total current liabilities

total_debt: Optional[str]

Total debt

total_equity: Optional[str]

Total equity

total_investments: Optional[str]

Total investments

total_liabilities: Optional[str]

Total liabilities

total_liabilities_and_total_equity: Optional[str]

Total liabilities and total equity

total_non_current_assets: Optional[str]

Total non-current assets

total_non_current_liabilities: Optional[str]

Total non-current liabilities

total_payables: Optional[str]

Total payables

total_stockholders_equity: Optional[str]

Total stockholders equity

treasury_stock: Optional[str]

Treasury stock

accepted_date: datetime

The date and time when the filing was accepted by the SEC

formatdate-time
filing_date: date

The date the financial statement was filed

formatdate
period: str

The fiscal period identifier (e.g., “Q1”, “Q2”, “Q3”, “Q4”)

period_type: FiscalPeriodType

The type of fiscal period

One of the following:
"QUARTERLY"
"ANNUAL"
"TTM"
"BIANNUAL"
reported_currency: str

The currency in which the statement is reported (ISO 4217)

year: int

The fiscal year of the statement

formatint32
account_payables: Optional[str]

Account payables

accounts_receivables: Optional[str]

Accounts receivables

accrued_expenses: Optional[str]

Accrued expenses

accumulated_other_comprehensive_income_loss: Optional[str]

Accumulated other comprehensive income/loss

additional_paid_in_capital: Optional[str]

Additional paid-in capital

capital_lease_obligations: Optional[str]

Capital lease obligations (total)

capital_lease_obligations_current: Optional[str]

Capital lease obligations (current portion)

cash_and_cash_equivalents: Optional[str]

Cash and cash equivalents

cash_and_short_term_investments: Optional[str]

Cash and short-term investments combined

common_stock: Optional[str]

Common stock

deferred_revenue: Optional[str]

Deferred revenue

deferred_revenue_non_current: Optional[str]

Deferred revenue (non-current)

deferred_tax_liabilities_non_current: Optional[str]

Deferred tax liabilities (non-current)

goodwill: Optional[str]

Goodwill

goodwill_and_intangible_assets: Optional[str]

Goodwill and intangible assets combined

intangible_assets: Optional[str]

Intangible assets

inventory: Optional[str]

Inventory

long_term_debt: Optional[str]

Long-term debt

long_term_investments: Optional[str]

Long-term investments

minority_interest: Optional[str]

Minority interest

net_debt: Optional[str]

Net debt (total debt minus cash)

net_receivables: Optional[str]

Net receivables

other_assets: Optional[str]

Other assets

other_current_assets: Optional[str]

Other current assets

other_current_liabilities: Optional[str]

Other current liabilities

other_liabilities: Optional[str]

Other liabilities

other_non_current_assets: Optional[str]

Other non-current assets

other_non_current_liabilities: Optional[str]

Other non-current liabilities

other_payables: Optional[str]

Other payables

other_receivables: Optional[str]

Other receivables

other_total_stockholders_equity: Optional[str]

Other total stockholders equity

preferred_stock: Optional[str]

Preferred stock

prepaids: Optional[str]

Prepaids

property_plant_and_equipment_net: Optional[str]

Property, plant and equipment net of depreciation

retained_earnings: Optional[str]

Retained earnings

short_term_debt: Optional[str]

Short-term debt

short_term_investments: Optional[str]

Short-term investments

tax_assets: Optional[str]

Tax assets

tax_payables: Optional[str]

Tax payables

total_assets: Optional[str]

Total assets

total_current_assets: Optional[str]

Total current assets

total_current_liabilities: Optional[str]

Total current liabilities

total_debt: Optional[str]

Total debt

total_equity: Optional[str]

Total equity

total_investments: Optional[str]

Total investments

total_liabilities: Optional[str]

Total liabilities

total_liabilities_and_total_equity: Optional[str]

Total liabilities and total equity

total_non_current_assets: Optional[str]

Total non-current assets

total_non_current_liabilities: Optional[str]

Total non-current liabilities

total_payables: Optional[str]

Total payables

total_stockholders_equity: Optional[str]

Total stockholders equity

treasury_stock: Optional[str]

Treasury stock

class InstrumentCashFlowStatement:

A quarterly cash flow statement for an instrument.

accepted_date: datetime

The date and time when the filing was accepted by the SEC

formatdate-time
filing_date: date

The date the financial statement was filed

formatdate
period: str

The fiscal period identifier (e.g., “Q1”, “Q2”, “Q3”, “Q4”)

period_type: FiscalPeriodType

The type of fiscal period

One of the following:
"QUARTERLY"
"ANNUAL"
"TTM"
"BIANNUAL"
reported_currency: str

The currency in which the statement is reported (ISO 4217)

year: int

The fiscal year of the statement

formatint32
accounts_payables: Optional[str]

Change in accounts payables

accounts_receivables: Optional[str]

Change in accounts receivables

acquisitions_net: Optional[str]

Net acquisitions

capital_expenditure: Optional[str]

Capital expenditure

cash_at_beginning_of_period: Optional[str]

Cash and cash equivalents at beginning of period

cash_at_end_of_period: Optional[str]

Cash and cash equivalents at end of period

change_in_working_capital: Optional[str]

Change in working capital

common_dividends_paid: Optional[str]

Common dividends paid

common_stock_issuance: Optional[str]

Common stock issuance

common_stock_repurchased: Optional[str]

Common stock repurchased (buybacks)

deferred_income_tax: Optional[str]

Deferred income tax expense

depreciation_and_amortization: Optional[str]

Depreciation and amortization expense

effect_of_forex_changes_on_cash: Optional[str]

Effect of foreign exchange changes on cash

free_cash_flow: Optional[str]

Free cash flow (operating cash flow minus capital expenditure)

income_taxes_paid: Optional[str]

Income taxes paid

interest_paid: Optional[str]

Interest paid

inventory: Optional[str]

Change in inventory

investments_in_property_plant_and_equipment: Optional[str]

Investments in property, plant, and equipment

long_term_net_debt_issuance: Optional[str]

Long-term net debt issuance

net_cash_provided_by_financing_activities: Optional[str]

Net cash provided by financing activities

net_cash_provided_by_investing_activities: Optional[str]

Net cash provided by investing activities

net_cash_provided_by_operating_activities: Optional[str]

Net cash provided by operating activities

net_change_in_cash: Optional[str]

Net change in cash during the period

net_common_stock_issuance: Optional[str]

Net common stock issuance

net_debt_issuance: Optional[str]

Net debt issuance (long-term + short-term)

net_dividends_paid: Optional[str]

Net dividends paid (common + preferred)

net_income: Optional[str]

Net income for the period

net_preferred_stock_issuance: Optional[str]

Net preferred stock issuance

net_stock_issuance: Optional[str]

Net stock issuance (common + preferred)

operating_cash_flow: Optional[str]

Operating cash flow (alternative calculation)

other_financing_activities: Optional[str]

Other financing activities

other_investing_activities: Optional[str]

Other investing activities

other_non_cash_items: Optional[str]

Other non-cash items

other_working_capital: Optional[str]

Change in other working capital

preferred_dividends_paid: Optional[str]

Preferred dividends paid

purchases_of_investments: Optional[str]

Purchases of investments

sales_maturities_of_investments: Optional[str]

Sales and maturities of investments

short_term_net_debt_issuance: Optional[str]

Short-term net debt issuance

stock_based_compensation: Optional[str]

Stock-based compensation expense

accepted_date: datetime

The date and time when the filing was accepted by the SEC

formatdate-time
filing_date: date

The date the financial statement was filed

formatdate
period: str

The fiscal period identifier (e.g., “Q1”, “Q2”, “Q3”, “Q4”)

period_type: FiscalPeriodType

The type of fiscal period

One of the following:
"QUARTERLY"
"ANNUAL"
"TTM"
"BIANNUAL"
reported_currency: str

The currency in which the statement is reported (ISO 4217)

year: int

The fiscal year of the statement

formatint32
accounts_payables: Optional[str]

Change in accounts payables

accounts_receivables: Optional[str]

Change in accounts receivables

acquisitions_net: Optional[str]

Net acquisitions

capital_expenditure: Optional[str]

Capital expenditure

cash_at_beginning_of_period: Optional[str]

Cash and cash equivalents at beginning of period

cash_at_end_of_period: Optional[str]

Cash and cash equivalents at end of period

change_in_working_capital: Optional[str]

Change in working capital

common_dividends_paid: Optional[str]

Common dividends paid

common_stock_issuance: Optional[str]

Common stock issuance

common_stock_repurchased: Optional[str]

Common stock repurchased (buybacks)

deferred_income_tax: Optional[str]

Deferred income tax expense

depreciation_and_amortization: Optional[str]

Depreciation and amortization expense

effect_of_forex_changes_on_cash: Optional[str]

Effect of foreign exchange changes on cash

free_cash_flow: Optional[str]

Free cash flow (operating cash flow minus capital expenditure)

income_taxes_paid: Optional[str]

Income taxes paid

interest_paid: Optional[str]

Interest paid

inventory: Optional[str]

Change in inventory

investments_in_property_plant_and_equipment: Optional[str]

Investments in property, plant, and equipment

long_term_net_debt_issuance: Optional[str]

Long-term net debt issuance

net_cash_provided_by_financing_activities: Optional[str]

Net cash provided by financing activities

net_cash_provided_by_investing_activities: Optional[str]

Net cash provided by investing activities

net_cash_provided_by_operating_activities: Optional[str]

Net cash provided by operating activities

net_change_in_cash: Optional[str]

Net change in cash during the period

net_common_stock_issuance: Optional[str]

Net common stock issuance

net_debt_issuance: Optional[str]

Net debt issuance (long-term + short-term)

net_dividends_paid: Optional[str]

Net dividends paid (common + preferred)

net_income: Optional[str]

Net income for the period

net_preferred_stock_issuance: Optional[str]

Net preferred stock issuance

net_stock_issuance: Optional[str]

Net stock issuance (common + preferred)

operating_cash_flow: Optional[str]

Operating cash flow (alternative calculation)

other_financing_activities: Optional[str]

Other financing activities

other_investing_activities: Optional[str]

Other investing activities

other_non_cash_items: Optional[str]

Other non-cash items

other_working_capital: Optional[str]

Change in other working capital

preferred_dividends_paid: Optional[str]

Preferred dividends paid

purchases_of_investments: Optional[str]

Purchases of investments

sales_maturities_of_investments: Optional[str]

Sales and maturities of investments

short_term_net_debt_issuance: Optional[str]

Short-term net debt issuance

stock_based_compensation: Optional[str]

Stock-based compensation expense

class InstrumentDividendEvent:

Represents a dividend event for an instrument

adjusted_dividend_amount: str

The adjusted dividend amount accounting for any splits.

ex_date: date

The day the stock starts trading without the right to receive that dividend.

formatdate
declaration_date: Optional[date]

The declaration date of the dividend

formatdate
dividend_amount: Optional[str]

The dividend amount per share.

dividend_yield: Optional[str]

The dividend yield as a percentage of the stock price.

frequency: Optional[str]

The frequency of the dividend payments (e.g., “Quarterly”, “Annual”).

payment_date: Optional[date]

The payment date is the date on which a declared stock dividend is scheduled to be paid.

formatdate
record_date: Optional[date]

The record date, set by a company’s board of directors, is when a company compiles a list of shareholders of the stock for which it has declared a dividend.

formatdate
class InstrumentEarnings:

Represents instrument earnings data

date: date

The date when the earnings report was published

formatdate
eps_actual: Optional[str]

The actual earnings per share (EPS) for the period

eps_estimate: Optional[str]

The estimated earnings per share (EPS) for the period

eps_surprise_percent: Optional[str]

The percentage difference between actual and estimated EPS

revenue_actual: Optional[str]

The actual total revenue for the period

revenue_estimate: Optional[str]

The estimated total revenue for the period

revenue_surprise_percent: Optional[str]

The percentage difference between actual and estimated revenue

class InstrumentEventEnvelope:

Unified envelope for the all-events response.

symbol: str

Symbol associated with the event.

Event type discriminator.

One of the following:
"EARNINGS"
"DIVIDEND"
"STOCK_SPLIT"
"IPO"
dividend_event_data: Optional[InstrumentDividendEvent]

Dividend payload when type is DIVIDEND.

adjusted_dividend_amount: str

The adjusted dividend amount accounting for any splits.

ex_date: date

The day the stock starts trading without the right to receive that dividend.

formatdate
declaration_date: Optional[date]

The declaration date of the dividend

formatdate
dividend_amount: Optional[str]

The dividend amount per share.

dividend_yield: Optional[str]

The dividend yield as a percentage of the stock price.

frequency: Optional[str]

The frequency of the dividend payments (e.g., “Quarterly”, “Annual”).

payment_date: Optional[date]

The payment date is the date on which a declared stock dividend is scheduled to be paid.

formatdate
record_date: Optional[date]

The record date, set by a company’s board of directors, is when a company compiles a list of shareholders of the stock for which it has declared a dividend.

formatdate
earnings_event_data: Optional[InstrumentEarnings]

Earnings payload when type is EARNINGS.

date: date

The date when the earnings report was published

formatdate
eps_actual: Optional[str]

The actual earnings per share (EPS) for the period

eps_estimate: Optional[str]

The estimated earnings per share (EPS) for the period

eps_surprise_percent: Optional[str]

The percentage difference between actual and estimated EPS

revenue_actual: Optional[str]

The actual total revenue for the period

revenue_estimate: Optional[str]

The estimated total revenue for the period

revenue_surprise_percent: Optional[str]

The percentage difference between actual and estimated revenue

instrument_id: Optional[str]

OEMS instrument identifier, when the instrument is found in the instrument cache.

formatuuid
ipo_event_data: Optional[InstrumentEventIpoItem]

IPO payload when type is IPO.

actions: Optional[str]

IPO action.

announced_at: Optional[datetime]

IPO announced timestamp.

formatdate-time
company: Optional[str]

IPO company name.

exchange: Optional[str]

IPO exchange.

market_cap: Optional[str]

IPO market cap.

price_range: Optional[str]

IPO price range.

shares: Optional[str]

IPO shares offered.

name: Optional[str]

Instrument name associated with the event, when available.

reporting_currency: Optional[str]

The currency used for reporting financial data.

stock_split_event_data: Optional[InstrumentSplitEvent]

Stock split payload when type is STOCK_SPLIT.

date: date

The date of the stock split

formatdate
denominator: str

The denominator of the split ratio

numerator: str

The numerator of the split ratio

split_type: str

The type of stock split (e.g., “stock-split”, “stock-dividend”, “bonus-issue”)

class InstrumentEventIpoItem:

IPO event in the all-events date grouping response.

actions: Optional[str]

IPO action.

announced_at: Optional[datetime]

IPO announced timestamp.

formatdate-time
company: Optional[str]

IPO company name.

exchange: Optional[str]

IPO exchange.

market_cap: Optional[str]

IPO market cap.

price_range: Optional[str]

IPO price range.

shares: Optional[str]

IPO shares offered.

class InstrumentEventsByDate:

Instrument events for a single date.

date: date

Event date.

formatdate

Flat event envelopes for this date.

symbol: str

Symbol associated with the event.

Event type discriminator.

One of the following:
"EARNINGS"
"DIVIDEND"
"STOCK_SPLIT"
"IPO"
dividend_event_data: Optional[InstrumentDividendEvent]

Dividend payload when type is DIVIDEND.

adjusted_dividend_amount: str

The adjusted dividend amount accounting for any splits.

ex_date: date

The day the stock starts trading without the right to receive that dividend.

formatdate
declaration_date: Optional[date]

The declaration date of the dividend

formatdate
dividend_amount: Optional[str]

The dividend amount per share.

dividend_yield: Optional[str]

The dividend yield as a percentage of the stock price.

frequency: Optional[str]

The frequency of the dividend payments (e.g., “Quarterly”, “Annual”).

payment_date: Optional[date]

The payment date is the date on which a declared stock dividend is scheduled to be paid.

formatdate
record_date: Optional[date]

The record date, set by a company’s board of directors, is when a company compiles a list of shareholders of the stock for which it has declared a dividend.

formatdate
earnings_event_data: Optional[InstrumentEarnings]

Earnings payload when type is EARNINGS.

date: date

The date when the earnings report was published

formatdate
eps_actual: Optional[str]

The actual earnings per share (EPS) for the period

eps_estimate: Optional[str]

The estimated earnings per share (EPS) for the period

eps_surprise_percent: Optional[str]

The percentage difference between actual and estimated EPS

revenue_actual: Optional[str]

The actual total revenue for the period

revenue_estimate: Optional[str]

The estimated total revenue for the period

revenue_surprise_percent: Optional[str]

The percentage difference between actual and estimated revenue

instrument_id: Optional[str]

OEMS instrument identifier, when the instrument is found in the instrument cache.

formatuuid
ipo_event_data: Optional[InstrumentEventIpoItem]

IPO payload when type is IPO.

actions: Optional[str]

IPO action.

announced_at: Optional[datetime]

IPO announced timestamp.

formatdate-time
company: Optional[str]

IPO company name.

exchange: Optional[str]

IPO exchange.

market_cap: Optional[str]

IPO market cap.

price_range: Optional[str]

IPO price range.

shares: Optional[str]

IPO shares offered.

name: Optional[str]

Instrument name associated with the event, when available.

reporting_currency: Optional[str]

The currency used for reporting financial data.

stock_split_event_data: Optional[InstrumentSplitEvent]

Stock split payload when type is STOCK_SPLIT.

date: date

The date of the stock split

formatdate
denominator: str

The denominator of the split ratio

numerator: str

The numerator of the split ratio

split_type: str

The type of stock split (e.g., “stock-split”, “stock-dividend”, “bonus-issue”)

class InstrumentEventsData:

Grouped instrument events by type

dividends: List[InstrumentDividendEvent]

Dividend distribution events

adjusted_dividend_amount: str

The adjusted dividend amount accounting for any splits.

ex_date: date

The day the stock starts trading without the right to receive that dividend.

formatdate
declaration_date: Optional[date]

The declaration date of the dividend

formatdate
dividend_amount: Optional[str]

The dividend amount per share.

dividend_yield: Optional[str]

The dividend yield as a percentage of the stock price.

frequency: Optional[str]

The frequency of the dividend payments (e.g., “Quarterly”, “Annual”).

payment_date: Optional[date]

The payment date is the date on which a declared stock dividend is scheduled to be paid.

formatdate
record_date: Optional[date]

The record date, set by a company’s board of directors, is when a company compiles a list of shareholders of the stock for which it has declared a dividend.

formatdate
earnings: List[InstrumentEarnings]

Earnings announcement events

date: date

The date when the earnings report was published

formatdate
eps_actual: Optional[str]

The actual earnings per share (EPS) for the period

eps_estimate: Optional[str]

The estimated earnings per share (EPS) for the period

eps_surprise_percent: Optional[str]

The percentage difference between actual and estimated EPS

revenue_actual: Optional[str]

The actual total revenue for the period

revenue_estimate: Optional[str]

The estimated total revenue for the period

revenue_surprise_percent: Optional[str]

The percentage difference between actual and estimated revenue

instrument_id: str

OEMS instrument UUID from the request

formatuuid
splits: List[InstrumentSplitEvent]

Stock split events

date: date

The date of the stock split

formatdate
denominator: str

The denominator of the split ratio

numerator: str

The numerator of the split ratio

split_type: str

The type of stock split (e.g., “stock-split”, “stock-dividend”, “bonus-issue”)

reporting_currency: Optional[str]

The currency used for reporting financial data

class InstrumentFundamentals:

Supplemental fundamentals and company profile data for an instrument.

average_volume: Optional[int]

The average daily trading volume over the past 30 days

formatint64
beta: Optional[str]

The beta value, measuring the instrument’s volatility relative to the overall market

description: Optional[str]

A detailed description of the instrument or company

dividend_yield: Optional[str]

The trailing twelve months (TTM) dividend yield

earnings_per_share: Optional[str]

The trailing twelve months (TTM) earnings per share

fifty_two_week_high: Optional[str]

The highest price over the last 52 weeks

fifty_two_week_low: Optional[str]

The lowest price over the last 52 weeks

industry: Optional[str]

The specific industry of the instrument’s issuer

list_date: Optional[date]

The date the instrument was first listed

formatdate
logo_url: Optional[str]

URL to a representative logo image for the instrument or issuer

market_cap: Optional[str]

The total market capitalization

previous_close: Optional[str]

The closing price from the previous trading day

price_to_earnings: Optional[str]

The price-to-earnings (P/E) ratio for the trailing twelve months (TTM)

reporting_currency: Optional[str]

The currency used for reporting financial data

sector: Optional[str]

The business sector of the instrument’s issuer

class InstrumentIncomeStatement:

A quarterly income statement for an instrument.

accepted_date: datetime

The date and time when the filing was accepted by the SEC

formatdate-time
filing_date: date

The date the financial statement was filed

formatdate
period: str

The fiscal period identifier (e.g., “Q1”, “Q2”, “Q3”, “Q4”)

period_type: FiscalPeriodType

The type of fiscal period

One of the following:
"QUARTERLY"
"ANNUAL"
"TTM"
"BIANNUAL"
reported_currency: str

The currency in which the statement is reported (ISO 4217)

year: int

The fiscal year of the statement

formatint32
bottom_line_net_income: Optional[str]

Bottom line net income after all adjustments

cost_and_expenses: Optional[str]

Total costs and expenses

cost_of_revenue: Optional[str]

Direct costs attributable to producing goods sold

depreciation_and_amortization: Optional[str]

Depreciation and amortization expenses

ebit: Optional[str]

Earnings before interest and taxes

ebitda: Optional[str]

Earnings before interest, taxes, depreciation, and amortization

eps: Optional[str]

Basic earnings per share

eps_diluted: Optional[str]

Diluted earnings per share

general_and_administrative_expenses: Optional[str]

General administrative overhead expenses

gross_profit: Optional[str]

Revenue minus cost of revenue

income_before_tax: Optional[str]

Income before income tax expense

income_tax_expense: Optional[str]

Income tax expense for the period

interest_expense: Optional[str]

Interest paid on debt

interest_income: Optional[str]

Interest earned on investments and cash

net_income: Optional[str]

Total net income for the period

net_income_deductions: Optional[str]

Deductions from net income

net_income_from_continuing_operations: Optional[str]

Net income from continuing operations

net_income_from_discontinued_operations: Optional[str]

Net income from discontinued operations

net_interest_income: Optional[str]

Net interest income (interest income minus interest expense)

non_operating_income_excluding_interest: Optional[str]

Non-operating income excluding interest

operating_expenses: Optional[str]

Total operating expenses

operating_income: Optional[str]

Income from core business operations

other_adjustments_to_net_income: Optional[str]

Other adjustments to net income

other_expenses: Optional[str]

Other miscellaneous expenses

research_and_development_expenses: Optional[str]

Expenditure on research and development activities

revenue: Optional[str]

Total revenue from sales of goods and services

selling_and_marketing_expenses: Optional[str]

Expenditure on marketing and sales activities

selling_general_and_administrative_expenses: Optional[str]

Combined selling, general, and administrative expenses

total_other_income_expenses_net: Optional[str]

Net of other income and expenses

weighted_average_shs_out: Optional[str]

Weighted average shares outstanding (basic)

weighted_average_shs_out_dil: Optional[str]

Weighted average shares outstanding (diluted)

accepted_date: datetime

The date and time when the filing was accepted by the SEC

formatdate-time
filing_date: date

The date the financial statement was filed

formatdate
period: str

The fiscal period identifier (e.g., “Q1”, “Q2”, “Q3”, “Q4”)

period_type: FiscalPeriodType

The type of fiscal period

One of the following:
"QUARTERLY"
"ANNUAL"
"TTM"
"BIANNUAL"
reported_currency: str

The currency in which the statement is reported (ISO 4217)

year: int

The fiscal year of the statement

formatint32
bottom_line_net_income: Optional[str]

Bottom line net income after all adjustments

cost_and_expenses: Optional[str]

Total costs and expenses

cost_of_revenue: Optional[str]

Direct costs attributable to producing goods sold

depreciation_and_amortization: Optional[str]

Depreciation and amortization expenses

ebit: Optional[str]

Earnings before interest and taxes

ebitda: Optional[str]

Earnings before interest, taxes, depreciation, and amortization

eps: Optional[str]

Basic earnings per share

eps_diluted: Optional[str]

Diluted earnings per share

general_and_administrative_expenses: Optional[str]

General administrative overhead expenses

gross_profit: Optional[str]

Revenue minus cost of revenue

income_before_tax: Optional[str]

Income before income tax expense

income_tax_expense: Optional[str]

Income tax expense for the period

interest_expense: Optional[str]

Interest paid on debt

interest_income: Optional[str]

Interest earned on investments and cash

net_income: Optional[str]

Total net income for the period

net_income_deductions: Optional[str]

Deductions from net income

net_income_from_continuing_operations: Optional[str]

Net income from continuing operations

net_income_from_discontinued_operations: Optional[str]

Net income from discontinued operations

net_interest_income: Optional[str]

Net interest income (interest income minus interest expense)

non_operating_income_excluding_interest: Optional[str]

Non-operating income excluding interest

operating_expenses: Optional[str]

Total operating expenses

operating_income: Optional[str]

Income from core business operations

other_adjustments_to_net_income: Optional[str]

Other adjustments to net income

other_expenses: Optional[str]

Other miscellaneous expenses

research_and_development_expenses: Optional[str]

Expenditure on research and development activities

revenue: Optional[str]

Total revenue from sales of goods and services

selling_and_marketing_expenses: Optional[str]

Expenditure on marketing and sales activities

selling_general_and_administrative_expenses: Optional[str]

Combined selling, general, and administrative expenses

total_other_income_expenses_net: Optional[str]

Net of other income and expenses

weighted_average_shs_out: Optional[str]

Weighted average shares outstanding (basic)

weighted_average_shs_out_dil: Optional[str]

Weighted average shares outstanding (diluted)

class InstrumentSplitEvent:

Represents a stock split event for an instrument

date: date

The date of the stock split

formatdate
denominator: str

The denominator of the split ratio

numerator: str

The numerator of the split ratio

split_type: str

The type of stock split (e.g., “stock-split”, “stock-dividend”, “bonus-issue”)

class PriceTarget:

Analyst price target statistics

average: str

Average analyst price target

currency: str

ISO 4217 currency code of the price targets

high: str

Highest analyst price target

low: str

Lowest analyst price target

class InstrumentDataGetAllInstrumentEventsResponse:

All-events payload grouped by date.

event_dates: List[InstrumentEventsByDate]

Events grouped by date in descending order.

date: date

Event date.

formatdate

Flat event envelopes for this date.

symbol: str

Symbol associated with the event.

Event type discriminator.

One of the following:
"EARNINGS"
"DIVIDEND"
"STOCK_SPLIT"
"IPO"
dividend_event_data: Optional[InstrumentDividendEvent]

Dividend payload when type is DIVIDEND.

adjusted_dividend_amount: str

The adjusted dividend amount accounting for any splits.

ex_date: date

The day the stock starts trading without the right to receive that dividend.

formatdate
declaration_date: Optional[date]

The declaration date of the dividend

formatdate
dividend_amount: Optional[str]

The dividend amount per share.

dividend_yield: Optional[str]

The dividend yield as a percentage of the stock price.

frequency: Optional[str]

The frequency of the dividend payments (e.g., “Quarterly”, “Annual”).

payment_date: Optional[date]

The payment date is the date on which a declared stock dividend is scheduled to be paid.

formatdate
record_date: Optional[date]

The record date, set by a company’s board of directors, is when a company compiles a list of shareholders of the stock for which it has declared a dividend.

formatdate
earnings_event_data: Optional[InstrumentEarnings]

Earnings payload when type is EARNINGS.

date: date

The date when the earnings report was published

formatdate
eps_actual: Optional[str]

The actual earnings per share (EPS) for the period

eps_estimate: Optional[str]

The estimated earnings per share (EPS) for the period

eps_surprise_percent: Optional[str]

The percentage difference between actual and estimated EPS

revenue_actual: Optional[str]

The actual total revenue for the period

revenue_estimate: Optional[str]

The estimated total revenue for the period

revenue_surprise_percent: Optional[str]

The percentage difference between actual and estimated revenue

instrument_id: Optional[str]

OEMS instrument identifier, when the instrument is found in the instrument cache.

formatuuid
ipo_event_data: Optional[InstrumentEventIpoItem]

IPO payload when type is IPO.

actions: Optional[str]

IPO action.

announced_at: Optional[datetime]

IPO announced timestamp.

formatdate-time
company: Optional[str]

IPO company name.

exchange: Optional[str]

IPO exchange.

market_cap: Optional[str]

IPO market cap.

price_range: Optional[str]

IPO price range.

shares: Optional[str]

IPO shares offered.

name: Optional[str]

Instrument name associated with the event, when available.

reporting_currency: Optional[str]

The currency used for reporting financial data.

stock_split_event_data: Optional[InstrumentSplitEvent]

Stock split payload when type is STOCK_SPLIT.

date: date

The date of the stock split

formatdate
denominator: str

The denominator of the split ratio

numerator: str

The numerator of the split ratio

split_type: str

The type of stock split (e.g., “stock-split”, “stock-dividend”, “bonus-issue”)

class InstrumentDataGetInstrumentEventsResponse:

Grouped instrument events by type

dividends: List[InstrumentDividendEvent]

Dividend distribution events

adjusted_dividend_amount: str

The adjusted dividend amount accounting for any splits.

ex_date: date

The day the stock starts trading without the right to receive that dividend.

formatdate
declaration_date: Optional[date]

The declaration date of the dividend

formatdate
dividend_amount: Optional[str]

The dividend amount per share.

dividend_yield: Optional[str]

The dividend yield as a percentage of the stock price.

frequency: Optional[str]

The frequency of the dividend payments (e.g., “Quarterly”, “Annual”).

payment_date: Optional[date]

The payment date is the date on which a declared stock dividend is scheduled to be paid.

formatdate
record_date: Optional[date]

The record date, set by a company’s board of directors, is when a company compiles a list of shareholders of the stock for which it has declared a dividend.

formatdate
earnings: List[InstrumentEarnings]

Earnings announcement events

date: date

The date when the earnings report was published

formatdate
eps_actual: Optional[str]

The actual earnings per share (EPS) for the period

eps_estimate: Optional[str]

The estimated earnings per share (EPS) for the period

eps_surprise_percent: Optional[str]

The percentage difference between actual and estimated EPS

revenue_actual: Optional[str]

The actual total revenue for the period

revenue_estimate: Optional[str]

The estimated total revenue for the period

revenue_surprise_percent: Optional[str]

The percentage difference between actual and estimated revenue

instrument_id: str

OEMS instrument UUID from the request

formatuuid
splits: List[InstrumentSplitEvent]

Stock split events

date: date

The date of the stock split

formatdate
denominator: str

The denominator of the split ratio

numerator: str

The numerator of the split ratio

split_type: str

The type of stock split (e.g., “stock-split”, “stock-dividend”, “bonus-issue”)

reporting_currency: Optional[str]

The currency used for reporting financial data

class InstrumentDataGetInstrumentFundamentalsResponse:

Supplemental fundamentals and company profile data for an instrument.

average_volume: Optional[int]

The average daily trading volume over the past 30 days

formatint64
beta: Optional[str]

The beta value, measuring the instrument’s volatility relative to the overall market

description: Optional[str]

A detailed description of the instrument or company

dividend_yield: Optional[str]

The trailing twelve months (TTM) dividend yield

earnings_per_share: Optional[str]

The trailing twelve months (TTM) earnings per share

fifty_two_week_high: Optional[str]

The highest price over the last 52 weeks

fifty_two_week_low: Optional[str]

The lowest price over the last 52 weeks

industry: Optional[str]

The specific industry of the instrument’s issuer

list_date: Optional[date]

The date the instrument was first listed

formatdate
logo_url: Optional[str]

URL to a representative logo image for the instrument or issuer

market_cap: Optional[str]

The total market capitalization

previous_close: Optional[str]

The closing price from the previous trading day

price_to_earnings: Optional[str]

The price-to-earnings (P/E) ratio for the trailing twelve months (TTM)

reporting_currency: Optional[str]

The currency used for reporting financial data

sector: Optional[str]

The business sector of the instrument’s issuer

class InstrumentDataGetInstrumentBalanceSheetStatementsResponse:
accepted_date: datetime

The date and time when the filing was accepted by the SEC

formatdate-time
filing_date: date

The date the financial statement was filed

formatdate
period: str

The fiscal period identifier (e.g., “Q1”, “Q2”, “Q3”, “Q4”)

period_type: FiscalPeriodType

The type of fiscal period

One of the following:
"QUARTERLY"
"ANNUAL"
"TTM"
"BIANNUAL"
reported_currency: str

The currency in which the statement is reported (ISO 4217)

year: int

The fiscal year of the statement

formatint32
account_payables: Optional[str]

Account payables

accounts_receivables: Optional[str]

Accounts receivables

accrued_expenses: Optional[str]

Accrued expenses

accumulated_other_comprehensive_income_loss: Optional[str]

Accumulated other comprehensive income/loss

additional_paid_in_capital: Optional[str]

Additional paid-in capital

capital_lease_obligations: Optional[str]

Capital lease obligations (total)

capital_lease_obligations_current: Optional[str]

Capital lease obligations (current portion)

cash_and_cash_equivalents: Optional[str]

Cash and cash equivalents

cash_and_short_term_investments: Optional[str]

Cash and short-term investments combined

common_stock: Optional[str]

Common stock

deferred_revenue: Optional[str]

Deferred revenue

deferred_revenue_non_current: Optional[str]

Deferred revenue (non-current)

deferred_tax_liabilities_non_current: Optional[str]

Deferred tax liabilities (non-current)

goodwill: Optional[str]

Goodwill

goodwill_and_intangible_assets: Optional[str]

Goodwill and intangible assets combined

intangible_assets: Optional[str]

Intangible assets

inventory: Optional[str]

Inventory

long_term_debt: Optional[str]

Long-term debt

long_term_investments: Optional[str]

Long-term investments

minority_interest: Optional[str]

Minority interest

net_debt: Optional[str]

Net debt (total debt minus cash)

net_receivables: Optional[str]

Net receivables

other_assets: Optional[str]

Other assets

other_current_assets: Optional[str]

Other current assets

other_current_liabilities: Optional[str]

Other current liabilities

other_liabilities: Optional[str]

Other liabilities

other_non_current_assets: Optional[str]

Other non-current assets

other_non_current_liabilities: Optional[str]

Other non-current liabilities

other_payables: Optional[str]

Other payables

other_receivables: Optional[str]

Other receivables

other_total_stockholders_equity: Optional[str]

Other total stockholders equity

preferred_stock: Optional[str]

Preferred stock

prepaids: Optional[str]

Prepaids

property_plant_and_equipment_net: Optional[str]

Property, plant and equipment net of depreciation

retained_earnings: Optional[str]

Retained earnings

short_term_debt: Optional[str]

Short-term debt

short_term_investments: Optional[str]

Short-term investments

tax_assets: Optional[str]

Tax assets

tax_payables: Optional[str]

Tax payables

total_assets: Optional[str]

Total assets

total_current_assets: Optional[str]

Total current assets

total_current_liabilities: Optional[str]

Total current liabilities

total_debt: Optional[str]

Total debt

total_equity: Optional[str]

Total equity

total_investments: Optional[str]

Total investments

total_liabilities: Optional[str]

Total liabilities

total_liabilities_and_total_equity: Optional[str]

Total liabilities and total equity

total_non_current_assets: Optional[str]

Total non-current assets

total_non_current_liabilities: Optional[str]

Total non-current liabilities

total_payables: Optional[str]

Total payables

total_stockholders_equity: Optional[str]

Total stockholders equity

treasury_stock: Optional[str]

Treasury stock

class InstrumentDataGetInstrumentIncomeStatementsResponse:
accepted_date: datetime

The date and time when the filing was accepted by the SEC

formatdate-time
filing_date: date

The date the financial statement was filed

formatdate
period: str

The fiscal period identifier (e.g., “Q1”, “Q2”, “Q3”, “Q4”)

period_type: FiscalPeriodType

The type of fiscal period

One of the following:
"QUARTERLY"
"ANNUAL"
"TTM"
"BIANNUAL"
reported_currency: str

The currency in which the statement is reported (ISO 4217)

year: int

The fiscal year of the statement

formatint32
bottom_line_net_income: Optional[str]

Bottom line net income after all adjustments

cost_and_expenses: Optional[str]

Total costs and expenses

cost_of_revenue: Optional[str]

Direct costs attributable to producing goods sold

depreciation_and_amortization: Optional[str]

Depreciation and amortization expenses

ebit: Optional[str]

Earnings before interest and taxes

ebitda: Optional[str]

Earnings before interest, taxes, depreciation, and amortization

eps: Optional[str]

Basic earnings per share

eps_diluted: Optional[str]

Diluted earnings per share

general_and_administrative_expenses: Optional[str]

General administrative overhead expenses

gross_profit: Optional[str]

Revenue minus cost of revenue

income_before_tax: Optional[str]

Income before income tax expense

income_tax_expense: Optional[str]

Income tax expense for the period

interest_expense: Optional[str]

Interest paid on debt

interest_income: Optional[str]

Interest earned on investments and cash

net_income: Optional[str]

Total net income for the period

net_income_deductions: Optional[str]

Deductions from net income

net_income_from_continuing_operations: Optional[str]

Net income from continuing operations

net_income_from_discontinued_operations: Optional[str]

Net income from discontinued operations

net_interest_income: Optional[str]

Net interest income (interest income minus interest expense)

non_operating_income_excluding_interest: Optional[str]

Non-operating income excluding interest

operating_expenses: Optional[str]

Total operating expenses

operating_income: Optional[str]

Income from core business operations

other_adjustments_to_net_income: Optional[str]

Other adjustments to net income

other_expenses: Optional[str]

Other miscellaneous expenses

research_and_development_expenses: Optional[str]

Expenditure on research and development activities

revenue: Optional[str]

Total revenue from sales of goods and services

selling_and_marketing_expenses: Optional[str]

Expenditure on marketing and sales activities

selling_general_and_administrative_expenses: Optional[str]

Combined selling, general, and administrative expenses

total_other_income_expenses_net: Optional[str]

Net of other income and expenses

weighted_average_shs_out: Optional[str]

Weighted average shares outstanding (basic)

weighted_average_shs_out_dil: Optional[str]

Weighted average shares outstanding (diluted)

class InstrumentDataGetInstrumentAnalystConsensusResponse:

Aggregated analyst consensus metrics

date: date

The date the consensus snapshot was generated

formatdate
distribution: Optional[AnalystDistribution]

Count of individual analyst recommendations by category

buy: int

Number of buy recommendations

formatint64
hold: int

Number of hold recommendations

formatint64
sell: int

Number of sell recommendations

formatint64
strong_buy: int

Number of strong buy recommendations

formatint64
strong_sell: int

Number of strong sell recommendations

formatint64
price_target: Optional[PriceTarget]

Aggregated analyst price target statistics

average: str

Average analyst price target

currency: str

ISO 4217 currency code of the price targets

high: str

Highest analyst price target

low: str

Lowest analyst price target

rating: Optional[AnalystRating]

Consensus analyst rating

One of the following:
"STRONG_BUY"
"BUY"
"HOLD"
"SELL"
"STRONG_SELL"
class InstrumentDataGetInstrumentCashFlowStatementsResponse:
accepted_date: datetime

The date and time when the filing was accepted by the SEC

formatdate-time
filing_date: date

The date the financial statement was filed

formatdate
period: str

The fiscal period identifier (e.g., “Q1”, “Q2”, “Q3”, “Q4”)

period_type: FiscalPeriodType

The type of fiscal period

One of the following:
"QUARTERLY"
"ANNUAL"
"TTM"
"BIANNUAL"
reported_currency: str

The currency in which the statement is reported (ISO 4217)

year: int

The fiscal year of the statement

formatint32
accounts_payables: Optional[str]

Change in accounts payables

accounts_receivables: Optional[str]

Change in accounts receivables

acquisitions_net: Optional[str]

Net acquisitions

capital_expenditure: Optional[str]

Capital expenditure

cash_at_beginning_of_period: Optional[str]

Cash and cash equivalents at beginning of period

cash_at_end_of_period: Optional[str]

Cash and cash equivalents at end of period

change_in_working_capital: Optional[str]

Change in working capital

common_dividends_paid: Optional[str]

Common dividends paid

common_stock_issuance: Optional[str]

Common stock issuance

common_stock_repurchased: Optional[str]

Common stock repurchased (buybacks)

deferred_income_tax: Optional[str]

Deferred income tax expense

depreciation_and_amortization: Optional[str]

Depreciation and amortization expense

effect_of_forex_changes_on_cash: Optional[str]

Effect of foreign exchange changes on cash

free_cash_flow: Optional[str]

Free cash flow (operating cash flow minus capital expenditure)

income_taxes_paid: Optional[str]

Income taxes paid

interest_paid: Optional[str]

Interest paid

inventory: Optional[str]

Change in inventory

investments_in_property_plant_and_equipment: Optional[str]

Investments in property, plant, and equipment

long_term_net_debt_issuance: Optional[str]

Long-term net debt issuance

net_cash_provided_by_financing_activities: Optional[str]

Net cash provided by financing activities

net_cash_provided_by_investing_activities: Optional[str]

Net cash provided by investing activities

net_cash_provided_by_operating_activities: Optional[str]

Net cash provided by operating activities

net_change_in_cash: Optional[str]

Net change in cash during the period

net_common_stock_issuance: Optional[str]

Net common stock issuance

net_debt_issuance: Optional[str]

Net debt issuance (long-term + short-term)

net_dividends_paid: Optional[str]

Net dividends paid (common + preferred)

net_income: Optional[str]

Net income for the period

net_preferred_stock_issuance: Optional[str]

Net preferred stock issuance

net_stock_issuance: Optional[str]

Net stock issuance (common + preferred)

operating_cash_flow: Optional[str]

Operating cash flow (alternative calculation)

other_financing_activities: Optional[str]

Other financing activities

other_investing_activities: Optional[str]

Other investing activities

other_non_cash_items: Optional[str]

Other non-cash items

other_working_capital: Optional[str]

Change in other working capital

preferred_dividends_paid: Optional[str]

Preferred dividends paid

purchases_of_investments: Optional[str]

Purchases of investments

sales_maturities_of_investments: Optional[str]

Sales and maturities of investments

short_term_net_debt_issuance: Optional[str]

Short-term net debt issuance

stock_based_compensation: Optional[str]

Stock-based compensation expense

V1Instrument DataMarket Data

Retrieve instrument analytics, market data, news, and related reference data.

Get Snapshots
v1.instrument_data.market_data.get_snapshots(MarketDataGetSnapshotsParams**kwargs) -> MarketDataGetSnapshotsResponse
GET/v1/market-data/snapshot
Get Daily Aggregate Summaries
v1.instrument_data.market_data.get_daily_summaries(MarketDataGetDailySummariesParams**kwargs) -> MarketDataGetDailySummariesResponse
GET/v1/market-data/daily-summary
ModelsExpand Collapse
class DailySummary:

Daily aggregate (OHLV) summary for a single instrument.

Returned by GET /market-data/daily-summary. Every field except instrument_id is Option:

  • Unresolvable instrument_id → all other fields None (including symbol).
  • Resolvable instrument_id with no realtime cache entry → symbol populated, OHLV/trade_date None.
  • trade_date reflects the session the OHLV represents (today during trading hours, the last trading date during weekends/holidays).
instrument_id: str

OEMS instrument identifier. Always populated; echoes the request ID.

formatuuid
high: Optional[str]

Session high.

low: Optional[str]

Session low.

open: Optional[str]

Opening price for the session.

symbol: Optional[str]

Display symbol for the security. None for unresolvable IDs.

trade_date: Optional[date]

Session date the OHLV represents, US/Eastern.

formatdate
volume: Optional[int]

Session cumulative trading volume.

formatint64
instrument_id: str

OEMS instrument identifier. Always populated; echoes the request ID.

formatuuid
high: Optional[str]

Session high.

low: Optional[str]

Session low.

open: Optional[str]

Opening price for the session.

symbol: Optional[str]

Display symbol for the security. None for unresolvable IDs.

trade_date: Optional[date]

Session date the OHLV represents, US/Eastern.

formatdate
volume: Optional[int]

Session cumulative trading volume.

formatint64
class MarketDataSnapshot:

Market data snapshot for a single security.

instrument_id: str

OEMS instrument identifier.

symbol: str

Display symbol for the security.

cumulative_volume: Optional[int]

Cumulative traded volume reported on the most recent trade, in shares for equities or contracts for options. Absent when no trade is available.

formatint64
minimum0
last_quote: Optional[SnapshotQuote]

Most recent quote if available.

ask: str

Current best ask.

bid: str

Current best bid.

midpoint: str

Midpoint of bid and ask.

ask_size: Optional[int]

Size at the best ask, in shares.

formatint32
minimum0
bid_size: Optional[int]

Size at the best bid, in shares.

formatint32
minimum0
last_trade: Optional[SnapshotLastTrade]

Most recent last-sale trade if available.

price: str

Most recent last-sale eligible trade price.

name: Optional[str]

Security name if available.

session: Optional[SnapshotSession]

Session metrics computed from previous close and last trade, if available.

change: str

Absolute change from previous close to last trade.

change_percent: str

Percent change from previous close to last trade.

previous_close: str

Previous session close price.

instrument_id: str

OEMS instrument identifier.

symbol: str

Display symbol for the security.

cumulative_volume: Optional[int]

Cumulative traded volume reported on the most recent trade, in shares for equities or contracts for options. Absent when no trade is available.

formatint64
minimum0
last_quote: Optional[SnapshotQuote]

Most recent quote if available.

ask: str

Current best ask.

bid: str

Current best bid.

midpoint: str

Midpoint of bid and ask.

ask_size: Optional[int]

Size at the best ask, in shares.

formatint32
minimum0
bid_size: Optional[int]

Size at the best bid, in shares.

formatint32
minimum0
last_trade: Optional[SnapshotLastTrade]

Most recent last-sale trade if available.

price: str

Most recent last-sale eligible trade price.

name: Optional[str]

Security name if available.

session: Optional[SnapshotSession]

Session metrics computed from previous close and last trade, if available.

change: str

Absolute change from previous close to last trade.

change_percent: str

Percent change from previous close to last trade.

previous_close: str

Previous session close price.

class SnapshotLastTrade:

Last-trade fields for a market data snapshot.

price: str

Most recent last-sale eligible trade price.

class SnapshotQuote:

L1 quote fields for a market data snapshot.

ask: str

Current best ask.

bid: str

Current best bid.

midpoint: str

Midpoint of bid and ask.

ask_size: Optional[int]

Size at the best ask, in shares.

formatint32
minimum0
bid_size: Optional[int]

Size at the best bid, in shares.

formatint32
minimum0
class SnapshotSession:

Session-level pricing metrics for a market data snapshot.

change: str

Absolute change from previous close to last trade.

change_percent: str

Percent change from previous close to last trade.

previous_close: str

Previous session close price.

class MarketDataGetSnapshotsResponse:
instrument_id: str

OEMS instrument identifier.

symbol: str

Display symbol for the security.

cumulative_volume: Optional[int]

Cumulative traded volume reported on the most recent trade, in shares for equities or contracts for options. Absent when no trade is available.

formatint64
minimum0
last_quote: Optional[SnapshotQuote]

Most recent quote if available.

ask: str

Current best ask.

bid: str

Current best bid.

midpoint: str

Midpoint of bid and ask.

ask_size: Optional[int]

Size at the best ask, in shares.

formatint32
minimum0
bid_size: Optional[int]

Size at the best bid, in shares.

formatint32
minimum0
last_trade: Optional[SnapshotLastTrade]

Most recent last-sale trade if available.

price: str

Most recent last-sale eligible trade price.

name: Optional[str]

Security name if available.

session: Optional[SnapshotSession]

Session metrics computed from previous close and last trade, if available.

change: str

Absolute change from previous close to last trade.

change_percent: str

Percent change from previous close to last trade.

previous_close: str

Previous session close price.

class MarketDataGetDailySummariesResponse:
instrument_id: str

OEMS instrument identifier. Always populated; echoes the request ID.

formatuuid
high: Optional[str]

Session high.

low: Optional[str]

Session low.

open: Optional[str]

Opening price for the session.

symbol: Optional[str]

Display symbol for the security. None for unresolvable IDs.

trade_date: Optional[date]

Session date the OHLV represents, US/Eastern.

formatdate
volume: Optional[int]

Session cumulative trading volume.

formatint64

V1Instrument DataNews

Retrieve instrument analytics, market data, news, and related reference data.

Get News
v1.instrument_data.news.get_news(NewsGetNewsParams**kwargs) -> NewsGetNewsResponse
GET/v1/news
ModelsExpand Collapse
class NewsInstrument:

Instrument associated with a news item.

instrument_id: str

OEMS instrument UUID.

formatuuid
name: Optional[str]

Instrument name/description, if available from instrument cache enrichment.

symbol: Optional[str]

Trading symbol, if available from instrument cache enrichment.

class NewsItem:

A single news item and its associated instruments.

instruments: List[NewsInstrument]

Instruments associated with this news item.

instrument_id: str

OEMS instrument UUID.

formatuuid
name: Optional[str]

Instrument name/description, if available from instrument cache enrichment.

symbol: Optional[str]

Trading symbol, if available from instrument cache enrichment.

news_type: NewsType

Classification of the item.

One of the following:
"NEWS"
"PRESS_RELEASE"
published_at: datetime

The published date/time of the article in UTC.

formatdate-time
publisher: str

The publisher or newswire source.

title: str

The headline/title of the article.

url: str

Canonical URL to the full article.

image_url: Optional[str]

URL of an associated image if provided by the source.

site: Optional[str]

The primary domain/site of the publisher.

text: Optional[str]

The full or excerpted article body.

List[NewsItem]
instruments: List[NewsInstrument]

Instruments associated with this news item.

instrument_id: str

OEMS instrument UUID.

formatuuid
name: Optional[str]

Instrument name/description, if available from instrument cache enrichment.

symbol: Optional[str]

Trading symbol, if available from instrument cache enrichment.

news_type: NewsType

Classification of the item.

One of the following:
"NEWS"
"PRESS_RELEASE"
published_at: datetime

The published date/time of the article in UTC.

formatdate-time
publisher: str

The publisher or newswire source.

title: str

The headline/title of the article.

url: str

Canonical URL to the full article.

image_url: Optional[str]

URL of an associated image if provided by the source.

site: Optional[str]

The primary domain/site of the publisher.

text: Optional[str]

The full or excerpted article body.

Literal["NEWS", "PRESS_RELEASE"]

News item classification.

One of the following:
"NEWS"
"PRESS_RELEASE"
class NewsGetNewsResponse:
instruments: List[NewsInstrument]

Instruments associated with this news item.

instrument_id: str

OEMS instrument UUID.

formatuuid
name: Optional[str]

Instrument name/description, if available from instrument cache enrichment.

symbol: Optional[str]

Trading symbol, if available from instrument cache enrichment.

news_type: NewsType

Classification of the item.

One of the following:
"NEWS"
"PRESS_RELEASE"
published_at: datetime

The published date/time of the article in UTC.

formatdate-time
publisher: str

The publisher or newswire source.

title: str

The headline/title of the article.

url: str

Canonical URL to the full article.

image_url: Optional[str]

URL of an associated image if provided by the source.

site: Optional[str]

The primary domain/site of the publisher.

text: Optional[str]

The full or excerpted article body.

V1Instruments

Retrieve core details and discovery endpoints for tradable instruments.

Get Instruments
v1.instruments.get_instruments(InstrumentGetInstrumentsParams**kwargs) -> InstrumentGetInstrumentsResponse
GET/v1/instruments
Get Instrument By ID
v1.instruments.get_instrument_by_id(InstrumentIDOrSymbolinstrument_id, InstrumentGetInstrumentByIDParams**kwargs) -> InstrumentGetInstrumentByIDResponse
GET/v1/instruments/{instrument_id}
Search Instruments
v1.instruments.search_instruments(InstrumentSearchInstrumentsParams**kwargs) -> InstrumentSearchInstrumentsResponse
GET/v1/instruments/search
Get Option Contracts
v1.instruments.get_option_contracts(InstrumentGetOptionContractsParams**kwargs) -> InstrumentGetOptionContractsResponse
GET/v1/instruments/options/contracts
ModelsExpand Collapse
Literal["CALL", "PUT"]

The type of options contract

One of the following:
"CALL"
"PUT"
Literal["AMERICAN", "EUROPEAN"]

The exercise style of an options contract

One of the following:
"AMERICAN"
"EUROPEAN"
class Instrument:

Represents a tradable financial instrument.

id: str

Unique OEMS instrument identifier (UUID)

formatuuid
country_of_issue: str

The ISO country code of the instrument’s issue

currency: str

The ISO currency code in which the instrument is traded

easy_to_borrow: bool

Indicates if the instrument is classified as Easy-To-Borrow

is_liquidation_only: bool

Indicates if the instrument is liquidation only and cannot be bought

is_marginable: bool

Indicates if the instrument is marginable

is_restricted: bool

Indicates if the instrument is restricted from trading

is_short_prohibited: bool

Indicates if short selling is prohibited for the instrument

is_threshold_security: bool

Indicates if the instrument is on the Regulation SHO Threshold Security List

is_tradable: bool

Indicates if the instrument is tradable

symbol: str

The trading symbol for the instrument

venue: str

The MIC code of the primary listing venue

adv: Optional[str]

Average daily share volume from the security definition.

expiry: Optional[date]

The expiration date for options instruments

formatdate
instrument_type: Optional[SecurityType]

The type of security (e.g., Common Stock, ETF)

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
long_margin_rate: Optional[str]

The percent of a long position’s value you must post as margin

name: Optional[str]

The full name of the instrument or its issuer

notional_adv: Optional[str]

Notional ADV (adv × previous_close). The primary liquidity signal used by /instruments/search ranking. Computed at response time so it stays consistent with whatever adv and previous_close show.

options_expiry_dates: Optional[List[date]]

Available options expiration dates for this instrument. Present only when include_options_expiry_dates=true in the request.

previous_close: Optional[str]

Last close price from the security definition.

short_margin_rate: Optional[str]

The percent of a short position’s value you must post as margin

strike_price: Optional[str]

The strike price for options instruments

class InstrumentCore:
id: str

Unique OEMS instrument identifier (UUID)

formatuuid
country_of_issue: str

The ISO country code of the instrument’s issue

currency: str

The ISO currency code in which the instrument is traded

easy_to_borrow: bool

Indicates if the instrument is classified as Easy-To-Borrow

is_liquidation_only: bool

Indicates if the instrument is liquidation only and cannot be bought

is_marginable: bool

Indicates if the instrument is marginable

is_restricted: bool

Indicates if the instrument is restricted from trading

is_short_prohibited: bool

Indicates if short selling is prohibited for the instrument

is_threshold_security: bool

Indicates if the instrument is on the Regulation SHO Threshold Security List

is_tradable: bool

Indicates if the instrument is tradable

symbol: str

The trading symbol for the instrument

venue: str

The MIC code of the primary listing venue

adv: Optional[str]

Average daily share volume from the security definition.

expiry: Optional[date]

The expiration date for options instruments

formatdate
instrument_type: Optional[SecurityType]

The type of security (e.g., Common Stock, ETF)

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
long_margin_rate: Optional[str]

The percent of a long position’s value you must post as margin

name: Optional[str]

The full name of the instrument or its issuer

notional_adv: Optional[str]

Notional ADV (adv × previous_close). The primary liquidity signal used by /instruments/search ranking. Computed at response time so it stays consistent with whatever adv and previous_close show.

previous_close: Optional[str]

Last close price from the security definition.

short_margin_rate: Optional[str]

The percent of a short position’s value you must post as margin

strike_price: Optional[str]

The strike price for options instruments

id: str

Unique OEMS instrument identifier (UUID)

formatuuid
country_of_issue: str

The ISO country code of the instrument’s issue

currency: str

The ISO currency code in which the instrument is traded

easy_to_borrow: bool

Indicates if the instrument is classified as Easy-To-Borrow

is_liquidation_only: bool

Indicates if the instrument is liquidation only and cannot be bought

is_marginable: bool

Indicates if the instrument is marginable

is_restricted: bool

Indicates if the instrument is restricted from trading

is_short_prohibited: bool

Indicates if short selling is prohibited for the instrument

is_threshold_security: bool

Indicates if the instrument is on the Regulation SHO Threshold Security List

is_tradable: bool

Indicates if the instrument is tradable

symbol: str

The trading symbol for the instrument

venue: str

The MIC code of the primary listing venue

adv: Optional[str]

Average daily share volume from the security definition.

expiry: Optional[date]

The expiration date for options instruments

formatdate
instrument_type: Optional[SecurityType]

The type of security (e.g., Common Stock, ETF)

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
long_margin_rate: Optional[str]

The percent of a long position’s value you must post as margin

name: Optional[str]

The full name of the instrument or its issuer

notional_adv: Optional[str]

Notional ADV (adv × previous_close). The primary liquidity signal used by /instruments/search ranking. Computed at response time so it stays consistent with whatever adv and previous_close show.

previous_close: Optional[str]

Last close price from the security definition.

short_margin_rate: Optional[str]

The percent of a short position’s value you must post as margin

strike_price: Optional[str]

The strike price for options instruments

Literal["STANDARD", "FLEX", "OTC"]

The listing type of an options contract

One of the following:
"STANDARD"
"FLEX"
"OTC"
class OptionsContract:

An options contract with options-specific metadata

id: str

OEMS instrument identifier

formatuuid
contract_type: ContractType

Whether this is a CALL or PUT

One of the following:
"CALL"
"PUT"
currency: str

ISO currency code

exchange: str

MIC code of the primary listing venue

exercise_style: ExerciseStyle

Exercise style

One of the following:
"AMERICAN"
"EUROPEAN"
expiry: date

Expiration date

formatdate
is_liquidation_only: bool

Whether the contract is liquidation-only

is_marginable: bool

Whether the contract is marginable

is_restricted: bool

Whether the contract is restricted from trading

listing_type: ListingType

Listing type

One of the following:
"STANDARD"
"FLEX"
"OTC"
multiplier: str

Contract multiplier (100 for standard options)

strike_price: str

Strike price

symbol: str

OSI symbol (e.g. “AAPL 251219C00150000”)

open_interest: Optional[int]

Open interest (number of outstanding contracts), if available

formatint64
underlying_instrument_id: Optional[str]

OEMS instrument ID of the underlying instrument, if resolvable

formatuuid
id: str

OEMS instrument identifier

formatuuid
contract_type: ContractType

Whether this is a CALL or PUT

One of the following:
"CALL"
"PUT"
currency: str

ISO currency code

exchange: str

MIC code of the primary listing venue

exercise_style: ExerciseStyle

Exercise style

One of the following:
"AMERICAN"
"EUROPEAN"
expiry: date

Expiration date

formatdate
is_liquidation_only: bool

Whether the contract is liquidation-only

is_marginable: bool

Whether the contract is marginable

is_restricted: bool

Whether the contract is restricted from trading

listing_type: ListingType

Listing type

One of the following:
"STANDARD"
"FLEX"
"OTC"
multiplier: str

Contract multiplier (100 for standard options)

strike_price: str

Strike price

symbol: str

OSI symbol (e.g. “AAPL 251219C00150000”)

open_interest: Optional[int]

Open interest (number of outstanding contracts), if available

formatint64
underlying_instrument_id: Optional[str]

OEMS instrument ID of the underlying instrument, if resolvable

formatuuid
class InstrumentGetInstrumentsResponse:
id: str

Unique OEMS instrument identifier (UUID)

formatuuid
country_of_issue: str

The ISO country code of the instrument’s issue

currency: str

The ISO currency code in which the instrument is traded

easy_to_borrow: bool

Indicates if the instrument is classified as Easy-To-Borrow

is_liquidation_only: bool

Indicates if the instrument is liquidation only and cannot be bought

is_marginable: bool

Indicates if the instrument is marginable

is_restricted: bool

Indicates if the instrument is restricted from trading

is_short_prohibited: bool

Indicates if short selling is prohibited for the instrument

is_threshold_security: bool

Indicates if the instrument is on the Regulation SHO Threshold Security List

is_tradable: bool

Indicates if the instrument is tradable

symbol: str

The trading symbol for the instrument

venue: str

The MIC code of the primary listing venue

adv: Optional[str]

Average daily share volume from the security definition.

expiry: Optional[date]

The expiration date for options instruments

formatdate
instrument_type: Optional[SecurityType]

The type of security (e.g., Common Stock, ETF)

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
long_margin_rate: Optional[str]

The percent of a long position’s value you must post as margin

name: Optional[str]

The full name of the instrument or its issuer

notional_adv: Optional[str]

Notional ADV (adv × previous_close). The primary liquidity signal used by /instruments/search ranking. Computed at response time so it stays consistent with whatever adv and previous_close show.

previous_close: Optional[str]

Last close price from the security definition.

short_margin_rate: Optional[str]

The percent of a short position’s value you must post as margin

strike_price: Optional[str]

The strike price for options instruments

class InstrumentGetInstrumentByIDResponse:

Represents a tradable financial instrument.

id: str

Unique OEMS instrument identifier (UUID)

formatuuid
country_of_issue: str

The ISO country code of the instrument’s issue

currency: str

The ISO currency code in which the instrument is traded

easy_to_borrow: bool

Indicates if the instrument is classified as Easy-To-Borrow

is_liquidation_only: bool

Indicates if the instrument is liquidation only and cannot be bought

is_marginable: bool

Indicates if the instrument is marginable

is_restricted: bool

Indicates if the instrument is restricted from trading

is_short_prohibited: bool

Indicates if short selling is prohibited for the instrument

is_threshold_security: bool

Indicates if the instrument is on the Regulation SHO Threshold Security List

is_tradable: bool

Indicates if the instrument is tradable

symbol: str

The trading symbol for the instrument

venue: str

The MIC code of the primary listing venue

adv: Optional[str]

Average daily share volume from the security definition.

expiry: Optional[date]

The expiration date for options instruments

formatdate
instrument_type: Optional[SecurityType]

The type of security (e.g., Common Stock, ETF)

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
long_margin_rate: Optional[str]

The percent of a long position’s value you must post as margin

name: Optional[str]

The full name of the instrument or its issuer

notional_adv: Optional[str]

Notional ADV (adv × previous_close). The primary liquidity signal used by /instruments/search ranking. Computed at response time so it stays consistent with whatever adv and previous_close show.

options_expiry_dates: Optional[List[date]]

Available options expiration dates for this instrument. Present only when include_options_expiry_dates=true in the request.

previous_close: Optional[str]

Last close price from the security definition.

short_margin_rate: Optional[str]

The percent of a short position’s value you must post as margin

strike_price: Optional[str]

The strike price for options instruments

class InstrumentSearchInstrumentsResponse:
id: str

Unique OEMS instrument identifier (UUID)

formatuuid
country_of_issue: str

The ISO country code of the instrument’s issue

currency: str

The ISO currency code in which the instrument is traded

easy_to_borrow: bool

Indicates if the instrument is classified as Easy-To-Borrow

is_liquidation_only: bool

Indicates if the instrument is liquidation only and cannot be bought

is_marginable: bool

Indicates if the instrument is marginable

is_restricted: bool

Indicates if the instrument is restricted from trading

is_short_prohibited: bool

Indicates if short selling is prohibited for the instrument

is_threshold_security: bool

Indicates if the instrument is on the Regulation SHO Threshold Security List

is_tradable: bool

Indicates if the instrument is tradable

symbol: str

The trading symbol for the instrument

venue: str

The MIC code of the primary listing venue

adv: Optional[str]

Average daily share volume from the security definition.

expiry: Optional[date]

The expiration date for options instruments

formatdate
instrument_type: Optional[SecurityType]

The type of security (e.g., Common Stock, ETF)

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
long_margin_rate: Optional[str]

The percent of a long position’s value you must post as margin

name: Optional[str]

The full name of the instrument or its issuer

notional_adv: Optional[str]

Notional ADV (adv × previous_close). The primary liquidity signal used by /instruments/search ranking. Computed at response time so it stays consistent with whatever adv and previous_close show.

previous_close: Optional[str]

Last close price from the security definition.

short_margin_rate: Optional[str]

The percent of a short position’s value you must post as margin

strike_price: Optional[str]

The strike price for options instruments

class InstrumentGetOptionContractsResponse:
id: str

OEMS instrument identifier

formatuuid
contract_type: ContractType

Whether this is a CALL or PUT

One of the following:
"CALL"
"PUT"
currency: str

ISO currency code

exchange: str

MIC code of the primary listing venue

exercise_style: ExerciseStyle

Exercise style

One of the following:
"AMERICAN"
"EUROPEAN"
expiry: date

Expiration date

formatdate
is_liquidation_only: bool

Whether the contract is liquidation-only

is_marginable: bool

Whether the contract is marginable

is_restricted: bool

Whether the contract is restricted from trading

listing_type: ListingType

Listing type

One of the following:
"STANDARD"
"FLEX"
"OTC"
multiplier: str

Contract multiplier (100 for standard options)

strike_price: str

Strike price

symbol: str

OSI symbol (e.g. “AAPL 251219C00150000”)

open_interest: Optional[int]

Open interest (number of outstanding contracts), if available

formatint64
underlying_instrument_id: Optional[str]

OEMS instrument ID of the underlying instrument, if resolvable

formatuuid

V1Omni AI

ModelsExpand Collapse
class ActionButton:

Button metadata shared by chart and suggested-actions payloads.

button_id: str

Stable button identifier within the content part.

label: str

User-visible label.

prompt: Optional[PromptButtonAction]

Follow-up prompt to submit as the next user message.

prompt: str

Prompt text to submit as the next user turn.

structured_action: Optional[StructuredActionButtonAction]

Structured action in the same message to execute on click.

action_id: Optional[str]

UUID of a structured_action content part in the same message.

formatuuid
class ChartPayload:

Typed chart payload rendered inline in assistant content.

chart_id: str

Stable chart identifier scoped to the content part.

action_buttons: Optional[List[ActionButton]]

Buttons associated with this chart.

button_id: str

Stable button identifier within the content part.

label: str

User-visible label.

prompt: Optional[PromptButtonAction]

Follow-up prompt to submit as the next user message.

prompt: str

Prompt text to submit as the next user turn.

structured_action: Optional[StructuredActionButtonAction]

Structured action in the same message to execute on click.

action_id: Optional[str]

UUID of a structured_action content part in the same message.

formatuuid
data_chart: Optional[DataChart]

Explicit series-driven chart definition.

series: Optional[List[ChartSeries]]
name: str
points: Optional[List[ChartPoint]]
x: str
y: float
symbol_chart: Optional[SymbolChart]

Symbol-driven chart definition.

symbol: str
timeframe: Optional[str]
class ChartPoint:

Single chart coordinate.

x: str
y: float
class ChartSeries:

Named data series within a chart.

name: str
points: Optional[List[ChartPoint]]
x: str
y: float
class ContentPartChartPayload:

Chart payload content part.

payload: ChartPayload

Typed chart payload rendered inline in assistant content.

chart_id: str

Stable chart identifier scoped to the content part.

action_buttons: Optional[List[ActionButton]]

Buttons associated with this chart.

button_id: str

Stable button identifier within the content part.

label: str

User-visible label.

prompt: Optional[PromptButtonAction]

Follow-up prompt to submit as the next user message.

prompt: str

Prompt text to submit as the next user turn.

structured_action: Optional[StructuredActionButtonAction]

Structured action in the same message to execute on click.

action_id: Optional[str]

UUID of a structured_action content part in the same message.

formatuuid
data_chart: Optional[DataChart]

Explicit series-driven chart definition.

series: Optional[List[ChartSeries]]
name: str
points: Optional[List[ChartPoint]]
x: str
y: float
symbol_chart: Optional[SymbolChart]

Symbol-driven chart definition.

symbol: str
timeframe: Optional[str]
class ContentPartCustomPayload:

Escape-hatch custom payload content part.

payload: object
class ContentPartStructuredActionPayload:

Structured action content part.

Structured actions that Omni AI can return to clients.

These actions provide machine-readable instructions for the client to execute, such as prefilling an order ticket, opening a chart, or navigating to a route.

One of the following:
class PrefillOrder:

Prefill an order ticket for user confirmation

prefill_order: PrefillOrderAction

Prefill an order ticket for user confirmation

One of the following:
class PrefillNewOrderAction:

Create one or more new orders.

action_type: Literal["NEW"]
class PrefillCancelOrderAction:

Cancel one or more existing orders.

action_type: Literal["CANCEL"]
class OpenChart:

Open a chart for a symbol

open_chart: OpenChartAction

Open a chart for a symbol

symbol: str

Trading symbol to chart

extras: Optional[object]

Additional chart configuration (indicators, overlays, etc.)

timeframe: Optional[str]

Chart timeframe (e.g., “1D”, “1W”, “1M”, “3M”, “1Y”, “5Y”)

class OpenScreener:

Open a stock screener with filters

open_screener: OpenScreenerAction

Open a stock screener with filters

filters: List[ScreenerFilter]

Filter criteria for the screener

field: str

Field to filter on (e.g., “market_cap”, “sector”, “price”)

operator: str

Comparison operator (e.g., “eq”, “gte”, “lte”, “in”)

value: object

Filter value

field_filter: Optional[List[str]]

Optional field/column selection for screener results.

page_size: Optional[int]

Optional page size.

formatint32
sort_by: Optional[str]

Optional sort field for screener rows.

sort_direction: Optional[str]

Optional sort direction (ASC or DESC).

class OpenEntitlementConsent:

Open entitlement consent flow

Open entitlement consent flow

Stable entitlement agreement family key.

action_id: str
class ContentPartSuggestedActionsPayload:

Suggested actions payload content part.

Suggested follow-up buttons rendered at the end of an assistant message.

action_buttons: Optional[List[ActionButton]]

Ordered message-level buttons.

button_id: str

Stable button identifier within the content part.

label: str

User-visible label.

prompt: Optional[PromptButtonAction]

Follow-up prompt to submit as the next user message.

prompt: str

Prompt text to submit as the next user turn.

structured_action: Optional[StructuredActionButtonAction]

Structured action in the same message to execute on click.

action_id: Optional[str]

UUID of a structured_action content part in the same message.

formatuuid
class ContentPartTextPayload:

Text content part.

text: str
class ContentPartThinkingPayload:

Thinking content part shown on dynamic response polling.

thoughts: List[str]
class DataChart:

Chart represented by explicit data series.

series: Optional[List[ChartSeries]]
name: str
points: Optional[List[ChartPoint]]
x: str
y: float
class OpenChartAction:

Action to open a chart for a symbol.

symbol: str

Trading symbol to chart

extras: Optional[object]

Additional chart configuration (indicators, overlays, etc.)

timeframe: Optional[str]

Chart timeframe (e.g., “1D”, “1W”, “1M”, “3M”, “1Y”, “5Y”)

Action to open entitlement consent flow for one or more accounts.

Stable entitlement agreement family key.

class OpenScreenerAction:

Action to open a stock screener with filters.

filters: List[ScreenerFilter]

Filter criteria for the screener

field: str

Field to filter on (e.g., “market_cap”, “sector”, “price”)

operator: str

Comparison operator (e.g., “eq”, “gte”, “lte”, “in”)

value: object

Filter value

field_filter: Optional[List[str]]

Optional field/column selection for screener results.

page_size: Optional[int]

Optional page size.

formatint32
sort_by: Optional[str]

Optional sort field for screener rows.

sort_direction: Optional[str]

Optional sort direction (ASC or DESC).

class PrefillCancelOrderAction:

Cancel-order prefill action.

orders: List[CancelOrderRequest]

Orders to cancel using the same identifiers required by the cancel-order API.

account_id: int

Account ID (from path parameter)

formatint64
order_id: str

Order ID to cancel (from path parameter)

class PrefillNewOrderAction:

New-order prefill action.

orders: List[NewOrderRequest]

Orders to prefill using the same shape accepted by the orders API.

instrument_type: SecurityType

Type of security

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
order_type: RequestOrderType

Type of order

One of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
quantity: str

Quantity to trade. For COMMON_STOCK: shares (may be fractional if supported). For OPTION (single-leg): contracts (must be an integer)

side: Side

Side of the order

One of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
time_in_force: RequestTimeInForce

Time in force

One of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
id: Optional[str]

Optional client-provided unique ID (idempotency). Required to be unique per account.

maxLength64
expires_at: Optional[datetime]

The timestamp when the order should expire (UTC). Required when time_in_force is GOOD_TILL_DATE.

formatdate-time
extended_hours: Optional[bool]

Allow trading outside regular trading hours. Some brokers disallow options outside RTH.

instrument_id: Optional[InstrumentIDOrSymbol]

OEMS instrument UUID

formatuuid
limit_offset: Optional[str]

Limit offset for trailing stop-limit orders (signed)

limit_price: Optional[str]

Limit price (required for LIMIT and STOP_LIMIT orders)

position_effect: Optional[PositionEffect]

Required when instrument_type is OPTION. Specifies whether the order opens or closes a position.

One of the following:
"OPEN"
"CLOSE"
stop_price: Optional[str]

Stop price (required for STOP and STOP_LIMIT orders)

symbol: Optional[str]

Trading symbol. For equities, use the ticker symbol (e.g., “AAPL”). For options, use the OSI symbol (e.g., “AAPL 250117C00190000”). Either symbol or instrument_id must be provided.

trailing_offset: Optional[str]

Trailing offset amount (required for trailing orders)

trailing_offset_type: Optional[TrailingOffsetType]

Trailing offset type (PRICE or PERCENT_BPS)

One of the following:
"PRICE"
"BPS"
Union[PrefillNewOrderAction, PrefillCancelOrderAction]

Action to prefill order details for user confirmation.

The user must review and authorize the order before submission to the trading API. This action provides parsed order data that can be used to prefill an order ticket UI or submitted directly via the orders API after user confirmation.

One of the following:
class PrefillNewOrderAction:

Create one or more new orders.

action_type: Literal["NEW"]
class PrefillCancelOrderAction:

Cancel one or more existing orders.

action_type: Literal["CANCEL"]
class PromptButtonAction:

Prompt-style button behavior.

prompt: str

Prompt text to submit as the next user turn.

class ScreenerFilter:

A single filter criterion for the screener.

field: str

Field to filter on (e.g., “market_cap”, “sector”, “price”)

operator: str

Comparison operator (e.g., “eq”, “gte”, “lte”, “in”)

value: object

Filter value

Structured actions that Omni AI can return to clients.

These actions provide machine-readable instructions for the client to execute, such as prefilling an order ticket, opening a chart, or navigating to a route.

One of the following:
class PrefillOrder:

Prefill an order ticket for user confirmation

prefill_order: PrefillOrderAction

Prefill an order ticket for user confirmation

One of the following:
class PrefillNewOrderAction:

Create one or more new orders.

action_type: Literal["NEW"]
class PrefillCancelOrderAction:

Cancel one or more existing orders.

action_type: Literal["CANCEL"]
class OpenChart:

Open a chart for a symbol

open_chart: OpenChartAction

Open a chart for a symbol

symbol: str

Trading symbol to chart

extras: Optional[object]

Additional chart configuration (indicators, overlays, etc.)

timeframe: Optional[str]

Chart timeframe (e.g., “1D”, “1W”, “1M”, “3M”, “1Y”, “5Y”)

class OpenScreener:

Open a stock screener with filters

open_screener: OpenScreenerAction

Open a stock screener with filters

filters: List[ScreenerFilter]

Filter criteria for the screener

field: str

Field to filter on (e.g., “market_cap”, “sector”, “price”)

operator: str

Comparison operator (e.g., “eq”, “gte”, “lte”, “in”)

value: object

Filter value

field_filter: Optional[List[str]]

Optional field/column selection for screener results.

page_size: Optional[int]

Optional page size.

formatint32
sort_by: Optional[str]

Optional sort field for screener rows.

sort_direction: Optional[str]

Optional sort direction (ASC or DESC).

class OpenEntitlementConsent:

Open entitlement consent flow

Open entitlement consent flow

Stable entitlement agreement family key.

class StructuredActionButtonAction:

Structured-action button behavior.

action_id: Optional[str]

UUID of a structured_action content part in the same message.

formatuuid
class SuggestedActionsPayload:

Suggested follow-up buttons rendered at the end of an assistant message.

action_buttons: Optional[List[ActionButton]]

Ordered message-level buttons.

button_id: str

Stable button identifier within the content part.

label: str

User-visible label.

prompt: Optional[PromptButtonAction]

Follow-up prompt to submit as the next user message.

prompt: str

Prompt text to submit as the next user turn.

structured_action: Optional[StructuredActionButtonAction]

Structured action in the same message to execute on click.

action_id: Optional[str]

UUID of a structured_action content part in the same message.

formatuuid
class SymbolChart:

Chart for a single symbol and timeframe.

symbol: str
timeframe: Optional[str]

V1Omni AIEntitlements

Thread-centric AI assistant for conversational trading. Create threads to start conversations, poll response objects for in-progress output, and read finalized messages from thread history. Thread/message/response endpoints require an explicit account_id. Entitlement endpoints are caller-scoped and use trading_account_ids.

Get Entitlements
v1.omni_ai.entitlements.get_entitlements(EntitlementGetEntitlementsParams**kwargs) -> EntitlementGetEntitlementsResponse
GET/v1/omni-ai/entitlements
Create Entitlements
v1.omni_ai.entitlements.create_entitlements(EntitlementCreateEntitlementsParams**kwargs) -> EntitlementCreateEntitlementsResponse
POST/v1/omni-ai/entitlements
Delete Entitlement
v1.omni_ai.entitlements.delete_entitlement(strentitlement_id) -> EntitlementDeleteEntitlementResponse
DELETE/v1/omni-ai/entitlements/{entitlement_id}
Get Entitlement Agreements
v1.omni_ai.entitlements.get_entitlement_agreements() -> EntitlementGetEntitlementAgreementsResponse
GET/v1/omni-ai/entitlement-agreements
ModelsExpand Collapse
class DeleteEntitlementResponse:
entitlement_id: str
revoked: bool
Literal["omni_account_data_access"]

Stable entitlement agreement family key.

class EntitlementAgreementResource:
agreement_id: str

Stable entitlement agreement family key.

document_content: str
document_sha256: str
entitlement_codes: List[EntitlementCode]
title: str
version: int
agreement_id: str

Stable entitlement agreement family key.

document_content: str
document_sha256: str
entitlement_codes: List[EntitlementCode]
title: str
version: int
Literal["omni.account_data"]

Stable entitlement code granted by an agreement.

class EntitlementResource:
agreement_id: str
entitlement_code: EntitlementCode

Stable entitlement code granted by an agreement.

entitlement_id: str
granted_at: str
trading_account_id: int
agreement_id: str
entitlement_code: EntitlementCode

Stable entitlement code granted by an agreement.

entitlement_id: str
granted_at: str
trading_account_id: int
class EntitlementGetEntitlementsResponse:
agreement_id: str
entitlement_code: EntitlementCode

Stable entitlement code granted by an agreement.

entitlement_id: str
granted_at: str
trading_account_id: int
class EntitlementCreateEntitlementsResponse:
agreement_id: str
entitlement_code: EntitlementCode

Stable entitlement code granted by an agreement.

entitlement_id: str
granted_at: str
trading_account_id: int
class EntitlementDeleteEntitlementResponse:
entitlement_id: str
revoked: bool
class EntitlementGetEntitlementAgreementsResponse:
agreement_id: str

Stable entitlement agreement family key.

document_content: str
document_sha256: str
entitlement_codes: List[EntitlementCode]
title: str
version: int

V1Omni AIMessages

Thread-centric AI assistant for conversational trading. Create threads to start conversations, poll response objects for in-progress output, and read finalized messages from thread history. Thread/message/response endpoints require an explicit account_id. Entitlement endpoints are caller-scoped and use trading_account_ids.

Get Message By ID
v1.omni_ai.messages.get_message_by_id(strmessage_id, MessageGetMessageByIDParams**kwargs) -> MessageGetMessageByIDResponse
GET/v1/omni-ai/messages/{message_id}
Submit Feedback
v1.omni_ai.messages.submit_feedback(strmessage_id, MessageSubmitFeedbackParams**kwargs) -> MessageSubmitFeedbackResponse
POST/v1/omni-ai/messages/{message_id}/feedback
ModelsExpand Collapse
class CreateFeedbackResponse:
created_at: str
feedback_id: Optional[str]
class MessageGetMessageByIDResponse:
data: Message

Final immutable message.

id: str

Finalized immutable message content container. Never includes thinking parts.

parts: List[MessageContentPart]
One of the following:
class UnionMember0:

Text content part.

type: Literal["text"]
class UnionMember1:

Structured action content part.

type: Literal["structured_action"]
class UnionMember2:

Chart payload content part.

type: Literal["chart"]
class UnionMember3:

Suggested actions payload content part.

type: Literal["suggested_actions"]
class UnionMember4:

Escape-hatch custom payload content part.

type: Literal["custom"]
created_at: str

Immutable terminal outcome for a finalized assistant message.

One of the following:
"completed"
"errored"
"canceled"

Finalized message role in the public contract.

One of the following:
"USER"
"ASSISTANT"
seq: int
thread_id: str
error: Optional[ErrorStatus]

Shared sanitized error payload.

code: str
message: str
details: Optional[object]
class MessageSubmitFeedbackResponse:
created_at: str
feedback_id: Optional[str]

V1Omni AIResponses

Thread-centric AI assistant for conversational trading. Create threads to start conversations, poll response objects for in-progress output, and read finalized messages from thread history. Thread/message/response endpoints require an explicit account_id. Entitlement endpoints are caller-scoped and use trading_account_ids.

Get Response By ID
v1.omni_ai.responses.get_response_by_id(strresponse_id, ResponseGetResponseByIDParams**kwargs) -> ResponseGetResponseByIDResponse
GET/v1/omni-ai/responses/{response_id}
Cancel Response
v1.omni_ai.responses.cancel_response(strresponse_id, ResponseCancelResponseParams**kwargs) -> ResponseCancelResponseResponse
DELETE/v1/omni-ai/responses/{response_id}
ModelsExpand Collapse
class CancelResponsePayload:
canceled: bool
class ErrorStatus:

Shared sanitized error payload.

code: str
message: str
details: Optional[object]
class Response:

Dynamic pollable response.

id: str

Dynamic lifecycle status for a pollable response.

One of the following:
"queued"
"running"
"succeeded"
"failed"
"canceled"
thread_id: str
user_message_id: str
content: Optional[ResponseContent]

Dynamic response content container. May include thinking parts.

parts: List[ResponseContentPart]
One of the following:
class UnionMember0:

Text content part.

type: Literal["text"]
class UnionMember1:

Thinking content part shown on dynamic response polling.

type: Literal["thinking"]
class UnionMember2:

Structured action content part.

type: Literal["structured_action"]
class UnionMember3:

Chart payload content part.

type: Literal["chart"]
class UnionMember4:

Suggested actions payload content part.

type: Literal["suggested_actions"]
class UnionMember5:

Escape-hatch custom payload content part.

type: Literal["custom"]
error: Optional[ErrorStatus]

Shared sanitized error payload.

code: str
message: str
details: Optional[object]
output_message_id: Optional[str]
class ResponseContent:

Dynamic response content container. May include thinking parts.

parts: List[ResponseContentPart]
One of the following:
class UnionMember0:

Text content part.

type: Literal["text"]
class UnionMember1:

Thinking content part shown on dynamic response polling.

type: Literal["thinking"]
class UnionMember2:

Structured action content part.

type: Literal["structured_action"]
class UnionMember3:

Chart payload content part.

type: Literal["chart"]
class UnionMember4:

Suggested actions payload content part.

type: Literal["suggested_actions"]
class UnionMember5:

Escape-hatch custom payload content part.

type: Literal["custom"]
Union[UnionMember0, UnionMember1, UnionMember2, 3 more]

Dynamic content part visible on a pollable response.

One of the following:
class UnionMember0:

Text content part.

type: Literal["text"]
class UnionMember1:

Thinking content part shown on dynamic response polling.

type: Literal["thinking"]
class UnionMember2:

Structured action content part.

type: Literal["structured_action"]
class UnionMember3:

Chart payload content part.

type: Literal["chart"]
class UnionMember4:

Suggested actions payload content part.

type: Literal["suggested_actions"]
class UnionMember5:

Escape-hatch custom payload content part.

type: Literal["custom"]
Literal["queued", "running", "succeeded", 2 more]

Dynamic lifecycle status for a pollable response.

One of the following:
"queued"
"running"
"succeeded"
"failed"
"canceled"
class ResponseGetResponseByIDResponse:
data: Response

Dynamic pollable response.

id: str

Dynamic lifecycle status for a pollable response.

One of the following:
"queued"
"running"
"succeeded"
"failed"
"canceled"
thread_id: str
user_message_id: str
content: Optional[ResponseContent]

Dynamic response content container. May include thinking parts.

parts: List[ResponseContentPart]
One of the following:
class UnionMember0:

Text content part.

type: Literal["text"]
class UnionMember1:

Thinking content part shown on dynamic response polling.

type: Literal["thinking"]
class UnionMember2:

Structured action content part.

type: Literal["structured_action"]
class UnionMember3:

Chart payload content part.

type: Literal["chart"]
class UnionMember4:

Suggested actions payload content part.

type: Literal["suggested_actions"]
class UnionMember5:

Escape-hatch custom payload content part.

type: Literal["custom"]
error: Optional[ErrorStatus]

Shared sanitized error payload.

code: str
message: str
details: Optional[object]
output_message_id: Optional[str]
class ResponseCancelResponseResponse:
canceled: bool

V1Omni AIThreads

Thread-centric AI assistant for conversational trading. Create threads to start conversations, poll response objects for in-progress output, and read finalized messages from thread history. Thread/message/response endpoints require an explicit account_id. Entitlement endpoints are caller-scoped and use trading_account_ids.

Get Threads
v1.omni_ai.threads.get_threads(ThreadGetThreadsParams**kwargs) -> ThreadGetThreadsResponse
GET/v1/omni-ai/threads
Get Thread By ID
v1.omni_ai.threads.get_thread_by_id(strthread_id, ThreadGetThreadByIDParams**kwargs) -> ThreadGetThreadByIDResponse
GET/v1/omni-ai/threads/{thread_id}
Create Thread
v1.omni_ai.threads.create_thread(ThreadCreateThreadParams**kwargs) -> ThreadCreateThreadResponse
POST/v1/omni-ai/threads
Get Thread Response
v1.omni_ai.threads.get_thread_response(strthread_id, ThreadGetThreadResponseParams**kwargs) -> ThreadGetThreadResponseResponse
GET/v1/omni-ai/threads/{thread_id}/response
Get Messages
v1.omni_ai.threads.get_messages(strthread_id, ThreadGetMessagesParams**kwargs) -> ThreadGetMessagesResponse
GET/v1/omni-ai/threads/{thread_id}/messages
Create Message
v1.omni_ai.threads.create_message(strthread_id, ThreadCreateMessageParams**kwargs) -> ThreadCreateMessageResponse
POST/v1/omni-ai/threads/{thread_id}/messages
ModelsExpand Collapse
class CreateMessageResponse:

Response payload for continuing a thread with a new message.

response_id: str
thread_id: str
user_message_id: str
class CreateThreadResponse:

Response payload for thread creation.

response_id: str
thread_id: str
user_message_id: str
class Message:

Final immutable message.

id: str

Finalized immutable message content container. Never includes thinking parts.

parts: List[MessageContentPart]
One of the following:
class UnionMember0:

Text content part.

type: Literal["text"]
class UnionMember1:

Structured action content part.

type: Literal["structured_action"]
class UnionMember2:

Chart payload content part.

type: Literal["chart"]
class UnionMember3:

Suggested actions payload content part.

type: Literal["suggested_actions"]
class UnionMember4:

Escape-hatch custom payload content part.

type: Literal["custom"]
created_at: str

Immutable terminal outcome for a finalized assistant message.

One of the following:
"completed"
"errored"
"canceled"

Finalized message role in the public contract.

One of the following:
"USER"
"ASSISTANT"
seq: int
thread_id: str
error: Optional[ErrorStatus]

Shared sanitized error payload.

code: str
message: str
details: Optional[object]
class MessageContent:

Finalized immutable message content container. Never includes thinking parts.

parts: List[MessageContentPart]
One of the following:
class UnionMember0:

Text content part.

type: Literal["text"]
class UnionMember1:

Structured action content part.

type: Literal["structured_action"]
class UnionMember2:

Chart payload content part.

type: Literal["chart"]
class UnionMember3:

Suggested actions payload content part.

type: Literal["suggested_actions"]
class UnionMember4:

Escape-hatch custom payload content part.

type: Literal["custom"]
Union[UnionMember0, UnionMember1, UnionMember2, 2 more]

Final immutable content part visible on persisted messages.

One of the following:
class UnionMember0:

Text content part.

type: Literal["text"]
class UnionMember1:

Structured action content part.

type: Literal["structured_action"]
class UnionMember2:

Chart payload content part.

type: Literal["chart"]
class UnionMember3:

Suggested actions payload content part.

type: Literal["suggested_actions"]
class UnionMember4:

Escape-hatch custom payload content part.

type: Literal["custom"]
List[Message]
id: str

Finalized immutable message content container. Never includes thinking parts.

parts: List[MessageContentPart]
One of the following:
class UnionMember0:

Text content part.

type: Literal["text"]
class UnionMember1:

Structured action content part.

type: Literal["structured_action"]
class UnionMember2:

Chart payload content part.

type: Literal["chart"]
class UnionMember3:

Suggested actions payload content part.

type: Literal["suggested_actions"]
class UnionMember4:

Escape-hatch custom payload content part.

type: Literal["custom"]
created_at: str

Immutable terminal outcome for a finalized assistant message.

One of the following:
"completed"
"errored"
"canceled"

Finalized message role in the public contract.

One of the following:
"USER"
"ASSISTANT"
seq: int
thread_id: str
error: Optional[ErrorStatus]

Shared sanitized error payload.

code: str
message: str
details: Optional[object]
Literal["completed", "errored", "canceled"]

Immutable terminal outcome for a finalized assistant message.

One of the following:
"completed"
"errored"
"canceled"
Literal["USER", "ASSISTANT"]

Finalized message role in the public contract.

One of the following:
"USER"
"ASSISTANT"
class Thread:

Thread metadata returned by list/get thread endpoints.

id: str
created_at: str
title: str
updated_at: str
List[Thread]
id: str
created_at: str
title: str
updated_at: str
class ThreadGetThreadsResponse:
id: str
created_at: str
title: str
updated_at: str
class ThreadGetThreadByIDResponse:
data: Thread

Thread metadata returned by list/get thread endpoints.

id: str
created_at: str
title: str
updated_at: str
class ThreadCreateThreadResponse:

Response payload for thread creation.

response_id: str
thread_id: str
user_message_id: str
class ThreadGetThreadResponseResponse:
data: Response

Dynamic pollable response.

id: str

Dynamic lifecycle status for a pollable response.

One of the following:
"queued"
"running"
"succeeded"
"failed"
"canceled"
thread_id: str
user_message_id: str
content: Optional[ResponseContent]

Dynamic response content container. May include thinking parts.

parts: List[ResponseContentPart]
One of the following:
class UnionMember0:

Text content part.

type: Literal["text"]
class UnionMember1:

Thinking content part shown on dynamic response polling.

type: Literal["thinking"]
class UnionMember2:

Structured action content part.

type: Literal["structured_action"]
class UnionMember3:

Chart payload content part.

type: Literal["chart"]
class UnionMember4:

Suggested actions payload content part.

type: Literal["suggested_actions"]
class UnionMember5:

Escape-hatch custom payload content part.

type: Literal["custom"]
error: Optional[ErrorStatus]

Shared sanitized error payload.

code: str
message: str
details: Optional[object]
output_message_id: Optional[str]
class ThreadGetMessagesResponse:
id: str

Finalized immutable message content container. Never includes thinking parts.

parts: List[MessageContentPart]
One of the following:
class UnionMember0:

Text content part.

type: Literal["text"]
class UnionMember1:

Structured action content part.

type: Literal["structured_action"]
class UnionMember2:

Chart payload content part.

type: Literal["chart"]
class UnionMember3:

Suggested actions payload content part.

type: Literal["suggested_actions"]
class UnionMember4:

Escape-hatch custom payload content part.

type: Literal["custom"]
created_at: str

Immutable terminal outcome for a finalized assistant message.

One of the following:
"completed"
"errored"
"canceled"

Finalized message role in the public contract.

One of the following:
"USER"
"ASSISTANT"
seq: int
thread_id: str
error: Optional[ErrorStatus]

Shared sanitized error payload.

code: str
message: str
details: Optional[object]
class ThreadCreateMessageResponse:

Response payload for continuing a thread with a new message.

response_id: str
thread_id: str
user_message_id: str

V1Orders

Place, monitor, and manage trading orders.

Get Orders
v1.orders.get_orders(intaccount_id, OrderGetOrdersParams**kwargs) -> OrderGetOrdersResponse
GET/v1/accounts/{account_id}/orders
Get Order By ID
v1.orders.get_order_by_id(strorder_id, OrderGetOrderByIDParams**kwargs) -> OrderGetOrderByIDResponse
GET/v1/accounts/{account_id}/orders/{order_id}
Submit Orders
v1.orders.submit_orders(intaccount_id, OrderSubmitOrdersParams**kwargs) -> OrderSubmitOrdersResponse
POST/v1/accounts/{account_id}/orders
Replace Order
v1.orders.replace_order(strorder_id, OrderReplaceOrderParams**kwargs) -> OrderReplaceOrderResponse
PATCH/v1/accounts/{account_id}/orders/{order_id}
Cancel Open Order
v1.orders.cancel_open_order(strorder_id, OrderCancelOpenOrderParams**kwargs) -> OrderCancelOpenOrderResponse
DELETE/v1/accounts/{account_id}/orders/{order_id}
Cancel All Open Orders
v1.orders.cancel_all_open_orders(intaccount_id, OrderCancelAllOpenOrdersParams**kwargs) -> OrderCancelAllOpenOrdersResponse
DELETE/v1/accounts/{account_id}/orders
ModelsExpand Collapse
class CancelOrderRequest:

Request to cancel an existing order

Note: In the API, order cancellation is done via DELETE request without a body. The order_id and account_id come from the URL path parameters.

account_id: int

Account ID (from path parameter)

formatint64
order_id: str

Order ID to cancel (from path parameter)

str

OEMS instrument UUID

class NewOrderRequest:

Request to submit a new order (PlaceOrderRequest from spec)

instrument_type: SecurityType

Type of security

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
order_type: RequestOrderType

Type of order

One of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
quantity: str

Quantity to trade. For COMMON_STOCK: shares (may be fractional if supported). For OPTION (single-leg): contracts (must be an integer)

side: Side

Side of the order

One of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
time_in_force: RequestTimeInForce

Time in force

One of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
id: Optional[str]

Optional client-provided unique ID (idempotency). Required to be unique per account.

maxLength64
expires_at: Optional[datetime]

The timestamp when the order should expire (UTC). Required when time_in_force is GOOD_TILL_DATE.

formatdate-time
extended_hours: Optional[bool]

Allow trading outside regular trading hours. Some brokers disallow options outside RTH.

instrument_id: Optional[InstrumentIDOrSymbol]

OEMS instrument UUID

formatuuid
limit_offset: Optional[str]

Limit offset for trailing stop-limit orders (signed)

limit_price: Optional[str]

Limit price (required for LIMIT and STOP_LIMIT orders)

position_effect: Optional[PositionEffect]

Required when instrument_type is OPTION. Specifies whether the order opens or closes a position.

One of the following:
"OPEN"
"CLOSE"
stop_price: Optional[str]

Stop price (required for STOP and STOP_LIMIT orders)

symbol: Optional[str]

Trading symbol. For equities, use the ticker symbol (e.g., “AAPL”). For options, use the OSI symbol (e.g., “AAPL 250117C00190000”). Either symbol or instrument_id must be provided.

trailing_offset: Optional[str]

Trailing offset amount (required for trailing orders)

trailing_offset_type: Optional[TrailingOffsetType]

Trailing offset type (PRICE or PERCENT_BPS)

One of the following:
"PRICE"
"BPS"
class Order:

A trading order with its current state and execution details.

This is the unified API representation of an order across its lifecycle, combining data from execution reports, order status queries, and parent/child tracking.

id: str

Engine-assigned unique identifier for this order (UUID).

account_id: int

Account placing the order

formatint64
client_order_id: str

Client-provided identifier echoed back (FIX tag 11).

created_at: datetime

Timestamp when order was created (UTC)

formatdate-time
filled_quantity: str

Cumulative filled quantity

instrument_id: str

OEMS instrument UUID for the traded instrument.

formatuuid
instrument_type: SecurityType

Type of security

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
leaves_quantity: str

Remaining unfilled quantity

order_type: OrderType

Type of order (MARKET, LIMIT, etc.)

One of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
"OTHER"
quantity: str

Total order quantity

side: Side

Side of the order (BUY, SELL, SELL_SHORT)

One of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
status: OrderStatus

Current status of the order

One of the following:
"PENDING_NEW"
"NEW"
"PARTIALLY_FILLED"
"FILLED"
"CANCELED"
"REJECTED"
"EXPIRED"
"PENDING_CANCEL"
"PENDING_REPLACE"
"REPLACED"
"DONE_FOR_DAY"
"STOPPED"
"SUSPENDED"
"CALCULATED"
"OTHER"
symbol: str

Trading symbol

time_in_force: TimeInForce

Time in force instruction

One of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
"OTHER"
updated_at: datetime

Timestamp of the most recent update (UTC)

formatdate-time
venue: str

MIC code of the venue where the order is routed

average_fill_price: Optional[str]

Average fill price across all executions

details: Optional[List[str]]

Contains execution, rejection or cancellation details, if any

expires_at: Optional[datetime]

Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE.

formatdate-time
extended_hours: Optional[bool]

Whether the order is eligible for extended-hours trading.

limit_offset: Optional[str]

Limit offset for trailing stop-limit orders (signed)

limit_price: Optional[str]

Limit price (for LIMIT and STOP_LIMIT orders)

queue_state: Optional[QueueState]

Parent order queue state, present when the order is awaiting release or released.

One of the following:
"AWAITING_RELEASE"
"RELEASED"
releases_at: Optional[datetime]

Scheduled release time for orders awaiting release.

formatdate-time
stop_price: Optional[str]

Stop price (for STOP and STOP_LIMIT orders)

trailing_limit_px: Optional[str]

Current trailing limit price computed by the trailing strategy

trailing_offset: Optional[str]

Trailing offset amount for trailing orders

trailing_offset_type: Optional[TrailingOffsetType]

Trailing offset type for trailing orders

One of the following:
"PRICE"
"BPS"
trailing_stop_px: Optional[str]

Current trailing stop price computed by the trailing strategy

trailing_watermark_px: Optional[str]

Trailing watermark price for trailing orders

trailing_watermark_ts: Optional[datetime]

Trailing watermark timestamp for trailing orders

formatdate-time
underlying_instrument_id: Optional[str]

OEMS instrument ID of the option’s underlying instrument. Populated only for OPTIONS orders; null for non-options and for options whose underlier cannot be resolved from the instrument cache.

formatuuid
List[Order]
id: str

Engine-assigned unique identifier for this order (UUID).

account_id: int

Account placing the order

formatint64
client_order_id: str

Client-provided identifier echoed back (FIX tag 11).

created_at: datetime

Timestamp when order was created (UTC)

formatdate-time
filled_quantity: str

Cumulative filled quantity

instrument_id: str

OEMS instrument UUID for the traded instrument.

formatuuid
instrument_type: SecurityType

Type of security

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
leaves_quantity: str

Remaining unfilled quantity

order_type: OrderType

Type of order (MARKET, LIMIT, etc.)

One of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
"OTHER"
quantity: str

Total order quantity

side: Side

Side of the order (BUY, SELL, SELL_SHORT)

One of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
status: OrderStatus

Current status of the order

One of the following:
"PENDING_NEW"
"NEW"
"PARTIALLY_FILLED"
"FILLED"
"CANCELED"
"REJECTED"
"EXPIRED"
"PENDING_CANCEL"
"PENDING_REPLACE"
"REPLACED"
"DONE_FOR_DAY"
"STOPPED"
"SUSPENDED"
"CALCULATED"
"OTHER"
symbol: str

Trading symbol

time_in_force: TimeInForce

Time in force instruction

One of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
"OTHER"
updated_at: datetime

Timestamp of the most recent update (UTC)

formatdate-time
venue: str

MIC code of the venue where the order is routed

average_fill_price: Optional[str]

Average fill price across all executions

details: Optional[List[str]]

Contains execution, rejection or cancellation details, if any

expires_at: Optional[datetime]

Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE.

formatdate-time
extended_hours: Optional[bool]

Whether the order is eligible for extended-hours trading.

limit_offset: Optional[str]

Limit offset for trailing stop-limit orders (signed)

limit_price: Optional[str]

Limit price (for LIMIT and STOP_LIMIT orders)

queue_state: Optional[QueueState]

Parent order queue state, present when the order is awaiting release or released.

One of the following:
"AWAITING_RELEASE"
"RELEASED"
releases_at: Optional[datetime]

Scheduled release time for orders awaiting release.

formatdate-time
stop_price: Optional[str]

Stop price (for STOP and STOP_LIMIT orders)

trailing_limit_px: Optional[str]

Current trailing limit price computed by the trailing strategy

trailing_offset: Optional[str]

Trailing offset amount for trailing orders

trailing_offset_type: Optional[TrailingOffsetType]

Trailing offset type for trailing orders

One of the following:
"PRICE"
"BPS"
trailing_stop_px: Optional[str]

Current trailing stop price computed by the trailing strategy

trailing_watermark_px: Optional[str]

Trailing watermark price for trailing orders

trailing_watermark_ts: Optional[datetime]

Trailing watermark timestamp for trailing orders

formatdate-time
underlying_instrument_id: Optional[str]

OEMS instrument ID of the option’s underlying instrument. Populated only for OPTIONS orders; null for non-options and for options whose underlier cannot be resolved from the instrument cache.

formatuuid
Literal["PENDING_NEW", "NEW", "PARTIALLY_FILLED", 12 more]

Order status

One of the following:
"PENDING_NEW"
"NEW"
"PARTIALLY_FILLED"
"FILLED"
"CANCELED"
"REJECTED"
"EXPIRED"
"PENDING_CANCEL"
"PENDING_REPLACE"
"REPLACED"
"DONE_FOR_DAY"
"STOPPED"
"SUSPENDED"
"CALCULATED"
"OTHER"
Literal["MARKET", "LIMIT", "STOP", 4 more]

Order type

One of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
"OTHER"
Literal["OPEN", "CLOSE"]

Position effect for options orders

One of the following:
"OPEN"
"CLOSE"
Literal["AWAITING_RELEASE", "RELEASED"]

Parent order queue or hold state.

One of the following:
"AWAITING_RELEASE"
"RELEASED"
Literal["MARKET", "LIMIT", "STOP", 3 more]

Strict order-type enum for order submission/replacement requests.

One of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
Literal["DAY", "GOOD_TILL_CANCEL", "IMMEDIATE_OR_CANCEL", 7 more]

Strict time-in-force enum for order submission/replacement requests.

One of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
Literal["BUY", "SELL", "SELL_SHORT", "OTHER"]

Side of an order

One of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
Literal["DAY", "GOOD_TILL_CANCEL", "IMMEDIATE_OR_CANCEL", 8 more]

Time in force

One of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
"OTHER"
Literal["PRICE", "BPS"]

Trailing offset type for trailing stop orders.

One of the following:
"PRICE"
"BPS"
class OrderGetOrdersResponse:
data: OrderList
id: str

Engine-assigned unique identifier for this order (UUID).

account_id: int

Account placing the order

formatint64
client_order_id: str

Client-provided identifier echoed back (FIX tag 11).

created_at: datetime

Timestamp when order was created (UTC)

formatdate-time
filled_quantity: str

Cumulative filled quantity

instrument_id: str

OEMS instrument UUID for the traded instrument.

formatuuid
instrument_type: SecurityType

Type of security

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
leaves_quantity: str

Remaining unfilled quantity

order_type: OrderType

Type of order (MARKET, LIMIT, etc.)

One of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
"OTHER"
quantity: str

Total order quantity

side: Side

Side of the order (BUY, SELL, SELL_SHORT)

One of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
status: OrderStatus

Current status of the order

One of the following:
"PENDING_NEW"
"NEW"
"PARTIALLY_FILLED"
"FILLED"
"CANCELED"
"REJECTED"
"EXPIRED"
"PENDING_CANCEL"
"PENDING_REPLACE"
"REPLACED"
"DONE_FOR_DAY"
"STOPPED"
"SUSPENDED"
"CALCULATED"
"OTHER"
symbol: str

Trading symbol

time_in_force: TimeInForce

Time in force instruction

One of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
"OTHER"
updated_at: datetime

Timestamp of the most recent update (UTC)

formatdate-time
venue: str

MIC code of the venue where the order is routed

average_fill_price: Optional[str]

Average fill price across all executions

details: Optional[List[str]]

Contains execution, rejection or cancellation details, if any

expires_at: Optional[datetime]

Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE.

formatdate-time
extended_hours: Optional[bool]

Whether the order is eligible for extended-hours trading.

limit_offset: Optional[str]

Limit offset for trailing stop-limit orders (signed)

limit_price: Optional[str]

Limit price (for LIMIT and STOP_LIMIT orders)

queue_state: Optional[QueueState]

Parent order queue state, present when the order is awaiting release or released.

One of the following:
"AWAITING_RELEASE"
"RELEASED"
releases_at: Optional[datetime]

Scheduled release time for orders awaiting release.

formatdate-time
stop_price: Optional[str]

Stop price (for STOP and STOP_LIMIT orders)

trailing_limit_px: Optional[str]

Current trailing limit price computed by the trailing strategy

trailing_offset: Optional[str]

Trailing offset amount for trailing orders

trailing_offset_type: Optional[TrailingOffsetType]

Trailing offset type for trailing orders

One of the following:
"PRICE"
"BPS"
trailing_stop_px: Optional[str]

Current trailing stop price computed by the trailing strategy

trailing_watermark_px: Optional[str]

Trailing watermark price for trailing orders

trailing_watermark_ts: Optional[datetime]

Trailing watermark timestamp for trailing orders

formatdate-time
underlying_instrument_id: Optional[str]

OEMS instrument ID of the option’s underlying instrument. Populated only for OPTIONS orders; null for non-options and for options whose underlier cannot be resolved from the instrument cache.

formatuuid
class OrderGetOrderByIDResponse:
data: Order

A trading order with its current state and execution details.

This is the unified API representation of an order across its lifecycle, combining data from execution reports, order status queries, and parent/child tracking.

id: str

Engine-assigned unique identifier for this order (UUID).

account_id: int

Account placing the order

formatint64
client_order_id: str

Client-provided identifier echoed back (FIX tag 11).

created_at: datetime

Timestamp when order was created (UTC)

formatdate-time
filled_quantity: str

Cumulative filled quantity

instrument_id: str

OEMS instrument UUID for the traded instrument.

formatuuid
instrument_type: SecurityType

Type of security

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
leaves_quantity: str

Remaining unfilled quantity

order_type: OrderType

Type of order (MARKET, LIMIT, etc.)

One of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
"OTHER"
quantity: str

Total order quantity

side: Side

Side of the order (BUY, SELL, SELL_SHORT)

One of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
status: OrderStatus

Current status of the order

One of the following:
"PENDING_NEW"
"NEW"
"PARTIALLY_FILLED"
"FILLED"
"CANCELED"
"REJECTED"
"EXPIRED"
"PENDING_CANCEL"
"PENDING_REPLACE"
"REPLACED"
"DONE_FOR_DAY"
"STOPPED"
"SUSPENDED"
"CALCULATED"
"OTHER"
symbol: str

Trading symbol

time_in_force: TimeInForce

Time in force instruction

One of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
"OTHER"
updated_at: datetime

Timestamp of the most recent update (UTC)

formatdate-time
venue: str

MIC code of the venue where the order is routed

average_fill_price: Optional[str]

Average fill price across all executions

details: Optional[List[str]]

Contains execution, rejection or cancellation details, if any

expires_at: Optional[datetime]

Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE.

formatdate-time
extended_hours: Optional[bool]

Whether the order is eligible for extended-hours trading.

limit_offset: Optional[str]

Limit offset for trailing stop-limit orders (signed)

limit_price: Optional[str]

Limit price (for LIMIT and STOP_LIMIT orders)

queue_state: Optional[QueueState]

Parent order queue state, present when the order is awaiting release or released.

One of the following:
"AWAITING_RELEASE"
"RELEASED"
releases_at: Optional[datetime]

Scheduled release time for orders awaiting release.

formatdate-time
stop_price: Optional[str]

Stop price (for STOP and STOP_LIMIT orders)

trailing_limit_px: Optional[str]

Current trailing limit price computed by the trailing strategy

trailing_offset: Optional[str]

Trailing offset amount for trailing orders

trailing_offset_type: Optional[TrailingOffsetType]

Trailing offset type for trailing orders

One of the following:
"PRICE"
"BPS"
trailing_stop_px: Optional[str]

Current trailing stop price computed by the trailing strategy

trailing_watermark_px: Optional[str]

Trailing watermark price for trailing orders

trailing_watermark_ts: Optional[datetime]

Trailing watermark timestamp for trailing orders

formatdate-time
underlying_instrument_id: Optional[str]

OEMS instrument ID of the option’s underlying instrument. Populated only for OPTIONS orders; null for non-options and for options whose underlier cannot be resolved from the instrument cache.

formatuuid
class OrderSubmitOrdersResponse:
data: OrderList
id: str

Engine-assigned unique identifier for this order (UUID).

account_id: int

Account placing the order

formatint64
client_order_id: str

Client-provided identifier echoed back (FIX tag 11).

created_at: datetime

Timestamp when order was created (UTC)

formatdate-time
filled_quantity: str

Cumulative filled quantity

instrument_id: str

OEMS instrument UUID for the traded instrument.

formatuuid
instrument_type: SecurityType

Type of security

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
leaves_quantity: str

Remaining unfilled quantity

order_type: OrderType

Type of order (MARKET, LIMIT, etc.)

One of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
"OTHER"
quantity: str

Total order quantity

side: Side

Side of the order (BUY, SELL, SELL_SHORT)

One of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
status: OrderStatus

Current status of the order

One of the following:
"PENDING_NEW"
"NEW"
"PARTIALLY_FILLED"
"FILLED"
"CANCELED"
"REJECTED"
"EXPIRED"
"PENDING_CANCEL"
"PENDING_REPLACE"
"REPLACED"
"DONE_FOR_DAY"
"STOPPED"
"SUSPENDED"
"CALCULATED"
"OTHER"
symbol: str

Trading symbol

time_in_force: TimeInForce

Time in force instruction

One of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
"OTHER"
updated_at: datetime

Timestamp of the most recent update (UTC)

formatdate-time
venue: str

MIC code of the venue where the order is routed

average_fill_price: Optional[str]

Average fill price across all executions

details: Optional[List[str]]

Contains execution, rejection or cancellation details, if any

expires_at: Optional[datetime]

Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE.

formatdate-time
extended_hours: Optional[bool]

Whether the order is eligible for extended-hours trading.

limit_offset: Optional[str]

Limit offset for trailing stop-limit orders (signed)

limit_price: Optional[str]

Limit price (for LIMIT and STOP_LIMIT orders)

queue_state: Optional[QueueState]

Parent order queue state, present when the order is awaiting release or released.

One of the following:
"AWAITING_RELEASE"
"RELEASED"
releases_at: Optional[datetime]

Scheduled release time for orders awaiting release.

formatdate-time
stop_price: Optional[str]

Stop price (for STOP and STOP_LIMIT orders)

trailing_limit_px: Optional[str]

Current trailing limit price computed by the trailing strategy

trailing_offset: Optional[str]

Trailing offset amount for trailing orders

trailing_offset_type: Optional[TrailingOffsetType]

Trailing offset type for trailing orders

One of the following:
"PRICE"
"BPS"
trailing_stop_px: Optional[str]

Current trailing stop price computed by the trailing strategy

trailing_watermark_px: Optional[str]

Trailing watermark price for trailing orders

trailing_watermark_ts: Optional[datetime]

Trailing watermark timestamp for trailing orders

formatdate-time
underlying_instrument_id: Optional[str]

OEMS instrument ID of the option’s underlying instrument. Populated only for OPTIONS orders; null for non-options and for options whose underlier cannot be resolved from the instrument cache.

formatuuid
class OrderReplaceOrderResponse:
data: Order

A trading order with its current state and execution details.

This is the unified API representation of an order across its lifecycle, combining data from execution reports, order status queries, and parent/child tracking.

id: str

Engine-assigned unique identifier for this order (UUID).

account_id: int

Account placing the order

formatint64
client_order_id: str

Client-provided identifier echoed back (FIX tag 11).

created_at: datetime

Timestamp when order was created (UTC)

formatdate-time
filled_quantity: str

Cumulative filled quantity

instrument_id: str

OEMS instrument UUID for the traded instrument.

formatuuid
instrument_type: SecurityType

Type of security

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
leaves_quantity: str

Remaining unfilled quantity

order_type: OrderType

Type of order (MARKET, LIMIT, etc.)

One of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
"OTHER"
quantity: str

Total order quantity

side: Side

Side of the order (BUY, SELL, SELL_SHORT)

One of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
status: OrderStatus

Current status of the order

One of the following:
"PENDING_NEW"
"NEW"
"PARTIALLY_FILLED"
"FILLED"
"CANCELED"
"REJECTED"
"EXPIRED"
"PENDING_CANCEL"
"PENDING_REPLACE"
"REPLACED"
"DONE_FOR_DAY"
"STOPPED"
"SUSPENDED"
"CALCULATED"
"OTHER"
symbol: str

Trading symbol

time_in_force: TimeInForce

Time in force instruction

One of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
"OTHER"
updated_at: datetime

Timestamp of the most recent update (UTC)

formatdate-time
venue: str

MIC code of the venue where the order is routed

average_fill_price: Optional[str]

Average fill price across all executions

details: Optional[List[str]]

Contains execution, rejection or cancellation details, if any

expires_at: Optional[datetime]

Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE.

formatdate-time
extended_hours: Optional[bool]

Whether the order is eligible for extended-hours trading.

limit_offset: Optional[str]

Limit offset for trailing stop-limit orders (signed)

limit_price: Optional[str]

Limit price (for LIMIT and STOP_LIMIT orders)

queue_state: Optional[QueueState]

Parent order queue state, present when the order is awaiting release or released.

One of the following:
"AWAITING_RELEASE"
"RELEASED"
releases_at: Optional[datetime]

Scheduled release time for orders awaiting release.

formatdate-time
stop_price: Optional[str]

Stop price (for STOP and STOP_LIMIT orders)

trailing_limit_px: Optional[str]

Current trailing limit price computed by the trailing strategy

trailing_offset: Optional[str]

Trailing offset amount for trailing orders

trailing_offset_type: Optional[TrailingOffsetType]

Trailing offset type for trailing orders

One of the following:
"PRICE"
"BPS"
trailing_stop_px: Optional[str]

Current trailing stop price computed by the trailing strategy

trailing_watermark_px: Optional[str]

Trailing watermark price for trailing orders

trailing_watermark_ts: Optional[datetime]

Trailing watermark timestamp for trailing orders

formatdate-time
underlying_instrument_id: Optional[str]

OEMS instrument ID of the option’s underlying instrument. Populated only for OPTIONS orders; null for non-options and for options whose underlier cannot be resolved from the instrument cache.

formatuuid
class OrderCancelOpenOrderResponse:
data: Order

A trading order with its current state and execution details.

This is the unified API representation of an order across its lifecycle, combining data from execution reports, order status queries, and parent/child tracking.

id: str

Engine-assigned unique identifier for this order (UUID).

account_id: int

Account placing the order

formatint64
client_order_id: str

Client-provided identifier echoed back (FIX tag 11).

created_at: datetime

Timestamp when order was created (UTC)

formatdate-time
filled_quantity: str

Cumulative filled quantity

instrument_id: str

OEMS instrument UUID for the traded instrument.

formatuuid
instrument_type: SecurityType

Type of security

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
leaves_quantity: str

Remaining unfilled quantity

order_type: OrderType

Type of order (MARKET, LIMIT, etc.)

One of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
"OTHER"
quantity: str

Total order quantity

side: Side

Side of the order (BUY, SELL, SELL_SHORT)

One of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
status: OrderStatus

Current status of the order

One of the following:
"PENDING_NEW"
"NEW"
"PARTIALLY_FILLED"
"FILLED"
"CANCELED"
"REJECTED"
"EXPIRED"
"PENDING_CANCEL"
"PENDING_REPLACE"
"REPLACED"
"DONE_FOR_DAY"
"STOPPED"
"SUSPENDED"
"CALCULATED"
"OTHER"
symbol: str

Trading symbol

time_in_force: TimeInForce

Time in force instruction

One of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
"OTHER"
updated_at: datetime

Timestamp of the most recent update (UTC)

formatdate-time
venue: str

MIC code of the venue where the order is routed

average_fill_price: Optional[str]

Average fill price across all executions

details: Optional[List[str]]

Contains execution, rejection or cancellation details, if any

expires_at: Optional[datetime]

Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE.

formatdate-time
extended_hours: Optional[bool]

Whether the order is eligible for extended-hours trading.

limit_offset: Optional[str]

Limit offset for trailing stop-limit orders (signed)

limit_price: Optional[str]

Limit price (for LIMIT and STOP_LIMIT orders)

queue_state: Optional[QueueState]

Parent order queue state, present when the order is awaiting release or released.

One of the following:
"AWAITING_RELEASE"
"RELEASED"
releases_at: Optional[datetime]

Scheduled release time for orders awaiting release.

formatdate-time
stop_price: Optional[str]

Stop price (for STOP and STOP_LIMIT orders)

trailing_limit_px: Optional[str]

Current trailing limit price computed by the trailing strategy

trailing_offset: Optional[str]

Trailing offset amount for trailing orders

trailing_offset_type: Optional[TrailingOffsetType]

Trailing offset type for trailing orders

One of the following:
"PRICE"
"BPS"
trailing_stop_px: Optional[str]

Current trailing stop price computed by the trailing strategy

trailing_watermark_px: Optional[str]

Trailing watermark price for trailing orders

trailing_watermark_ts: Optional[datetime]

Trailing watermark timestamp for trailing orders

formatdate-time
underlying_instrument_id: Optional[str]

OEMS instrument ID of the option’s underlying instrument. Populated only for OPTIONS orders; null for non-options and for options whose underlier cannot be resolved from the instrument cache.

formatuuid
class OrderCancelAllOpenOrdersResponse:
data: OrderList
id: str

Engine-assigned unique identifier for this order (UUID).

account_id: int

Account placing the order

formatint64
client_order_id: str

Client-provided identifier echoed back (FIX tag 11).

created_at: datetime

Timestamp when order was created (UTC)

formatdate-time
filled_quantity: str

Cumulative filled quantity

instrument_id: str

OEMS instrument UUID for the traded instrument.

formatuuid
instrument_type: SecurityType

Type of security

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
leaves_quantity: str

Remaining unfilled quantity

order_type: OrderType

Type of order (MARKET, LIMIT, etc.)

One of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
"OTHER"
quantity: str

Total order quantity

side: Side

Side of the order (BUY, SELL, SELL_SHORT)

One of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
status: OrderStatus

Current status of the order

One of the following:
"PENDING_NEW"
"NEW"
"PARTIALLY_FILLED"
"FILLED"
"CANCELED"
"REJECTED"
"EXPIRED"
"PENDING_CANCEL"
"PENDING_REPLACE"
"REPLACED"
"DONE_FOR_DAY"
"STOPPED"
"SUSPENDED"
"CALCULATED"
"OTHER"
symbol: str

Trading symbol

time_in_force: TimeInForce

Time in force instruction

One of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
"OTHER"
updated_at: datetime

Timestamp of the most recent update (UTC)

formatdate-time
venue: str

MIC code of the venue where the order is routed

average_fill_price: Optional[str]

Average fill price across all executions

details: Optional[List[str]]

Contains execution, rejection or cancellation details, if any

expires_at: Optional[datetime]

Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE.

formatdate-time
extended_hours: Optional[bool]

Whether the order is eligible for extended-hours trading.

limit_offset: Optional[str]

Limit offset for trailing stop-limit orders (signed)

limit_price: Optional[str]

Limit price (for LIMIT and STOP_LIMIT orders)

queue_state: Optional[QueueState]

Parent order queue state, present when the order is awaiting release or released.

One of the following:
"AWAITING_RELEASE"
"RELEASED"
releases_at: Optional[datetime]

Scheduled release time for orders awaiting release.

formatdate-time
stop_price: Optional[str]

Stop price (for STOP and STOP_LIMIT orders)

trailing_limit_px: Optional[str]

Current trailing limit price computed by the trailing strategy

trailing_offset: Optional[str]

Trailing offset amount for trailing orders

trailing_offset_type: Optional[TrailingOffsetType]

Trailing offset type for trailing orders

One of the following:
"PRICE"
"BPS"
trailing_stop_px: Optional[str]

Current trailing stop price computed by the trailing strategy

trailing_watermark_px: Optional[str]

Trailing watermark price for trailing orders

trailing_watermark_ts: Optional[datetime]

Trailing watermark timestamp for trailing orders

formatdate-time
underlying_instrument_id: Optional[str]

OEMS instrument ID of the option’s underlying instrument. Populated only for OPTIONS orders; null for non-options and for options whose underlier cannot be resolved from the instrument cache.

formatuuid

V1Positions

View positions and manage position instructions.

Get Positions
v1.positions.get_positions(intaccount_id, PositionGetPositionsParams**kwargs) -> PositionGetPositionsResponse
GET/v1/accounts/{account_id}/positions
Close Positions
v1.positions.close_positions(intaccount_id, PositionClosePositionsParams**kwargs) -> PositionClosePositionsResponse
DELETE/v1/accounts/{account_id}/positions
Close Position
v1.positions.close_position(InstrumentIDOrSymbolinstrument_id, PositionClosePositionParams**kwargs) -> PositionClosePositionResponse
DELETE/v1/accounts/{account_id}/positions/{instrument_id}
List Position Instructions
v1.positions.get_position_instructions(intaccount_id, PositionGetPositionInstructionsParams**kwargs) -> PositionGetPositionInstructionsResponse
GET/v1/accounts/{account_id}/positions/instructions
Submit Position Instructions
v1.positions.submit_position_instructions(intaccount_id, PositionSubmitPositionInstructionsParams**kwargs) -> PositionSubmitPositionInstructionsResponse
POST/v1/accounts/{account_id}/positions/instructions
Cancel Position Instruction
v1.positions.cancel_position_instruction(strinstruction_id, PositionCancelPositionInstructionParams**kwargs) -> PositionCancelPositionInstructionResponse
DELETE/v1/accounts/{account_id}/positions/instructions/{instruction_id}
ModelsExpand Collapse
class Position:

Represents a holding of a particular instrument in an account

account_id: int

The account this position belongs to

formatint64
available_quantity: str

The quantity of a position that is free to be operated on.

instrument_id: str

OEMS instrument UUID

formatuuid
instrument_type: SecurityType

Type of security

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
market_value: str

The current market value of the position

position_type: PositionType

The type of position

One of the following:
"LONG"
"SHORT"
"LONG_CALL"
"SHORT_CALL"
"LONG_PUT"
"SHORT_PUT"
quantity: str

The number of shares or contracts. Can be positive (long) or negative (short)

symbol: str

The trading symbol for the instrument

avg_price: Optional[str]

The average price paid per share or contract for this position

closing_price: Optional[str]

The closing price used to value the position for the last trading day

closing_price_date: Optional[date]

The market date associated with closing_price

formatdate
cost_basis: Optional[str]

The total cost basis for this position

daily_unrealized_pnl: Optional[str]

The unrealized profit or loss for this position relative to the previous close

daily_unrealized_pnl_pct: Optional[str]

The unrealized profit/loss for the position for the current day, expressed as a percentage of the baseline value (range: 0-100).

instrument_price: Optional[str]

The current market price of the instrument

underlying_instrument_id: Optional[str]

OEMS instrument identifier of the underlying instrument, if resolvable

formatuuid
unrealized_pnl: Optional[str]

The total unrealized profit or loss for this position based on current market value

unrealized_pnl_pct: Optional[str]

The unrealized profit/loss for the position, expressed as a percentage of the position’s cost basis (range: 0-100).

class PositionInstruction:

A position instruction and its current lifecycle state.

id: str

Server-assigned id. Used as the path parameter on cancel.

formatuuid
account_id: int

Account the instruction belongs to.

formatint64
instruction_id: str

Caller-supplied idempotency key echoed from the submit request; the server-assigned fallback when none was supplied.

instruction_type: PositionInstructionType

The action this instruction requests.

One of the following:
"EXERCISE"
"DO_NOT_EXERCISE"
"CONTRARY_EXERCISE"
instrument_id: str

Identifier of the options contract this instruction acts on.

formatuuid
quantity: str

Number of contracts included in the instruction.

Current lifecycle status.

One of the following:
"SENT"
"ACCEPTED"
"REJECTED"
"ENGINE_REJECTED"
"CANCEL_REQUESTED"
"CANCELLED"
"CANCEL_FAILED"
"UNKNOWN"
symbol: str

Options symbol (OSI) for display.

accepted_quantity: Optional[str]

Number of contracts accepted by the clearing venue. Populated once the instruction reaches ACCEPTED.

created_at: Optional[datetime]

When the instruction was first accepted by the service.

formatdate-time
rejection_reason: Optional[str]

Human-readable explanation populated on any non-success terminal status — REJECTED, ENGINE_REJECTED, or CANCEL_FAILED. On a 207 Multi-Status batch submit the top-level error field summarizes the batch; per-row detail continues to live here.

updated_at: Optional[datetime]

When the instruction’s lifecycle state last changed.

formatdate-time
id: str

Server-assigned id. Used as the path parameter on cancel.

formatuuid
account_id: int

Account the instruction belongs to.

formatint64
instruction_id: str

Caller-supplied idempotency key echoed from the submit request; the server-assigned fallback when none was supplied.

instruction_type: PositionInstructionType

The action this instruction requests.

One of the following:
"EXERCISE"
"DO_NOT_EXERCISE"
"CONTRARY_EXERCISE"
instrument_id: str

Identifier of the options contract this instruction acts on.

formatuuid
quantity: str

Number of contracts included in the instruction.

Current lifecycle status.

One of the following:
"SENT"
"ACCEPTED"
"REJECTED"
"ENGINE_REJECTED"
"CANCEL_REQUESTED"
"CANCELLED"
"CANCEL_FAILED"
"UNKNOWN"
symbol: str

Options symbol (OSI) for display.

accepted_quantity: Optional[str]

Number of contracts accepted by the clearing venue. Populated once the instruction reaches ACCEPTED.

created_at: Optional[datetime]

When the instruction was first accepted by the service.

formatdate-time
rejection_reason: Optional[str]

Human-readable explanation populated on any non-success terminal status — REJECTED, ENGINE_REJECTED, or CANCEL_FAILED. On a 207 Multi-Status batch submit the top-level error field summarizes the batch; per-row detail continues to live here.

updated_at: Optional[datetime]

When the instruction’s lifecycle state last changed.

formatdate-time
Literal["SENT", "ACCEPTED", "REJECTED", 5 more]

Lifecycle status of a position instruction.

One of the following:
"SENT"
"ACCEPTED"
"REJECTED"
"ENGINE_REJECTED"
"CANCEL_REQUESTED"
"CANCELLED"
"CANCEL_FAILED"
"UNKNOWN"
Literal["EXERCISE", "DO_NOT_EXERCISE", "CONTRARY_EXERCISE"]

The action to take against an options position.

One of the following:
"EXERCISE"
"DO_NOT_EXERCISE"
"CONTRARY_EXERCISE"
List[Position]
account_id: int

The account this position belongs to

formatint64
available_quantity: str

The quantity of a position that is free to be operated on.

instrument_id: str

OEMS instrument UUID

formatuuid
instrument_type: SecurityType

Type of security

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
market_value: str

The current market value of the position

position_type: PositionType

The type of position

One of the following:
"LONG"
"SHORT"
"LONG_CALL"
"SHORT_CALL"
"LONG_PUT"
"SHORT_PUT"
quantity: str

The number of shares or contracts. Can be positive (long) or negative (short)

symbol: str

The trading symbol for the instrument

avg_price: Optional[str]

The average price paid per share or contract for this position

closing_price: Optional[str]

The closing price used to value the position for the last trading day

closing_price_date: Optional[date]

The market date associated with closing_price

formatdate
cost_basis: Optional[str]

The total cost basis for this position

daily_unrealized_pnl: Optional[str]

The unrealized profit or loss for this position relative to the previous close

daily_unrealized_pnl_pct: Optional[str]

The unrealized profit/loss for the position for the current day, expressed as a percentage of the baseline value (range: 0-100).

instrument_price: Optional[str]

The current market price of the instrument

underlying_instrument_id: Optional[str]

OEMS instrument identifier of the underlying instrument, if resolvable

formatuuid
unrealized_pnl: Optional[str]

The total unrealized profit or loss for this position based on current market value

unrealized_pnl_pct: Optional[str]

The unrealized profit/loss for the position, expressed as a percentage of the position’s cost basis (range: 0-100).

Literal["LONG", "SHORT", "LONG_CALL", 3 more]

Position type classification

One of the following:
"LONG"
"SHORT"
"LONG_CALL"
"SHORT_CALL"
"LONG_PUT"
"SHORT_PUT"
class PositionGetPositionsResponse:
account_id: int

The account this position belongs to

formatint64
available_quantity: str

The quantity of a position that is free to be operated on.

instrument_id: str

OEMS instrument UUID

formatuuid
instrument_type: SecurityType

Type of security

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
market_value: str

The current market value of the position

position_type: PositionType

The type of position

One of the following:
"LONG"
"SHORT"
"LONG_CALL"
"SHORT_CALL"
"LONG_PUT"
"SHORT_PUT"
quantity: str

The number of shares or contracts. Can be positive (long) or negative (short)

symbol: str

The trading symbol for the instrument

avg_price: Optional[str]

The average price paid per share or contract for this position

closing_price: Optional[str]

The closing price used to value the position for the last trading day

closing_price_date: Optional[date]

The market date associated with closing_price

formatdate
cost_basis: Optional[str]

The total cost basis for this position

daily_unrealized_pnl: Optional[str]

The unrealized profit or loss for this position relative to the previous close

daily_unrealized_pnl_pct: Optional[str]

The unrealized profit/loss for the position for the current day, expressed as a percentage of the baseline value (range: 0-100).

instrument_price: Optional[str]

The current market price of the instrument

underlying_instrument_id: Optional[str]

OEMS instrument identifier of the underlying instrument, if resolvable

formatuuid
unrealized_pnl: Optional[str]

The total unrealized profit or loss for this position based on current market value

unrealized_pnl_pct: Optional[str]

The unrealized profit/loss for the position, expressed as a percentage of the position’s cost basis (range: 0-100).

class PositionClosePositionsResponse:
data: OrderList
id: str

Engine-assigned unique identifier for this order (UUID).

account_id: int

Account placing the order

formatint64
client_order_id: str

Client-provided identifier echoed back (FIX tag 11).

created_at: datetime

Timestamp when order was created (UTC)

formatdate-time
filled_quantity: str

Cumulative filled quantity

instrument_id: str

OEMS instrument UUID for the traded instrument.

formatuuid
instrument_type: SecurityType

Type of security

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
leaves_quantity: str

Remaining unfilled quantity

order_type: OrderType

Type of order (MARKET, LIMIT, etc.)

One of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
"OTHER"
quantity: str

Total order quantity

side: Side

Side of the order (BUY, SELL, SELL_SHORT)

One of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
status: OrderStatus

Current status of the order

One of the following:
"PENDING_NEW"
"NEW"
"PARTIALLY_FILLED"
"FILLED"
"CANCELED"
"REJECTED"
"EXPIRED"
"PENDING_CANCEL"
"PENDING_REPLACE"
"REPLACED"
"DONE_FOR_DAY"
"STOPPED"
"SUSPENDED"
"CALCULATED"
"OTHER"
symbol: str

Trading symbol

time_in_force: TimeInForce

Time in force instruction

One of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
"OTHER"
updated_at: datetime

Timestamp of the most recent update (UTC)

formatdate-time
venue: str

MIC code of the venue where the order is routed

average_fill_price: Optional[str]

Average fill price across all executions

details: Optional[List[str]]

Contains execution, rejection or cancellation details, if any

expires_at: Optional[datetime]

Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE.

formatdate-time
extended_hours: Optional[bool]

Whether the order is eligible for extended-hours trading.

limit_offset: Optional[str]

Limit offset for trailing stop-limit orders (signed)

limit_price: Optional[str]

Limit price (for LIMIT and STOP_LIMIT orders)

queue_state: Optional[QueueState]

Parent order queue state, present when the order is awaiting release or released.

One of the following:
"AWAITING_RELEASE"
"RELEASED"
releases_at: Optional[datetime]

Scheduled release time for orders awaiting release.

formatdate-time
stop_price: Optional[str]

Stop price (for STOP and STOP_LIMIT orders)

trailing_limit_px: Optional[str]

Current trailing limit price computed by the trailing strategy

trailing_offset: Optional[str]

Trailing offset amount for trailing orders

trailing_offset_type: Optional[TrailingOffsetType]

Trailing offset type for trailing orders

One of the following:
"PRICE"
"BPS"
trailing_stop_px: Optional[str]

Current trailing stop price computed by the trailing strategy

trailing_watermark_px: Optional[str]

Trailing watermark price for trailing orders

trailing_watermark_ts: Optional[datetime]

Trailing watermark timestamp for trailing orders

formatdate-time
underlying_instrument_id: Optional[str]

OEMS instrument ID of the option’s underlying instrument. Populated only for OPTIONS orders; null for non-options and for options whose underlier cannot be resolved from the instrument cache.

formatuuid
class PositionClosePositionResponse:
data: OrderList
id: str

Engine-assigned unique identifier for this order (UUID).

account_id: int

Account placing the order

formatint64
client_order_id: str

Client-provided identifier echoed back (FIX tag 11).

created_at: datetime

Timestamp when order was created (UTC)

formatdate-time
filled_quantity: str

Cumulative filled quantity

instrument_id: str

OEMS instrument UUID for the traded instrument.

formatuuid
instrument_type: SecurityType

Type of security

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
leaves_quantity: str

Remaining unfilled quantity

order_type: OrderType

Type of order (MARKET, LIMIT, etc.)

One of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
"OTHER"
quantity: str

Total order quantity

side: Side

Side of the order (BUY, SELL, SELL_SHORT)

One of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
status: OrderStatus

Current status of the order

One of the following:
"PENDING_NEW"
"NEW"
"PARTIALLY_FILLED"
"FILLED"
"CANCELED"
"REJECTED"
"EXPIRED"
"PENDING_CANCEL"
"PENDING_REPLACE"
"REPLACED"
"DONE_FOR_DAY"
"STOPPED"
"SUSPENDED"
"CALCULATED"
"OTHER"
symbol: str

Trading symbol

time_in_force: TimeInForce

Time in force instruction

One of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
"OTHER"
updated_at: datetime

Timestamp of the most recent update (UTC)

formatdate-time
venue: str

MIC code of the venue where the order is routed

average_fill_price: Optional[str]

Average fill price across all executions

details: Optional[List[str]]

Contains execution, rejection or cancellation details, if any

expires_at: Optional[datetime]

Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE.

formatdate-time
extended_hours: Optional[bool]

Whether the order is eligible for extended-hours trading.

limit_offset: Optional[str]

Limit offset for trailing stop-limit orders (signed)

limit_price: Optional[str]

Limit price (for LIMIT and STOP_LIMIT orders)

queue_state: Optional[QueueState]

Parent order queue state, present when the order is awaiting release or released.

One of the following:
"AWAITING_RELEASE"
"RELEASED"
releases_at: Optional[datetime]

Scheduled release time for orders awaiting release.

formatdate-time
stop_price: Optional[str]

Stop price (for STOP and STOP_LIMIT orders)

trailing_limit_px: Optional[str]

Current trailing limit price computed by the trailing strategy

trailing_offset: Optional[str]

Trailing offset amount for trailing orders

trailing_offset_type: Optional[TrailingOffsetType]

Trailing offset type for trailing orders

One of the following:
"PRICE"
"BPS"
trailing_stop_px: Optional[str]

Current trailing stop price computed by the trailing strategy

trailing_watermark_px: Optional[str]

Trailing watermark price for trailing orders

trailing_watermark_ts: Optional[datetime]

Trailing watermark timestamp for trailing orders

formatdate-time
underlying_instrument_id: Optional[str]

OEMS instrument ID of the option’s underlying instrument. Populated only for OPTIONS orders; null for non-options and for options whose underlier cannot be resolved from the instrument cache.

formatuuid
class PositionGetPositionInstructionsResponse:
id: str

Server-assigned id. Used as the path parameter on cancel.

formatuuid
account_id: int

Account the instruction belongs to.

formatint64
instruction_id: str

Caller-supplied idempotency key echoed from the submit request; the server-assigned fallback when none was supplied.

instruction_type: PositionInstructionType

The action this instruction requests.

One of the following:
"EXERCISE"
"DO_NOT_EXERCISE"
"CONTRARY_EXERCISE"
instrument_id: str

Identifier of the options contract this instruction acts on.

formatuuid
quantity: str

Number of contracts included in the instruction.

Current lifecycle status.

One of the following:
"SENT"
"ACCEPTED"
"REJECTED"
"ENGINE_REJECTED"
"CANCEL_REQUESTED"
"CANCELLED"
"CANCEL_FAILED"
"UNKNOWN"
symbol: str

Options symbol (OSI) for display.

accepted_quantity: Optional[str]

Number of contracts accepted by the clearing venue. Populated once the instruction reaches ACCEPTED.

created_at: Optional[datetime]

When the instruction was first accepted by the service.

formatdate-time
rejection_reason: Optional[str]

Human-readable explanation populated on any non-success terminal status — REJECTED, ENGINE_REJECTED, or CANCEL_FAILED. On a 207 Multi-Status batch submit the top-level error field summarizes the batch; per-row detail continues to live here.

updated_at: Optional[datetime]

When the instruction’s lifecycle state last changed.

formatdate-time
class PositionSubmitPositionInstructionsResponse:
id: str

Server-assigned id. Used as the path parameter on cancel.

formatuuid
account_id: int

Account the instruction belongs to.

formatint64
instruction_id: str

Caller-supplied idempotency key echoed from the submit request; the server-assigned fallback when none was supplied.

instruction_type: PositionInstructionType

The action this instruction requests.

One of the following:
"EXERCISE"
"DO_NOT_EXERCISE"
"CONTRARY_EXERCISE"
instrument_id: str

Identifier of the options contract this instruction acts on.

formatuuid
quantity: str

Number of contracts included in the instruction.

Current lifecycle status.

One of the following:
"SENT"
"ACCEPTED"
"REJECTED"
"ENGINE_REJECTED"
"CANCEL_REQUESTED"
"CANCELLED"
"CANCEL_FAILED"
"UNKNOWN"
symbol: str

Options symbol (OSI) for display.

accepted_quantity: Optional[str]

Number of contracts accepted by the clearing venue. Populated once the instruction reaches ACCEPTED.

created_at: Optional[datetime]

When the instruction was first accepted by the service.

formatdate-time
rejection_reason: Optional[str]

Human-readable explanation populated on any non-success terminal status — REJECTED, ENGINE_REJECTED, or CANCEL_FAILED. On a 207 Multi-Status batch submit the top-level error field summarizes the batch; per-row detail continues to live here.

updated_at: Optional[datetime]

When the instruction’s lifecycle state last changed.

formatdate-time
class PositionCancelPositionInstructionResponse:

A position instruction and its current lifecycle state.

id: str

Server-assigned id. Used as the path parameter on cancel.

formatuuid
account_id: int

Account the instruction belongs to.

formatint64
instruction_id: str

Caller-supplied idempotency key echoed from the submit request; the server-assigned fallback when none was supplied.

instruction_type: PositionInstructionType

The action this instruction requests.

One of the following:
"EXERCISE"
"DO_NOT_EXERCISE"
"CONTRARY_EXERCISE"
instrument_id: str

Identifier of the options contract this instruction acts on.

formatuuid
quantity: str

Number of contracts included in the instruction.

Current lifecycle status.

One of the following:
"SENT"
"ACCEPTED"
"REJECTED"
"ENGINE_REJECTED"
"CANCEL_REQUESTED"
"CANCELLED"
"CANCEL_FAILED"
"UNKNOWN"
symbol: str

Options symbol (OSI) for display.

accepted_quantity: Optional[str]

Number of contracts accepted by the clearing venue. Populated once the instruction reaches ACCEPTED.

created_at: Optional[datetime]

When the instruction was first accepted by the service.

formatdate-time
rejection_reason: Optional[str]

Human-readable explanation populated on any non-success terminal status — REJECTED, ENGINE_REJECTED, or CANCEL_FAILED. On a 207 Multi-Status batch submit the top-level error field summarizes the batch; per-row detail continues to live here.

updated_at: Optional[datetime]

When the instruction’s lifecycle state last changed.

formatdate-time

V1Watchlist

Create and manage watchlists.

Get Watchlists
v1.watchlist.get_watchlists(WatchlistGetWatchlistsParams**kwargs) -> WatchlistGetWatchlistsResponse
GET/v1/watchlists
Get Watchlist By ID
v1.watchlist.get_watchlist_by_id(strwatchlist_id) -> WatchlistGetWatchlistByIDResponse
GET/v1/watchlists/{watchlist_id}
Create Watchlist
v1.watchlist.create_watchlist(WatchlistCreateWatchlistParams**kwargs) -> WatchlistCreateWatchlistResponse
POST/v1/watchlists
Delete Watchlist
v1.watchlist.delete_watchlist(strwatchlist_id) -> object
DELETE/v1/watchlists/{watchlist_id}
Add Watchlist Item
v1.watchlist.add_watchlist_item(strwatchlist_id, WatchlistAddWatchlistItemParams**kwargs) -> WatchlistAddWatchlistItemResponse
POST/v1/watchlists/{watchlist_id}/items
Delete Watchlist Item
v1.watchlist.delete_watchlist_item(stritem_id, WatchlistDeleteWatchlistItemParams**kwargs) -> object
DELETE/v1/watchlists/{watchlist_id}/items/{item_id}
ModelsExpand Collapse
class AddWatchlistItemData:

Response data for adding a watchlist item

item_id: str

ID of the created item

formatuuid
class WatchlistDetail:

Detailed watchlist with all items

id: str

Watchlist ID

formatuuid
created_at: datetime

Creation timestamp

formatdate-time
items: List[WatchlistItemEntry]

Items in the watchlist

id: str

Item ID

formatuuid
added_at: datetime

When the item was added

formatdate-time
added_price: Optional[str]

Price when the item was added

instrument: Optional[Instrument]

Instrument details

id: str

Unique OEMS instrument identifier (UUID)

formatuuid
country_of_issue: str

The ISO country code of the instrument’s issue

currency: str

The ISO currency code in which the instrument is traded

easy_to_borrow: bool

Indicates if the instrument is classified as Easy-To-Borrow

is_liquidation_only: bool

Indicates if the instrument is liquidation only and cannot be bought

is_marginable: bool

Indicates if the instrument is marginable

is_restricted: bool

Indicates if the instrument is restricted from trading

is_short_prohibited: bool

Indicates if short selling is prohibited for the instrument

is_threshold_security: bool

Indicates if the instrument is on the Regulation SHO Threshold Security List

is_tradable: bool

Indicates if the instrument is tradable

symbol: str

The trading symbol for the instrument

venue: str

The MIC code of the primary listing venue

adv: Optional[str]

Average daily share volume from the security definition.

expiry: Optional[date]

The expiration date for options instruments

formatdate
instrument_type: Optional[SecurityType]

The type of security (e.g., Common Stock, ETF)

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
long_margin_rate: Optional[str]

The percent of a long position’s value you must post as margin

name: Optional[str]

The full name of the instrument or its issuer

notional_adv: Optional[str]

Notional ADV (adv × previous_close). The primary liquidity signal used by /instruments/search ranking. Computed at response time so it stays consistent with whatever adv and previous_close show.

options_expiry_dates: Optional[List[date]]

Available options expiration dates for this instrument. Present only when include_options_expiry_dates=true in the request.

previous_close: Optional[str]

Last close price from the security definition.

short_margin_rate: Optional[str]

The percent of a short position’s value you must post as margin

strike_price: Optional[str]

The strike price for options instruments

name: str

Watchlist name

class WatchlistEntry:

Represents a user watchlist.

id: str

The unique identifier for the watchlist.

formatuuid
created_at: datetime

The timestamp when the watchlist was created.

formatdate-time
name: str

The user-provided watchlist name.

id: str

The unique identifier for the watchlist.

formatuuid
created_at: datetime

The timestamp when the watchlist was created.

formatdate-time
name: str

The user-provided watchlist name.

class WatchlistItemEntry:

A single item in a watchlist

id: str

Item ID

formatuuid
added_at: datetime

When the item was added

formatdate-time
added_price: Optional[str]

Price when the item was added

instrument: Optional[Instrument]

Instrument details

id: str

Unique OEMS instrument identifier (UUID)

formatuuid
country_of_issue: str

The ISO country code of the instrument’s issue

currency: str

The ISO currency code in which the instrument is traded

easy_to_borrow: bool

Indicates if the instrument is classified as Easy-To-Borrow

is_liquidation_only: bool

Indicates if the instrument is liquidation only and cannot be bought

is_marginable: bool

Indicates if the instrument is marginable

is_restricted: bool

Indicates if the instrument is restricted from trading

is_short_prohibited: bool

Indicates if short selling is prohibited for the instrument

is_threshold_security: bool

Indicates if the instrument is on the Regulation SHO Threshold Security List

is_tradable: bool

Indicates if the instrument is tradable

symbol: str

The trading symbol for the instrument

venue: str

The MIC code of the primary listing venue

adv: Optional[str]

Average daily share volume from the security definition.

expiry: Optional[date]

The expiration date for options instruments

formatdate
instrument_type: Optional[SecurityType]

The type of security (e.g., Common Stock, ETF)

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
long_margin_rate: Optional[str]

The percent of a long position’s value you must post as margin

name: Optional[str]

The full name of the instrument or its issuer

notional_adv: Optional[str]

Notional ADV (adv × previous_close). The primary liquidity signal used by /instruments/search ranking. Computed at response time so it stays consistent with whatever adv and previous_close show.

options_expiry_dates: Optional[List[date]]

Available options expiration dates for this instrument. Present only when include_options_expiry_dates=true in the request.

previous_close: Optional[str]

Last close price from the security definition.

short_margin_rate: Optional[str]

The percent of a short position’s value you must post as margin

strike_price: Optional[str]

The strike price for options instruments

class WatchlistGetWatchlistsResponse:
id: str

The unique identifier for the watchlist.

formatuuid
created_at: datetime

The timestamp when the watchlist was created.

formatdate-time
name: str

The user-provided watchlist name.

class WatchlistGetWatchlistByIDResponse:

Detailed watchlist with all items

id: str

Watchlist ID

formatuuid
created_at: datetime

Creation timestamp

formatdate-time
items: List[WatchlistItemEntry]

Items in the watchlist

id: str

Item ID

formatuuid
added_at: datetime

When the item was added

formatdate-time
added_price: Optional[str]

Price when the item was added

instrument: Optional[Instrument]

Instrument details

id: str

Unique OEMS instrument identifier (UUID)

formatuuid
country_of_issue: str

The ISO country code of the instrument’s issue

currency: str

The ISO currency code in which the instrument is traded

easy_to_borrow: bool

Indicates if the instrument is classified as Easy-To-Borrow

is_liquidation_only: bool

Indicates if the instrument is liquidation only and cannot be bought

is_marginable: bool

Indicates if the instrument is marginable

is_restricted: bool

Indicates if the instrument is restricted from trading

is_short_prohibited: bool

Indicates if short selling is prohibited for the instrument

is_threshold_security: bool

Indicates if the instrument is on the Regulation SHO Threshold Security List

is_tradable: bool

Indicates if the instrument is tradable

symbol: str

The trading symbol for the instrument

venue: str

The MIC code of the primary listing venue

adv: Optional[str]

Average daily share volume from the security definition.

expiry: Optional[date]

The expiration date for options instruments

formatdate
instrument_type: Optional[SecurityType]

The type of security (e.g., Common Stock, ETF)

One of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"OPTION"
"CASH"
"OTHER"
long_margin_rate: Optional[str]

The percent of a long position’s value you must post as margin

name: Optional[str]

The full name of the instrument or its issuer

notional_adv: Optional[str]

Notional ADV (adv × previous_close). The primary liquidity signal used by /instruments/search ranking. Computed at response time so it stays consistent with whatever adv and previous_close show.

options_expiry_dates: Optional[List[date]]

Available options expiration dates for this instrument. Present only when include_options_expiry_dates=true in the request.

previous_close: Optional[str]

Last close price from the security definition.

short_margin_rate: Optional[str]

The percent of a short position’s value you must post as margin

strike_price: Optional[str]

The strike price for options instruments

name: str

Watchlist name

class WatchlistCreateWatchlistResponse:

Represents a user watchlist.

id: str

The unique identifier for the watchlist.

formatuuid
created_at: datetime

The timestamp when the watchlist was created.

formatdate-time
name: str

The user-provided watchlist name.

class WatchlistAddWatchlistItemResponse:

Response data for adding a watchlist item

item_id: str

ID of the created item

formatuuid

V1Websocket

Active Websocket.

Websocket Handler
v1.websocket.websocket_handler()
GET/v1/ws