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
class Account:
Represents a trading account
class AccountBalances:
Represents the balance details for a trading account
String dailyUnrealizedPnl
Total unrealized profit or loss across all positions relative to prior close.
MarginType marginType
The applicable margin model for the account
Start-of-day snapshot balances.
Optional<LocalDate> asof
Timestamp for the start-of-day values. When a null/undefined value is observed, it indicates that there is no available data.
DeprecatedOptional<String> dayTradeBuyingPower
Start-of-day day-trade buying power. When a null/undefined value is observed, it indicates it does not apply.
Optional<String> maintenanceMarginExcess
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.
Deprecatedlong dayTradeCount
The number of day trades executed over the 5 most recent trading days.
MarginSessionDetails intradayDetails
MarginSessionDetails overnightDetails
Deprecatedboolean patternDayTrader
true if the account is currently flagged as a PDT, otherwise false.
DeprecatedOptional<String> dayTradeBuyingPowerUsage
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.
class AccountBalancesSod:
Optional<LocalDate> asof
Timestamp for the start-of-day values. When a null/undefined value is observed, it indicates that there is no available data.
DeprecatedOptional<String> dayTradeBuyingPower
Start-of-day day-trade buying power. When a null/undefined value is observed, it indicates it does not apply.
Optional<String> maintenanceMarginExcess
Start-of-day maintenance margin excess. When a null/undefined value is observed, it indicates it does not apply.
class MarginDetails:
Deprecatedlong dayTradeCount
The number of day trades executed over the 5 most recent trading days.
MarginSessionDetails intradayDetails
MarginSessionDetails overnightDetails
Deprecatedboolean patternDayTrader
true if the account is currently flagged as a PDT, otherwise false.
DeprecatedOptional<String> dayTradeBuyingPowerUsage
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.
class PortfolioHistoryResponse:
List<PortfolioHistorySegment> segments
Optional<String> dayPnl
Sum of the profit and loss from intraday trading activities for the trading day.
Optional<String> netPnl
P&L after netting all realized and unrealized P&L, adjustments, dividends, change in accruals, income and expenses
class PortfolioHistorySegment:
Optional<String> dayPnl
Sum of the profit and loss from intraday trading activities for the trading day.
Optional<String> netPnl
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 Clock
Get Market Hours Calendar.
ModelsExpand Collapse
class MarketHoursDetail:
Comprehensive market hours information for a specific market and date
MarketType market
TradingSessions nextSessions
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.
MarketStatus status
Market status information
DayType dayType
TradingSessions todaySessions
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.
class MarketStatus:
Market status information
DayType dayType
class TradingSessions:
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
class InstrumentAllEventsData:
All-events payload grouped by date.
List<InstrumentEventsByDate> eventDates
Events grouped by date in descending order.
List<InstrumentEventEnvelope> events
Flat event envelopes for this date.
AllEventsEventType type
Dividend payload when type is DIVIDEND. When a null/undefined value is observed, it indicates it does not apply.
LocalDate exDate
The day the stock starts trading without the right to receive that dividend.
Optional<LocalDate> declarationDate
The declaration date of the dividend When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> dividendAmount
The dividend amount per share. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> dividendYield
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.
Optional<String> frequency
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.
Optional<String> epsActual
The actual earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> epsEstimate
The estimated earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> epsSurprisePercent
The percentage difference between actual and estimated EPS When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> revenueActual
The actual total revenue for the period When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> instrumentId
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.
Optional<String> actions
IPO action. When a null/undefined value is observed, it indicates that there is no available data.
Optional<LocalDateTime> announcedAt
IPO announced timestamp. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> company
IPO company name. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> exchange
IPO exchange. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> marketCap
IPO market cap. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> name
Instrument name associated with the event, when available. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> reportingCurrency
The currency used for reporting financial data. When a null/undefined value is observed, it indicates that there is no available data.
class InstrumentAnalystConsensus:
Aggregated analyst consensus metrics
class InstrumentBalanceSheetStatement:
A quarterly balance sheet statement for an instrument.
FiscalPeriodType periodType
class InstrumentCashFlowStatement:
A quarterly cash flow statement for an instrument.
FiscalPeriodType periodType
class InstrumentDividendEvent:
Represents a dividend event for an instrument
LocalDate exDate
The day the stock starts trading without the right to receive that dividend.
Optional<LocalDate> declarationDate
The declaration date of the dividend When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> dividendAmount
The dividend amount per share. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> dividendYield
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.
Optional<String> frequency
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.
class InstrumentEarnings:
Represents instrument earnings data
Optional<String> epsActual
The actual earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> epsEstimate
The estimated earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> epsSurprisePercent
The percentage difference between actual and estimated EPS When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> revenueActual
The actual total revenue for the period When a null/undefined value is observed, it indicates that there is no available data.
class InstrumentEventEnvelope:
Unified envelope for the all-events response.
AllEventsEventType type
Dividend payload when type is DIVIDEND. When a null/undefined value is observed, it indicates it does not apply.
LocalDate exDate
The day the stock starts trading without the right to receive that dividend.
Optional<LocalDate> declarationDate
The declaration date of the dividend When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> dividendAmount
The dividend amount per share. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> dividendYield
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.
Optional<String> frequency
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.
Optional<String> epsActual
The actual earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> epsEstimate
The estimated earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> epsSurprisePercent
The percentage difference between actual and estimated EPS When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> revenueActual
The actual total revenue for the period When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> instrumentId
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.
Optional<String> actions
IPO action. When a null/undefined value is observed, it indicates that there is no available data.
Optional<LocalDateTime> announcedAt
IPO announced timestamp. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> company
IPO company name. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> exchange
IPO exchange. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> marketCap
IPO market cap. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> name
Instrument name associated with the event, when available. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> reportingCurrency
The currency used for reporting financial data. When a null/undefined value is observed, it indicates that there is no available data.
class InstrumentEventIpoItem:
IPO event in the all-events date grouping response.
Optional<String> actions
IPO action. When a null/undefined value is observed, it indicates that there is no available data.
Optional<LocalDateTime> announcedAt
IPO announced timestamp. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> company
IPO company name. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> exchange
IPO exchange. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> marketCap
IPO market cap. When a null/undefined value is observed, it indicates that there is no available data.
class InstrumentEventsByDate:
Instrument events for a single date.
List<InstrumentEventEnvelope> events
Flat event envelopes for this date.
AllEventsEventType type
Dividend payload when type is DIVIDEND. When a null/undefined value is observed, it indicates it does not apply.
LocalDate exDate
The day the stock starts trading without the right to receive that dividend.
Optional<LocalDate> declarationDate
The declaration date of the dividend When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> dividendAmount
The dividend amount per share. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> dividendYield
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.
Optional<String> frequency
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.
Optional<String> epsActual
The actual earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> epsEstimate
The estimated earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> epsSurprisePercent
The percentage difference between actual and estimated EPS When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> revenueActual
The actual total revenue for the period When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> instrumentId
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.
Optional<String> actions
IPO action. When a null/undefined value is observed, it indicates that there is no available data.
Optional<LocalDateTime> announcedAt
IPO announced timestamp. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> company
IPO company name. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> exchange
IPO exchange. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> marketCap
IPO market cap. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> name
Instrument name associated with the event, when available. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> reportingCurrency
The currency used for reporting financial data. When a null/undefined value is observed, it indicates that there is no available data.
class InstrumentEventsData:
Grouped instrument events by type
List<InstrumentDividendEvent> dividends
Dividend distribution events
LocalDate exDate
The day the stock starts trading without the right to receive that dividend.
Optional<LocalDate> declarationDate
The declaration date of the dividend When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> dividendAmount
The dividend amount per share. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> dividendYield
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.
Optional<String> frequency
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.
List<InstrumentEarnings> earnings
Earnings announcement events
Optional<String> epsActual
The actual earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> epsEstimate
The estimated earnings per share (EPS) for the period When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> epsSurprisePercent
The percentage difference between actual and estimated EPS When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> revenueActual
The actual total revenue for the period When a null/undefined value is observed, it indicates that there is no available data.
List<InstrumentSplitEvent> splits
class InstrumentFundamentals:
Supplemental fundamentals and company profile data for an instrument.
Optional<Long> averageVolume
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.
Optional<String> beta
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.
Optional<String> description
A detailed description of the instrument or company When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> dividendYield
The trailing twelve months (TTM) dividend yield When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> earningsPerShare
The trailing twelve months (TTM) earnings per share When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> fiftyTwoWeekHigh
The highest price over the last 52 weeks When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> fiftyTwoWeekLow
The lowest price over the last 52 weeks When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> industry
The specific industry of the instrument’s issuer When a null/undefined value is observed, it indicates that there is no available data.
Optional<LocalDate> listDate
The date the instrument was first listed When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> logoUrl
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.
Optional<String> marketCap
The total market capitalization When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> previousClose
The closing price from the previous trading day When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> priceToEarnings
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.
class InstrumentIncomeStatement:
A quarterly income statement for an instrument.
FiscalPeriodType periodType
V1Instrument DataMarket Data
Retrieve instrument analytics, market data, news, and related reference data.
Get Snapshots
Get Daily Aggregate Summaries
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 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).
Optional<String> high
Session high. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> low
Session low. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> open
Opening price for the session. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> symbol
Display symbol for the security. None for unresolvable IDs.
When a null/undefined value is observed, it indicates that there is no available data.
class MarketDataSnapshot:
Market data snapshot for a single security.
Optional<Long> cumulativeVolume
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.
Optional<String> ask
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.
Optional<Long> askSize
Size at the best ask, in shares. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> bid
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.
Optional<String> name
Security name if available. When a null/undefined value is observed, it indicates that there is no available data.
class SnapshotQuote:
L1 quote fields for a market data snapshot.
Optional<String> ask
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.
Optional<Long> askSize
Size at the best ask, in shares. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> bid
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
class NewsItem:
A single news item and its associated instruments.
List<NewsInstrument> instruments
NewsType newsType
Optional<String> imageUrl
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
class Instrument:
Represents a tradable financial instrument.
boolean isPtp
Indicates if the instrument is a publicly traded partnership (PTP). PTP sales are subject to a 10% withholding tax for non-US tax residents.
boolean isThresholdSecurity
Indicates if the instrument is on the Regulation SHO Threshold Security List
Optional<String> adv
Average daily share volume from the security definition. When a null/undefined value is observed, it indicates that there is no available data.
DeprecatedOptional<LocalDate> expiry
Deprecated. Always null. When a null/undefined value is observed, it indicates it does not apply.
Optional<String> longMarginRate
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.
Optional<String> name
The full name of the instrument or its issuer When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> notionalAdv
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.
Optional<List<LocalDate>> optionsExpiryDates
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.
Optional<String> previousClose
Last close price from the security definition. When a null/undefined value is observed, it indicates that there is no available data.
class InstrumentCore:
boolean isPtp
Indicates if the instrument is a publicly traded partnership (PTP). PTP sales are subject to a 10% withholding tax for non-US tax residents.
boolean isThresholdSecurity
Indicates if the instrument is on the Regulation SHO Threshold Security List
Optional<String> adv
Average daily share volume from the security definition. When a null/undefined value is observed, it indicates that there is no available data.
DeprecatedOptional<LocalDate> expiry
Deprecated. Always null. When a null/undefined value is observed, it indicates it does not apply.
Optional<String> longMarginRate
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.
Optional<String> name
The full name of the instrument or its issuer When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> notionalAdv
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.
Optional<String> previousClose
Last close price from the security definition. When a null/undefined value is observed, it indicates that there is no available data.
class OptionsContract:
An options contract with options-specific metadata
ContractType contractType
ExerciseStyle exerciseStyle
ListingType listingType
V1Omni AI
ModelsExpand Collapse
class ChartPayload:
Typed chart payload rendered inline in assistant content.
class ContentPartChartPayload:
Chart payload content part.
ChartPayload payload
Typed chart payload rendered inline in assistant content.
class ContentPartStructuredActionPayload:
Structured action content part.
StructuredAction action
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.
PrefillOrder
PrefillOrderAction prefillOrder
OpenChart
OpenChartAction openChart
OpenScreener
OpenScreenerAction openScreener
Open a stock screener with filters
List<ScreenerFilter> filters
Optional<List<String>> columns
Optional field/column selection for screener results. When a null/undefined value is observed, it indicates it does not apply.
Optional<Long> pageSize
Optional page size. When a null/undefined value is observed, it indicates it does not apply.
OpenEntitlementConsent
OpenEntitlementConsentAction openEntitlementConsent
Open entitlement consent flow
EntitlementAgreementKey agreementKey
Stable entitlement agreement family key.
class ContentPartSuggestedActionsPayload:
Suggested actions payload content part.
SuggestedActionsPayload payload
class OpenEntitlementConsentAction:
Action to open entitlement consent flow for one or more accounts.
EntitlementAgreementKey agreementKey
Stable entitlement agreement family key.
class OpenScreenerAction:
Action to open a stock screener with filters.
List<ScreenerFilter> filters
Optional<List<String>> columns
Optional field/column selection for screener results. When a null/undefined value is observed, it indicates it does not apply.
Optional<Long> pageSize
Optional page size. When a null/undefined value is observed, it indicates it does not apply.
class PrefillCancelOrderAction:
Cancel-order prefill action.
List<CancelOrderRequest> orders
class PrefillNewOrderAction:
New-order prefill action.
List<NewOrderRequest> orders
Orders to prefill using the same shape accepted by the orders API.
RequestOrderType orderType
String quantity
Quantity to trade. For COMMON_STOCK: shares (may be fractional if supported). For OPTION (single-leg): contracts (must be an integer)
Side side
RequestTimeInForce timeInForce
Time in force
Optional<String> id
Optional client-provided unique ID (idempotency). Required to be unique per account.
Optional<LocalDateTime> expiresAt
The timestamp when the order should expire (UTC). Required when time_in_force is GOOD_TILL_DATE.
Optional<Boolean> extendedHours
Allow trading outside regular trading hours. Some brokers disallow options outside RTH.
Optional<String> symbol
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.
class PrefillOrderAction: A class that can be one of several variants.union
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.
class StructuredAction: A class that can be one of several variants.union
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.
PrefillOrder
PrefillOrderAction prefillOrder
OpenChart
OpenChartAction openChart
OpenScreener
OpenScreenerAction openScreener
Open a stock screener with filters
List<ScreenerFilter> filters
Optional<List<String>> columns
Optional field/column selection for screener results. When a null/undefined value is observed, it indicates it does not apply.
Optional<Long> pageSize
Optional page size. When a null/undefined value is observed, it indicates it does not apply.
OpenEntitlementConsent
OpenEntitlementConsentAction openEntitlementConsent
Open entitlement consent flow
EntitlementAgreementKey agreementKey
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
class EntitlementAgreementResource:
EntitlementAgreementKey agreementKey
Stable entitlement agreement family key.
class EntitlementResource:
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
class Response:
Dynamic pollable response.
ResponseStatus status
When a null/undefined value is observed, it indicates that there is no available data.
List<ResponseContentPart> parts
class ResponseContent:
Dynamic response content container. May include thinking parts.
List<ResponseContentPart> parts
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
class Message:
Final immutable message.
MessageContent content
Finalized immutable message content container. Never includes thinking parts.
List<MessageContentPart> parts
MessageOutcome outcome
MessageRole role
class MessageContent:
Finalized immutable message content container. Never includes thinking parts.
List<MessageContentPart> parts
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
class Execution:
Represents a single fill of an order for an account.
Side side
class NewOrderRequest:
Request to submit a new order (PlaceOrderRequest from spec)
RequestOrderType orderType
String quantity
Quantity to trade. For COMMON_STOCK: shares (may be fractional if supported). For OPTION (single-leg): contracts (must be an integer)
Side side
RequestTimeInForce timeInForce
Time in force
Optional<String> id
Optional client-provided unique ID (idempotency). Required to be unique per account.
Optional<LocalDateTime> expiresAt
The timestamp when the order should expire (UTC). Required when time_in_force is GOOD_TILL_DATE.
Optional<Boolean> extendedHours
Allow trading outside regular trading hours. Some brokers disallow options outside RTH.
Optional<String> symbol
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.
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.
SecurityType instrumentType
OrderType orderType
Side side
OrderStatus status
Current status of the order
TimeInForce timeInForce
Time in force instruction
Optional<String> averageFillPrice
Average fill price across all executions When a null/undefined value is observed, it indicates that there is no available data.
Optional<LocalDateTime> expiresAt
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.
Optional<String> limitOffset
Limit offset for trailing stop-limit orders (signed) When a null/undefined value is observed, it indicates it does not apply.
Optional<String> limitPrice
Limit price (for LIMIT and STOP_LIMIT orders) When a null/undefined value is observed, it indicates it does not apply.
Optional<LocalDateTime> releasesAt
Scheduled release time for orders awaiting release. When a null/undefined value is observed, it indicates it does not apply.
Optional<String> stopPrice
Stop price (for STOP and STOP_LIMIT orders) When a null/undefined value is observed, it indicates it does not apply.
Optional<String> trailingLimitPx
Current trailing limit price computed by the trailing strategy When a null/undefined value is observed, it indicates it does not apply.
Optional<String> trailingOffset
Trailing offset amount for trailing orders When a null/undefined value is observed, it indicates it does not apply.
Optional<String> trailingStopPx
Current trailing stop price computed by the trailing strategy When a null/undefined value is observed, it indicates it does not apply.
Optional<String> trailingWatermarkPx
Trailing watermark price for trailing orders When a null/undefined value is observed, it indicates it does not apply.
Optional<LocalDateTime> trailingWatermarkTs
Trailing watermark timestamp for trailing orders When a null/undefined value is observed, it indicates it does not apply.
Optional<String> underlyingInstrumentId
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
class Position:
Represents a holding of a particular instrument in an account
SecurityType instrumentType
PositionType positionType
Optional<String> avgPrice
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.
Optional<String> closingPrice
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.
Optional<LocalDate> closingPriceDate
The market date associated with closing_price
When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> costBasis
The total cost basis for this position When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> dailyRealizedPnl
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.
Optional<String> dailyUnrealizedPnl
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.
Optional<String> dailyUnrealizedPnlPct
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.
Optional<String> instrumentPrice
The current market price of the instrument When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> underlyingInstrumentId
Identifier of the underlying instrument, when available When a null/undefined value is observed, it indicates it does not apply.
class PositionInstruction:
A position instruction and its current lifecycle state.
String instructionId
Caller-supplied idempotency key echoed from the submit request; the server-assigned fallback when none was supplied.
PositionInstructionType instructionType
PositionInstructionStatus status
Optional<String> acceptedQuantity
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.
Optional<LocalDateTime> createdAt
When the instruction was first accepted by the service. When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> rejectionReason
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.
enum PositionInstructionStatus:
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.
V1Screener
Search instruments and manage saved screeners.
Search Screener
Get Screeners
Get Screener By ID
Create Screener
Replace Screener
Delete Screener
ModelsExpand Collapse
class FilterOpSpec:
Operator specification with optional behavioral arguments.
FilterOperator name
The operator to apply.
class FilterValue:
A filter value: either a literal or a variable reference.
A variable reference.
class Modifier:
Arithmetic modifier applied to a variable value.
ModifierOp name
class ScreenerColumn:
A single column in the screener search response.
FieldRef field
class ScreenerEntry:
A saved screener configuration entry
List<SearchFilter> filters
FieldRef left
The operator and optional arguments. Omit together with right for an unenabled filter.
FilterOperator name
The operator to apply.
The value(s) to compare against. Omit together with op for an unenabled filter.
A variable reference.
FieldRef field
class SearchFilter:
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.
FieldRef left
The operator and optional arguments. Omit together with right for an unenabled filter.
FilterOperator name
The operator to apply.
The value(s) to compare against. Omit together with op for an unenabled filter.
A variable reference.
class SortSpec:
A sort specification pairing a field with a direction.
FieldRef field
class Variable:
A variable reference (field or built-in like today).
V1Watchlist
Create and manage watchlists.
Get Watchlists
Get Watchlist By ID
Create Watchlist
Delete Watchlist
Add Watchlist Item
Delete Watchlist Item
ModelsExpand Collapse
class WatchlistDetail:
Detailed watchlist with all items
List<WatchlistItemEntry> items
Items in the watchlist
Optional<String> addedPrice
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.
boolean isPtp
Indicates if the instrument is a publicly traded partnership (PTP). PTP sales are subject to a 10% withholding tax for non-US tax residents.
boolean isThresholdSecurity
Indicates if the instrument is on the Regulation SHO Threshold Security List
Optional<String> adv
Average daily share volume from the security definition. When a null/undefined value is observed, it indicates that there is no available data.
DeprecatedOptional<LocalDate> expiry
Deprecated. Always null. When a null/undefined value is observed, it indicates it does not apply.
Optional<String> longMarginRate
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.
Optional<String> name
The full name of the instrument or its issuer When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> notionalAdv
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.
Optional<List<LocalDate>> optionsExpiryDates
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.
Optional<String> previousClose
Last close price from the security definition. When a null/undefined value is observed, it indicates that there is no available data.
class WatchlistItemEntry:
A single item in a watchlist
Optional<String> addedPrice
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.
boolean isPtp
Indicates if the instrument is a publicly traded partnership (PTP). PTP sales are subject to a 10% withholding tax for non-US tax residents.
boolean isThresholdSecurity
Indicates if the instrument is on the Regulation SHO Threshold Security List
Optional<String> adv
Average daily share volume from the security definition. When a null/undefined value is observed, it indicates that there is no available data.
DeprecatedOptional<LocalDate> expiry
Deprecated. Always null. When a null/undefined value is observed, it indicates it does not apply.
Optional<String> longMarginRate
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.
Optional<String> name
The full name of the instrument or its issuer When a null/undefined value is observed, it indicates that there is no available data.
Optional<String> notionalAdv
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.
Optional<List<LocalDate>> optionsExpiryDates
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.
Optional<String> previousClose
Last close price from the security definition. When a null/undefined value is observed, it indicates that there is no available data.