V1
V1Accounts
Manage trading accounts, balances, and portfolio history.
Get Accounts
Get Account By ID
Patch Account By ID
Get Account Balances
Get Portfolio History
ModelsExpand Collapse
type Account struct{…}
Represents a trading account
Status AccountStatus
Subtype AccountSubtype
Type AccountType
type AccountBalances struct{…}
Represents the balance details for a trading account
DailyUnrealizedPnl string
Total unrealized profit or loss across all positions relative to prior close.
MarginType MarginType
Start-of-day snapshot balances.
Asof TimeOptional
Timestamp for the start-of-day values. When a null/undefined value is observed, it indicates that there is no available data.
DeprecatedDayTradeBuyingPower stringOptional
Start-of-day day-trade buying power. When a null/undefined value is observed, it indicates it does not apply.
MaintenanceMarginExcess stringOptional
Start-of-day maintenance margin excess. When a null/undefined value is observed, it indicates it does not apply.
Margin-account-only details. When a null/undefined value is observed, it indicates it does not apply.
DeprecatedDayTradeCount int64
The number of day trades executed over the 5 most recent trading days.
IntradayDetails MarginSessionDetails
OvernightDetails MarginSessionDetails
DeprecatedDayTradeBuyingPowerUsage stringOptional
The amount of day-trade buying power used during the current trading day. When null/undefined, the value should be assumed to be zero. The field is omitted to simplify the response.
type AccountBalancesSod struct{…}
Asof TimeOptional
Timestamp for the start-of-day values. When a null/undefined value is observed, it indicates that there is no available data.
DeprecatedDayTradeBuyingPower stringOptional
Start-of-day day-trade buying power. When a null/undefined value is observed, it indicates it does not apply.
MaintenanceMarginExcess stringOptional
Start-of-day maintenance margin excess. When a null/undefined value is observed, it indicates it does not apply.
Status AccountStatus
Subtype AccountSubtype
Type AccountType
type MarginDetails struct{…}
DeprecatedDayTradeCount int64
The number of day trades executed over the 5 most recent trading days.
IntradayDetails MarginSessionDetails
OvernightDetails MarginSessionDetails
DeprecatedDayTradeBuyingPowerUsage stringOptional
The amount of day-trade buying power used during the current trading day. When null/undefined, the value should be assumed to be zero. The field is omitted to simplify the response.
type PortfolioHistoryResponse struct{…}
Segments []PortfolioHistorySegment
DayPnl stringOptional
Sum of the profit and loss from intraday trading activities for the trading day.
NetPnl stringOptional
P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses
type PortfolioHistorySegment struct{…}
DayPnl stringOptional
Sum of the profit and loss from intraday trading activities for the trading day.
NetPnl stringOptional
P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses
V1API Version
Endpoints for API service metadata.
Get the API version.
V1Calendar
Access clocks and financial calendars for market sessions and events.
Get Market Hours Calendar.
ModelsExpand Collapse
type MarketHoursDetail struct{…}
Comprehensive market hours information for a specific market and date
Market MarketType
NextSessions TradingSessions
Next trading day’s session schedules (without time_until fields)
After-hours session schedule, null if not available When a null/undefined value is observed, it indicates it does not apply.
Pre-market session schedule, null if not available When a null/undefined value is observed, it indicates it does not apply.
Regular trading session schedule, null if holiday/weekend When a null/undefined value is observed, it indicates it does not apply.
Status MarketStatus
Market status information
DayType DayType
TodaySessions TradingSessions
Trading session schedules for the requested date with time_until fields
After-hours session schedule, null if not available When a null/undefined value is observed, it indicates it does not apply.
Pre-market session schedule, null if not available When a null/undefined value is observed, it indicates it does not apply.
Regular trading session schedule, null if holiday/weekend When a null/undefined value is observed, it indicates it does not apply.
Market MarketType
NextSessions TradingSessions
Next trading day’s session schedules (without time_until fields)
After-hours session schedule, null if not available When a null/undefined value is observed, it indicates it does not apply.
Pre-market session schedule, null if not available When a null/undefined value is observed, it indicates it does not apply.
Regular trading session schedule, null if holiday/weekend When a null/undefined value is observed, it indicates it does not apply.
Status MarketStatus
Market status information
DayType DayType
TodaySessions TradingSessions
Trading session schedules for the requested date with time_until fields
After-hours session schedule, null if not available When a null/undefined value is observed, it indicates it does not apply.
Pre-market session schedule, null if not available When a null/undefined value is observed, it indicates it does not apply.
Regular trading session schedule, null if holiday/weekend When a null/undefined value is observed, it indicates it does not apply.
type MarketStatus struct{…}
Market status information
DayType DayType
type TradingSessions struct{…}
Trading sessions for a market day with full timestamps
After-hours session schedule, null if not available When a null/undefined value is observed, it indicates it does not apply.
Pre-market session schedule, null if not available When a null/undefined value is observed, it indicates it does not apply.
Regular trading session schedule, null if holiday/weekend When a null/undefined value is observed, it indicates it does not apply.
V1Instrument Data
Retrieve instrument analytics, market data, news, and related reference data.
Get All Instrument Events
Get Instrument Events
Get Instrument Fundamentals
Get Instrument Balance Sheet Statements
Get Instrument Income Statements
Get Instrument Analyst Consensus
Get Instrument Cash Flow Statements
ModelsExpand Collapse
type InstrumentAllEventsData struct{…}
All-events payload grouped by date.
EventDates []InstrumentEventsByDate
Events grouped by date in descending order.
Events []InstrumentEventEnvelope
Flat event envelopes for this date.
Type AllEventsEventType
Dividend payload when type is DIVIDEND. When a null/undefined value is observed, it indicates it does not apply.
DeclarationDate TimeOptional
The declaration date of the dividend When a null/undefined value is observed, it indicates that there is no available data.
DividendAmount stringOptional
The dividend amount per share. When a null/undefined value is observed, it indicates that there is no available data.
DividendYield stringOptional
The dividend yield as a percentage of the stock price. When a null/undefined value is observed, it indicates that there is no available data.
Frequency stringOptional
The frequency of the dividend payments (e.g., “Quarterly”, “Annual”). When a null/undefined value is observed, it indicates that there is no available data.
Earnings payload when type is EARNINGS. When a null/undefined value is observed, it indicates it does not apply.
EpsActual stringOptional
The actual earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
EpsEstimate stringOptional
The estimated earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
EpsSurprisePercent stringOptional
The percentage difference between actual and estimated EPS When a null/undefined value is observed, it indicates that there is no available data.
RevenueActual stringOptional
The actual total revenue for the period When a null/undefined value is observed, it indicates that there is no available data.
InstrumentID stringOptional
Instrument identifier, when available. When a null/undefined value is observed, it indicates that there is no available data.
IPO payload when type is IPO. When a null/undefined value is observed, it indicates it does not apply.
Actions stringOptional
IPO action. When a null/undefined value is observed, it indicates that there is no available data.
AnnouncedAt TimeOptional
IPO announced timestamp. When a null/undefined value is observed, it indicates that there is no available data.
Company stringOptional
IPO company name. When a null/undefined value is observed, it indicates that there is no available data.
Exchange stringOptional
IPO exchange. When a null/undefined value is observed, it indicates that there is no available data.
MarketCap stringOptional
IPO market cap. When a null/undefined value is observed, it indicates that there is no available data.
Name stringOptional
Instrument name associated with the event, when available. When a null/undefined value is observed, it indicates that there is no available data.
ReportingCurrency stringOptional
The currency used for reporting financial data. When a null/undefined value is observed, it indicates that there is no available data.
type InstrumentAnalystConsensus struct{…}
Aggregated analyst consensus metrics
Count of individual analyst recommendations by category When a null/undefined value is observed, it indicates that there is no available data.
Aggregated analyst price target statistics When a null/undefined value is observed, it indicates that there is no available data.
type InstrumentBalanceSheetStatement struct{…}
A quarterly balance sheet statement for an instrument.
PeriodType FiscalPeriodType
PeriodType FiscalPeriodType
type InstrumentCashFlowStatement struct{…}
A quarterly cash flow statement for an instrument.
PeriodType FiscalPeriodType
PeriodType FiscalPeriodType
type InstrumentDividendEvent struct{…}
Represents a dividend event for an instrument
DeclarationDate TimeOptional
The declaration date of the dividend When a null/undefined value is observed, it indicates that there is no available data.
DividendAmount stringOptional
The dividend amount per share. When a null/undefined value is observed, it indicates that there is no available data.
DividendYield stringOptional
The dividend yield as a percentage of the stock price. When a null/undefined value is observed, it indicates that there is no available data.
Frequency stringOptional
The frequency of the dividend payments (e.g., “Quarterly”, “Annual”). When a null/undefined value is observed, it indicates that there is no available data.
type InstrumentEarnings struct{…}
Represents instrument earnings data
EpsActual stringOptional
The actual earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
EpsEstimate stringOptional
The estimated earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
EpsSurprisePercent stringOptional
The percentage difference between actual and estimated EPS When a null/undefined value is observed, it indicates that there is no available data.
RevenueActual stringOptional
The actual total revenue for the period When a null/undefined value is observed, it indicates that there is no available data.
type InstrumentEventEnvelope struct{…}
Unified envelope for the all-events response.
Type AllEventsEventType
Dividend payload when type is DIVIDEND. When a null/undefined value is observed, it indicates it does not apply.
DeclarationDate TimeOptional
The declaration date of the dividend When a null/undefined value is observed, it indicates that there is no available data.
DividendAmount stringOptional
The dividend amount per share. When a null/undefined value is observed, it indicates that there is no available data.
DividendYield stringOptional
The dividend yield as a percentage of the stock price. When a null/undefined value is observed, it indicates that there is no available data.
Frequency stringOptional
The frequency of the dividend payments (e.g., “Quarterly”, “Annual”). When a null/undefined value is observed, it indicates that there is no available data.
Earnings payload when type is EARNINGS. When a null/undefined value is observed, it indicates it does not apply.
EpsActual stringOptional
The actual earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
EpsEstimate stringOptional
The estimated earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
EpsSurprisePercent stringOptional
The percentage difference between actual and estimated EPS When a null/undefined value is observed, it indicates that there is no available data.
RevenueActual stringOptional
The actual total revenue for the period When a null/undefined value is observed, it indicates that there is no available data.
InstrumentID stringOptional
Instrument identifier, when available. When a null/undefined value is observed, it indicates that there is no available data.
IPO payload when type is IPO. When a null/undefined value is observed, it indicates it does not apply.
Actions stringOptional
IPO action. When a null/undefined value is observed, it indicates that there is no available data.
AnnouncedAt TimeOptional
IPO announced timestamp. When a null/undefined value is observed, it indicates that there is no available data.
Company stringOptional
IPO company name. When a null/undefined value is observed, it indicates that there is no available data.
Exchange stringOptional
IPO exchange. When a null/undefined value is observed, it indicates that there is no available data.
MarketCap stringOptional
IPO market cap. When a null/undefined value is observed, it indicates that there is no available data.
Name stringOptional
Instrument name associated with the event, when available. When a null/undefined value is observed, it indicates that there is no available data.
ReportingCurrency stringOptional
The currency used for reporting financial data. When a null/undefined value is observed, it indicates that there is no available data.
type InstrumentEventIpoItem struct{…}
IPO event in the all-events date grouping response.
Actions stringOptional
IPO action. When a null/undefined value is observed, it indicates that there is no available data.
AnnouncedAt TimeOptional
IPO announced timestamp. When a null/undefined value is observed, it indicates that there is no available data.
Company stringOptional
IPO company name. When a null/undefined value is observed, it indicates that there is no available data.
Exchange stringOptional
IPO exchange. When a null/undefined value is observed, it indicates that there is no available data.
MarketCap stringOptional
IPO market cap. When a null/undefined value is observed, it indicates that there is no available data.
type InstrumentEventsByDate struct{…}
Instrument events for a single date.
Events []InstrumentEventEnvelope
Flat event envelopes for this date.
Type AllEventsEventType
Dividend payload when type is DIVIDEND. When a null/undefined value is observed, it indicates it does not apply.
DeclarationDate TimeOptional
The declaration date of the dividend When a null/undefined value is observed, it indicates that there is no available data.
DividendAmount stringOptional
The dividend amount per share. When a null/undefined value is observed, it indicates that there is no available data.
DividendYield stringOptional
The dividend yield as a percentage of the stock price. When a null/undefined value is observed, it indicates that there is no available data.
Frequency stringOptional
The frequency of the dividend payments (e.g., “Quarterly”, “Annual”). When a null/undefined value is observed, it indicates that there is no available data.
Earnings payload when type is EARNINGS. When a null/undefined value is observed, it indicates it does not apply.
EpsActual stringOptional
The actual earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
EpsEstimate stringOptional
The estimated earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
EpsSurprisePercent stringOptional
The percentage difference between actual and estimated EPS When a null/undefined value is observed, it indicates that there is no available data.
RevenueActual stringOptional
The actual total revenue for the period When a null/undefined value is observed, it indicates that there is no available data.
InstrumentID stringOptional
Instrument identifier, when available. When a null/undefined value is observed, it indicates that there is no available data.
IPO payload when type is IPO. When a null/undefined value is observed, it indicates it does not apply.
Actions stringOptional
IPO action. When a null/undefined value is observed, it indicates that there is no available data.
AnnouncedAt TimeOptional
IPO announced timestamp. When a null/undefined value is observed, it indicates that there is no available data.
Company stringOptional
IPO company name. When a null/undefined value is observed, it indicates that there is no available data.
Exchange stringOptional
IPO exchange. When a null/undefined value is observed, it indicates that there is no available data.
MarketCap stringOptional
IPO market cap. When a null/undefined value is observed, it indicates that there is no available data.
Name stringOptional
Instrument name associated with the event, when available. When a null/undefined value is observed, it indicates that there is no available data.
ReportingCurrency stringOptional
The currency used for reporting financial data. When a null/undefined value is observed, it indicates that there is no available data.
type InstrumentEventsData struct{…}
Grouped instrument events by type
Dividends []InstrumentDividendEvent
Dividend distribution events
DeclarationDate TimeOptional
The declaration date of the dividend When a null/undefined value is observed, it indicates that there is no available data.
DividendAmount stringOptional
The dividend amount per share. When a null/undefined value is observed, it indicates that there is no available data.
DividendYield stringOptional
The dividend yield as a percentage of the stock price. When a null/undefined value is observed, it indicates that there is no available data.
Frequency stringOptional
The frequency of the dividend payments (e.g., “Quarterly”, “Annual”). When a null/undefined value is observed, it indicates that there is no available data.
Earnings []InstrumentEarnings
Earnings announcement events
EpsActual stringOptional
The actual earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
EpsEstimate stringOptional
The estimated earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
EpsSurprisePercent stringOptional
The percentage difference between actual and estimated EPS When a null/undefined value is observed, it indicates that there is no available data.
RevenueActual stringOptional
The actual total revenue for the period When a null/undefined value is observed, it indicates that there is no available data.
Splits []InstrumentSplitEvent
type InstrumentFundamentals struct{…}
Supplemental fundamentals and company profile data for an instrument.
AverageVolume int64Optional
The average daily trading volume over the past 30 days When a null/undefined value is observed, it indicates that there is no available data.
Beta stringOptional
The beta value, measuring the instrument’s volatility relative to the overall market When a null/undefined value is observed, it indicates that there is no available data.
Description stringOptional
A detailed description of the instrument or company When a null/undefined value is observed, it indicates that there is no available data.
DividendYield stringOptional
The trailing twelve months (TTM) dividend yield When a null/undefined value is observed, it indicates that there is no available data.
EarningsPerShare stringOptional
The trailing twelve months (TTM) earnings per share When a null/undefined value is observed, it indicates that there is no available data.
FiftyTwoWeekHigh stringOptional
The highest price over the last 52 weeks When a null/undefined value is observed, it indicates that there is no available data.
FiftyTwoWeekLow stringOptional
The lowest price over the last 52 weeks When a null/undefined value is observed, it indicates that there is no available data.
Industry stringOptional
The specific industry of the instrument’s issuer When a null/undefined value is observed, it indicates that there is no available data.
ListDate TimeOptional
The date the instrument was first listed When a null/undefined value is observed, it indicates that there is no available data.
LogoURL stringOptional
URL to a representative logo image for the instrument or issuer When a null/undefined value is observed, it indicates that there is no available data.
MarketCap stringOptional
The total market capitalization When a null/undefined value is observed, it indicates that there is no available data.
PreviousClose stringOptional
The closing price from the previous trading day When a null/undefined value is observed, it indicates that there is no available data.
PriceToEarnings stringOptional
The price-to-earnings (P/E) ratio for the trailing twelve months (TTM) When a null/undefined value is observed, it indicates that there is no available data.
type InstrumentIncomeStatement struct{…}
A quarterly income statement for an instrument.
PeriodType FiscalPeriodType
PeriodType FiscalPeriodType
V1Instrument DataMarket Data
Retrieve instrument analytics, market data, news, and related reference data.
Get Snapshots
Get Daily Aggregate Summaries
ModelsExpand Collapse
type DailySummary struct{…}
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 fieldsNone(includingsymbol). - Resolvable
instrument_idwith no realtime cache entry →symbolpopulated, OHLV/trade_dateNone. trade_datereflects the session the OHLV represents (today during trading hours, the last trading date during weekends/holidays).
High stringOptional
Session high. When a null/undefined value is observed, it indicates that there is no available data.
Low stringOptional
Session low. When a null/undefined value is observed, it indicates that there is no available data.
Open stringOptional
Opening price for the session. When a null/undefined value is observed, it indicates that there is no available data.
Symbol stringOptional
Display symbol for the security. None for unresolvable IDs.
When a null/undefined value is observed, it indicates that there is no available data.
High stringOptional
Session high. When a null/undefined value is observed, it indicates that there is no available data.
Low stringOptional
Session low. When a null/undefined value is observed, it indicates that there is no available data.
Open stringOptional
Opening price for the session. When a null/undefined value is observed, it indicates that there is no available data.
Symbol stringOptional
Display symbol for the security. None for unresolvable IDs.
When a null/undefined value is observed, it indicates that there is no available data.
type MarketDataSnapshot struct{…}
Market data snapshot for a single security.
CumulativeVolume int64Optional
Cumulative traded volume reported on the most recent trade, in shares for equities or contracts for options. Absent when no trade is available. When a null/undefined value is observed, it indicates that there is no available data.
Theoretical price and Greeks for option instruments. None for
equities, and for options whose Greeks have not yet been observed
When a null/undefined value is observed, it indicates that there is no available data.
Most recent quote if available. When a null/undefined value is observed, it indicates that there is no available data.
Ask stringOptional
Current best ask. Absent when no ask is available (one-sided quote). When a null/undefined value is observed, it indicates that there is no available data.
AskSize int64Optional
Size at the best ask, in shares. When a null/undefined value is observed, it indicates that there is no available data.
Bid stringOptional
Current best bid. Absent when no bid is available (one-sided quote). When a null/undefined value is observed, it indicates that there is no available data.
Name stringOptional
Security name if available. When a null/undefined value is observed, it indicates that there is no available data.
CumulativeVolume int64Optional
Cumulative traded volume reported on the most recent trade, in shares for equities or contracts for options. Absent when no trade is available. When a null/undefined value is observed, it indicates that there is no available data.
Theoretical price and Greeks for option instruments. None for
equities, and for options whose Greeks have not yet been observed
When a null/undefined value is observed, it indicates that there is no available data.
Most recent quote if available. When a null/undefined value is observed, it indicates that there is no available data.
Ask stringOptional
Current best ask. Absent when no ask is available (one-sided quote). When a null/undefined value is observed, it indicates that there is no available data.
AskSize int64Optional
Size at the best ask, in shares. When a null/undefined value is observed, it indicates that there is no available data.
Bid stringOptional
Current best bid. Absent when no bid is available (one-sided quote). When a null/undefined value is observed, it indicates that there is no available data.
Name stringOptional
Security name if available. When a null/undefined value is observed, it indicates that there is no available data.
type SnapshotQuote struct{…}
L1 quote fields for a market data snapshot.
Ask stringOptional
Current best ask. Absent when no ask is available (one-sided quote). When a null/undefined value is observed, it indicates that there is no available data.
AskSize int64Optional
Size at the best ask, in shares. When a null/undefined value is observed, it indicates that there is no available data.
Bid stringOptional
Current best bid. Absent when no bid is available (one-sided quote). When a null/undefined value is observed, it indicates that there is no available data.
V1Instrument DataNews
Retrieve instrument analytics, market data, news, and related reference data.
Get News
ModelsExpand Collapse
type NewsItem struct{…}
A single news item and its associated instruments.
Instruments []NewsInstrument
NewsType NewsType
ImageURL stringOptional
URL of an associated image if provided by the source. When a null/undefined value is observed, it indicates that there is no available data.
Instruments []NewsInstrument
NewsType NewsType
ImageURL stringOptional
URL of an associated image if provided by the source. When a null/undefined value is observed, it indicates that there is no available data.
V1Instruments
Retrieve core details and discovery endpoints for tradable instruments.
Get Instruments
Get Instrument By ID
Search Instruments
Get Option Contracts
ModelsExpand Collapse
type Instrument struct{…}
Represents a tradable financial instrument.
IsPtp bool
Indicates if the instrument is a publicly traded partnership (PTP). PTP sales are subject to a 10% withholding tax for non-US tax residents.
IsThresholdSecurity bool
Indicates if the instrument is on the Regulation SHO Threshold Security List
Adv stringOptional
Average daily share volume from the security definition. When a null/undefined value is observed, it indicates that there is no available data.
DeprecatedExpiry TimeOptional
Deprecated. Always null. When a null/undefined value is observed, it indicates it does not apply.
LongMarginRate stringOptional
The percent of a long position’s value you must post as margin When a null/undefined value is observed, it indicates that there is no available data.
Name stringOptional
The full name of the instrument or its issuer When a null/undefined value is observed, it indicates that there is no available data.
NotionalAdv stringOptional
Notional average daily volume (ADV multiplied by previous close price). When a null/undefined value is observed, it indicates that there is no available data.
OptionsExpiryDates []TimeOptional
Available options expiration dates for this instrument.
Present only when include_options_expiry_dates=true in the request.
When a null/undefined value is observed, it indicates it does not apply.
PreviousClose stringOptional
Last close price from the security definition. When a null/undefined value is observed, it indicates that there is no available data.
type InstrumentCore struct{…}
IsPtp bool
Indicates if the instrument is a publicly traded partnership (PTP). PTP sales are subject to a 10% withholding tax for non-US tax residents.
IsThresholdSecurity bool
Indicates if the instrument is on the Regulation SHO Threshold Security List
Adv stringOptional
Average daily share volume from the security definition. When a null/undefined value is observed, it indicates that there is no available data.
DeprecatedExpiry TimeOptional
Deprecated. Always null. When a null/undefined value is observed, it indicates it does not apply.
LongMarginRate stringOptional
The percent of a long position’s value you must post as margin When a null/undefined value is observed, it indicates that there is no available data.
Name stringOptional
The full name of the instrument or its issuer When a null/undefined value is observed, it indicates that there is no available data.
NotionalAdv stringOptional
Notional average daily volume (ADV multiplied by previous close price). When a null/undefined value is observed, it indicates that there is no available data.
PreviousClose stringOptional
Last close price from the security definition. When a null/undefined value is observed, it indicates that there is no available data.
IsPtp bool
Indicates if the instrument is a publicly traded partnership (PTP). PTP sales are subject to a 10% withholding tax for non-US tax residents.
IsThresholdSecurity bool
Indicates if the instrument is on the Regulation SHO Threshold Security List
Adv stringOptional
Average daily share volume from the security definition. When a null/undefined value is observed, it indicates that there is no available data.
DeprecatedExpiry TimeOptional
Deprecated. Always null. When a null/undefined value is observed, it indicates it does not apply.
LongMarginRate stringOptional
The percent of a long position’s value you must post as margin When a null/undefined value is observed, it indicates that there is no available data.
Name stringOptional
The full name of the instrument or its issuer When a null/undefined value is observed, it indicates that there is no available data.
NotionalAdv stringOptional
Notional average daily volume (ADV multiplied by previous close price). When a null/undefined value is observed, it indicates that there is no available data.
PreviousClose stringOptional
Last close price from the security definition. When a null/undefined value is observed, it indicates that there is no available data.
type OptionsContract struct{…}
An options contract with options-specific metadata
ContractType ContractType
ExerciseStyle ExerciseStyle
ListingType ListingType
ContractType ContractType
ExerciseStyle ExerciseStyle
ListingType ListingType
V1Omni AI
ModelsExpand Collapse
type ContentPartChartPayload struct{…}
Chart payload content part.
Payload ChartPayload
type ContentPartStructuredActionPayload struct{…}
Structured action content part.
Action StructuredActionUnion
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.
type StructuredActionPrefillOrder struct{…}
Prefill an order ticket for user confirmation
PrefillOrder PrefillOrderActionUnion
type StructuredActionOpenChart struct{…}
Open a chart for a symbol
OpenChart OpenChartAction
type StructuredActionOpenScreener struct{…}
Open a stock screener with filters
OpenScreener OpenScreenerAction
Open a stock screener with filters
Filters []ScreenerFilter
Columns []stringOptional
Optional field/column selection for screener results. When a null/undefined value is observed, it indicates it does not apply.
PageSize int64Optional
Optional page size. When a null/undefined value is observed, it indicates it does not apply.
type StructuredActionOpenEntitlementConsent struct{…}
Open entitlement consent flow
OpenEntitlementConsent OpenEntitlementConsentAction
Open entitlement consent flow
AgreementKey EntitlementAgreementKey
Stable entitlement agreement family key.
type ContentPartSuggestedActionsPayload struct{…}
Suggested actions payload content part.
Payload SuggestedActionsPayload
type OpenEntitlementConsentAction struct{…}
Action to open entitlement consent flow for one or more accounts.
AgreementKey EntitlementAgreementKey
Stable entitlement agreement family key.
type OpenScreenerAction struct{…}
Action to open a stock screener with filters.
Filters []ScreenerFilter
Columns []stringOptional
Optional field/column selection for screener results. When a null/undefined value is observed, it indicates it does not apply.
PageSize int64Optional
Optional page size. When a null/undefined value is observed, it indicates it does not apply.
type PrefillCancelOrderAction struct{…}
Cancel-order prefill action.
Orders []CancelOrderRequest
type PrefillNewOrderAction struct{…}
New-order prefill action.
Orders []NewOrderRequest
Orders to prefill using the same shape accepted by the orders API.
OrderType RequestOrderType
Quantity string
Quantity to trade. For COMMON_STOCK: shares (may be fractional if supported). For OPTION (single-leg): contracts (must be an integer)
Side Side
TimeInForce RequestTimeInForce
ID stringOptional
Optional client-provided unique ID (idempotency). Required to be unique per account.
ExpiresAt TimeOptional
The timestamp when the order should expire (UTC). Required when time_in_force is GOOD_TILL_DATE.
ExtendedHours boolOptional
Allow trading outside regular trading hours. Some brokers disallow options outside RTH.
Symbol stringOptional
Trading symbol. For equities, use the ticker symbol (e.g., “TSLA”).
For options, use the OSI symbol (e.g., “TSLA 250117C00190000”).
Either symbol or instrument_id must be provided.
type PrefillOrderActionUnion interface{…}
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.
type StructuredActionUnion interface{…}
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.
type StructuredActionPrefillOrder struct{…}
Prefill an order ticket for user confirmation
PrefillOrder PrefillOrderActionUnion
type StructuredActionOpenChart struct{…}
Open a chart for a symbol
OpenChart OpenChartAction
type StructuredActionOpenScreener struct{…}
Open a stock screener with filters
OpenScreener OpenScreenerAction
Open a stock screener with filters
Filters []ScreenerFilter
Columns []stringOptional
Optional field/column selection for screener results. When a null/undefined value is observed, it indicates it does not apply.
PageSize int64Optional
Optional page size. When a null/undefined value is observed, it indicates it does not apply.
type StructuredActionOpenEntitlementConsent struct{…}
Open entitlement consent flow
OpenEntitlementConsent OpenEntitlementConsentAction
Open entitlement consent flow
AgreementKey EntitlementAgreementKey
Stable entitlement agreement family key.
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 account_ids.
Get Entitlements
Create Entitlements
Delete Entitlement
Get Entitlement Agreements
ModelsExpand Collapse
type EntitlementAgreementResource struct{…}
AgreementKey EntitlementAgreementKey
Stable entitlement agreement family key.
AgreementKey EntitlementAgreementKey
Stable entitlement agreement family key.
type EntitlementResource struct{…}
EntitlementCode EntitlementCode
Stable entitlement code granted by an agreement.
EntitlementCode EntitlementCode
Stable entitlement code granted by an agreement.
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 account_ids.
Get Message By ID
Submit Feedback
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 account_ids.
Get Response By ID
Cancel Response
ModelsExpand Collapse
type Response struct{…}
Dynamic pollable response.
Status ResponseStatus
When a null/undefined value is observed, it indicates that there is no available data.
Parts []ResponseContentPartUnion
type ResponseContent struct{…}
Dynamic response content container. May include thinking parts.
Parts []ResponseContentPartUnion
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 account_ids.
Get Threads
Get Thread By ID
Create Thread
Get Thread Response
Get Messages
Create Message
ModelsExpand Collapse
type Message struct{…}
Final immutable message.
Content MessageContent
Finalized immutable message content container. Never includes thinking parts.
Parts []MessageContentPartUnion
Outcome MessageOutcome
Role MessageRole
type MessageContent struct{…}
Finalized immutable message content container. Never includes thinking parts.
Parts []MessageContentPartUnion
Content MessageContent
Finalized immutable message content container. Never includes thinking parts.
Parts []MessageContentPartUnion
Outcome MessageOutcome
Role MessageRole
V1Orders
Place, monitor, and manage trading orders.
Get Orders
Get Order By ID
Submit Orders
Replace Order
Cancel Open Order
Cancel All Open Orders
Get Executions
ModelsExpand Collapse
type Execution struct{…}
Represents a single fill of an order for an account.
Side Side
Side Side
type NewOrderRequest struct{…}
Request to submit a new order (PlaceOrderRequest from spec)
OrderType RequestOrderType
Quantity string
Quantity to trade. For COMMON_STOCK: shares (may be fractional if supported). For OPTION (single-leg): contracts (must be an integer)
Side Side
TimeInForce RequestTimeInForce
ID stringOptional
Optional client-provided unique ID (idempotency). Required to be unique per account.
ExpiresAt TimeOptional
The timestamp when the order should expire (UTC). Required when time_in_force is GOOD_TILL_DATE.
ExtendedHours boolOptional
Allow trading outside regular trading hours. Some brokers disallow options outside RTH.
Symbol stringOptional
Trading symbol. For equities, use the ticker symbol (e.g., “TSLA”).
For options, use the OSI symbol (e.g., “TSLA 250117C00190000”).
Either symbol or instrument_id must be provided.
type Order struct{…}
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.
InstrumentType SecurityType
OrderType OrderType
Side Side
Status OrderStatus
TimeInForce TimeInForce
AverageFillPrice stringOptional
Average fill price across all executions When a null/undefined value is observed, it indicates that there is no available data.
ExpiresAt TimeOptional
Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE. When a null/undefined value is observed, it indicates it does not apply.
LimitOffset stringOptional
Limit offset for trailing stop-limit orders (signed) When a null/undefined value is observed, it indicates it does not apply.
LimitPrice stringOptional
Limit price (for LIMIT and STOP_LIMIT orders) When a null/undefined value is observed, it indicates it does not apply.
ReleasesAt TimeOptional
Scheduled release time for orders awaiting release. When a null/undefined value is observed, it indicates it does not apply.
StopPrice stringOptional
Stop price (for STOP and STOP_LIMIT orders) When a null/undefined value is observed, it indicates it does not apply.
TrailingLimitPx stringOptional
Current trailing limit price computed by the trailing strategy When a null/undefined value is observed, it indicates it does not apply.
TrailingOffset stringOptional
Trailing offset amount for trailing orders When a null/undefined value is observed, it indicates it does not apply.
TrailingStopPx stringOptional
Current trailing stop price computed by the trailing strategy When a null/undefined value is observed, it indicates it does not apply.
TrailingWatermarkPx stringOptional
Trailing watermark price for trailing orders When a null/undefined value is observed, it indicates it does not apply.
TrailingWatermarkTs TimeOptional
Trailing watermark timestamp for trailing orders When a null/undefined value is observed, it indicates it does not apply.
UnderlyingInstrumentID stringOptional
Instrument ID of the option’s underlying instrument. Populated only for
options orders. A null means one of two things: the order is not an
option, so the field does not apply; or the order is an option whose
underlier has not yet been resolved.
When a null/undefined value is observed, it indicates it does not apply.
InstrumentType SecurityType
OrderType OrderType
Side Side
Status OrderStatus
TimeInForce TimeInForce
AverageFillPrice stringOptional
Average fill price across all executions When a null/undefined value is observed, it indicates that there is no available data.
ExpiresAt TimeOptional
Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE. When a null/undefined value is observed, it indicates it does not apply.
LimitOffset stringOptional
Limit offset for trailing stop-limit orders (signed) When a null/undefined value is observed, it indicates it does not apply.
LimitPrice stringOptional
Limit price (for LIMIT and STOP_LIMIT orders) When a null/undefined value is observed, it indicates it does not apply.
ReleasesAt TimeOptional
Scheduled release time for orders awaiting release. When a null/undefined value is observed, it indicates it does not apply.
StopPrice stringOptional
Stop price (for STOP and STOP_LIMIT orders) When a null/undefined value is observed, it indicates it does not apply.
TrailingLimitPx stringOptional
Current trailing limit price computed by the trailing strategy When a null/undefined value is observed, it indicates it does not apply.
TrailingOffset stringOptional
Trailing offset amount for trailing orders When a null/undefined value is observed, it indicates it does not apply.
TrailingStopPx stringOptional
Current trailing stop price computed by the trailing strategy When a null/undefined value is observed, it indicates it does not apply.
TrailingWatermarkPx stringOptional
Trailing watermark price for trailing orders When a null/undefined value is observed, it indicates it does not apply.
TrailingWatermarkTs TimeOptional
Trailing watermark timestamp for trailing orders When a null/undefined value is observed, it indicates it does not apply.
UnderlyingInstrumentID stringOptional
Instrument ID of the option’s underlying instrument. Populated only for
options orders. A null means one of two things: the order is not an
option, so the field does not apply; or the order is an option whose
underlier has not yet been resolved.
When a null/undefined value is observed, it indicates it does not apply.
V1Positions
View positions and manage position instructions.
Get Positions
Close Positions
Close Position
Get Position Instructions
Submit Position Instructions
Cancel Position Instruction
ModelsExpand Collapse
type Position struct{…}
Represents a holding of a particular instrument in an account
InstrumentType SecurityType
PositionType PositionType
AvgPrice stringOptional
The average price paid per share or contract for this position When a null/undefined value is observed, it indicates that there is no available data.
ClosingPrice stringOptional
The closing price used to value the position for the last trading day When a null/undefined value is observed, it indicates that there is no available data.
ClosingPriceDate TimeOptional
The market date associated with closing_price
When a null/undefined value is observed, it indicates that there is no available data.
CostBasis stringOptional
The total cost basis for this position When a null/undefined value is observed, it indicates that there is no available data.
DailyRealizedPnl stringOptional
The realized profit or loss for this position for the current day When a null/undefined value is observed, it indicates that there is no available data.
DailyUnrealizedPnl stringOptional
The unrealized profit or loss for this position relative to the previous close When a null/undefined value is observed, it indicates that there is no available data.
DailyUnrealizedPnlPct stringOptional
The unrealized profit/loss for the position for the current day, expressed as a percentage of the baseline value (range: 0-100). When a null/undefined value is observed, it indicates that there is no available data.
InstrumentPrice stringOptional
The current market price of the instrument When a null/undefined value is observed, it indicates that there is no available data.
UnderlyingInstrumentID stringOptional
Identifier of the underlying instrument, when available When a null/undefined value is observed, it indicates it does not apply.
type PositionInstruction struct{…}
A position instruction and its current lifecycle state.
InstructionID string
Caller-supplied idempotency key echoed from the submit request; the server-assigned fallback when none was supplied.
InstructionType PositionInstructionType
Status PositionInstructionStatus
AcceptedQuantity stringOptional
Number of contracts accepted by the clearing venue. Populated once
the instruction reaches ACCEPTED.
When a null/undefined value is observed, it indicates that there is no available data.
CreatedAt TimeOptional
When the instruction was first accepted by the service. When a null/undefined value is observed, it indicates that there is no available data.
RejectionReason stringOptional
Human-readable explanation populated on any non-success terminal
status — 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.
When a null/undefined value is observed, it indicates it does not apply.
InstructionID string
Caller-supplied idempotency key echoed from the submit request; the server-assigned fallback when none was supplied.
InstructionType PositionInstructionType
Status PositionInstructionStatus
AcceptedQuantity stringOptional
Number of contracts accepted by the clearing venue. Populated once
the instruction reaches ACCEPTED.
When a null/undefined value is observed, it indicates that there is no available data.
CreatedAt TimeOptional
When the instruction was first accepted by the service. When a null/undefined value is observed, it indicates that there is no available data.
RejectionReason stringOptional
Human-readable explanation populated on any non-success terminal
status — 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.
When a null/undefined value is observed, it indicates it does not apply.
type PositionInstructionStatus string
Lifecycle status of a position instruction.
SENT: accepted and submitted to the clearing venue.ACCEPTED: terminal — accepted by the clearing venue.REJECTED: terminal rejection;rejection_reasoncarries the detail. Covers both venue-reported rejections and rejections raised before the instruction reached the clearing venue (e.g. duplicateinstruction_id,DO_NOT_EXERCISE/CONTRARY_EXERCISEsubmitted on a non-expiry day, insufficient position, or an instrument that does not resolve).CANCEL_REQUESTED: cancel accepted; final cancel state pending.CANCELLED: terminal — cancel completed.CANCEL_FAILED: cancel could not be completed; operator attention required.rejection_reasoncarries the detail.UNKNOWN: status could not be determined.
InstrumentType SecurityType
PositionType PositionType
AvgPrice stringOptional
The average price paid per share or contract for this position When a null/undefined value is observed, it indicates that there is no available data.
ClosingPrice stringOptional
The closing price used to value the position for the last trading day When a null/undefined value is observed, it indicates that there is no available data.
ClosingPriceDate TimeOptional
The market date associated with closing_price
When a null/undefined value is observed, it indicates that there is no available data.
CostBasis stringOptional
The total cost basis for this position When a null/undefined value is observed, it indicates that there is no available data.
DailyRealizedPnl stringOptional
The realized profit or loss for this position for the current day When a null/undefined value is observed, it indicates that there is no available data.
DailyUnrealizedPnl stringOptional
The unrealized profit or loss for this position relative to the previous close When a null/undefined value is observed, it indicates that there is no available data.
DailyUnrealizedPnlPct stringOptional
The unrealized profit/loss for the position for the current day, expressed as a percentage of the baseline value (range: 0-100). When a null/undefined value is observed, it indicates that there is no available data.
InstrumentPrice stringOptional
The current market price of the instrument When a null/undefined value is observed, it indicates that there is no available data.
UnderlyingInstrumentID stringOptional
Identifier of the underlying instrument, when available When a null/undefined value is observed, it indicates it does not apply.
V1Screener
Search instruments and manage saved screeners.
Search Screener
Get Screeners
Get Screener By ID
Create Screener
Replace Screener
Delete Screener
ModelsExpand Collapse
type FilterOpSpec struct{…}
Operator specification with optional behavioral arguments.
Name FilterOperator
type FilterValue struct{…}
A filter value: either a literal or a variable reference.
A variable reference.
Optional arithmetic modifier.
Name ModifierOp
type Modifier struct{…}
Arithmetic modifier applied to a variable value.
Name ModifierOp
type ScreenerColumn struct{…}
A single column in the screener search response.
Field FieldRef
type ScreenerEntry struct{…}
A saved screener configuration entry
Filters []SearchFilter
Left FieldRef
The operator and optional arguments. Omit together with right for an unenabled filter.
Name FilterOperator
The value(s) to compare against. Omit together with op for an unenabled filter.
A variable reference.
Optional arithmetic modifier.
Name ModifierOp
Field FieldRef
Filters []SearchFilter
Left FieldRef
The operator and optional arguments. Omit together with right for an unenabled filter.
Name FilterOperator
The value(s) to compare against. Omit together with op for an unenabled filter.
A variable reference.
Optional arithmetic modifier.
Name ModifierOp
Field FieldRef
A single row of screener columns for one instrument.
Field FieldRef
Field FieldRef
type SearchFilter struct{…}
A single filter condition.
When op and right are both absent, the filter is “unenabled”:
it persists a left field reference without applying any predicate.
Unenabled filters are skipped during search execution but still
round-trip through save/load so callers can preserve draft state.
Left FieldRef
The operator and optional arguments. Omit together with right for an unenabled filter.
Name FilterOperator
The value(s) to compare against. Omit together with op for an unenabled filter.
A variable reference.
Optional arithmetic modifier.
Name ModifierOp
type SortSpec struct{…}
A sort specification pairing a field with a direction.
Field FieldRef
type Variable struct{…}
A variable reference (field or built-in like today).
Optional arithmetic modifier.
Name ModifierOp
V1Watchlist
Create and manage watchlists.
Get Watchlists
Get Watchlist By ID
Create Watchlist
Delete Watchlist
Add Watchlist Item
Delete Watchlist Item
ModelsExpand Collapse
type WatchlistDetail struct{…}
Detailed watchlist with all items
Items []WatchlistItemEntry
Items in the watchlist
AddedPrice stringOptional
Price when the item was added When a null/undefined value is observed, it indicates that there is no available data.
Instrument details When a null/undefined value is observed, it indicates that there is no available data.
IsPtp bool
Indicates if the instrument is a publicly traded partnership (PTP). PTP sales are subject to a 10% withholding tax for non-US tax residents.
IsThresholdSecurity bool
Indicates if the instrument is on the Regulation SHO Threshold Security List
Adv stringOptional
Average daily share volume from the security definition. When a null/undefined value is observed, it indicates that there is no available data.
DeprecatedExpiry TimeOptional
Deprecated. Always null. When a null/undefined value is observed, it indicates it does not apply.
LongMarginRate stringOptional
The percent of a long position’s value you must post as margin When a null/undefined value is observed, it indicates that there is no available data.
Name stringOptional
The full name of the instrument or its issuer When a null/undefined value is observed, it indicates that there is no available data.
NotionalAdv stringOptional
Notional average daily volume (ADV multiplied by previous close price). When a null/undefined value is observed, it indicates that there is no available data.
OptionsExpiryDates []TimeOptional
Available options expiration dates for this instrument.
Present only when include_options_expiry_dates=true in the request.
When a null/undefined value is observed, it indicates it does not apply.
PreviousClose stringOptional
Last close price from the security definition. When a null/undefined value is observed, it indicates that there is no available data.
type WatchlistItemEntry struct{…}
A single item in a watchlist
AddedPrice stringOptional
Price when the item was added When a null/undefined value is observed, it indicates that there is no available data.
Instrument details When a null/undefined value is observed, it indicates that there is no available data.
IsPtp bool
Indicates if the instrument is a publicly traded partnership (PTP). PTP sales are subject to a 10% withholding tax for non-US tax residents.
IsThresholdSecurity bool
Indicates if the instrument is on the Regulation SHO Threshold Security List
Adv stringOptional
Average daily share volume from the security definition. When a null/undefined value is observed, it indicates that there is no available data.
DeprecatedExpiry TimeOptional
Deprecated. Always null. When a null/undefined value is observed, it indicates it does not apply.
LongMarginRate stringOptional
The percent of a long position’s value you must post as margin When a null/undefined value is observed, it indicates that there is no available data.
Name stringOptional
The full name of the instrument or its issuer When a null/undefined value is observed, it indicates that there is no available data.
NotionalAdv stringOptional
Notional average daily volume (ADV multiplied by previous close price). When a null/undefined value is observed, it indicates that there is no available data.
OptionsExpiryDates []TimeOptional
Available options expiration dates for this instrument.
Present only when include_options_expiry_dates=true in the request.
When a null/undefined value is observed, it indicates it does not apply.
PreviousClose stringOptional
Last close price from the security definition. When a null/undefined value is observed, it indicates that there is no available data.