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
Margin-account-only details.
DayTradeCount int64
The number of day trades executed over the 5 most recent trading days.
DayTradeBuyingPowerUsage stringOptional
The amount of day-trade buying power used during the current trading day.
Status AccountStatus
Subtype AccountSubtype
Type AccountType
type MarginDetails struct{…}
DayTradeCount int64
The number of day trades executed over the 5 most recent trading days.
DayTradeBuyingPowerUsage stringOptional
The amount of day-trade buying power used during the current trading day.
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)
Status MarketStatus
Market status information
DayType DayType
TodaySessions TradingSessions
Trading session schedules for the requested date with time_until fields
Market MarketType
NextSessions TradingSessions
Next trading day’s session schedules (without time_until fields)
Status MarketStatus
Market status information
DayType DayType
TodaySessions TradingSessions
Trading session schedules for the requested date with time_until fields
type MarketStatus struct{…}
Market status information
DayType DayType
type TradingSessions struct{…}
Trading sessions for a market day with full timestamps
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
InstrumentID stringOptional
OEMS instrument identifier, when the instrument is found in the instrument cache.
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 InstrumentEventEnvelope struct{…}
Unified envelope for the all-events response.
Type AllEventsEventType
InstrumentID stringOptional
OEMS instrument identifier, when the instrument is found in the instrument cache.
type InstrumentEventsByDate struct{…}
Instrument events for a single date.
Events []InstrumentEventEnvelope
Flat event envelopes for this date.
Type AllEventsEventType
InstrumentID stringOptional
OEMS instrument identifier, when the instrument is found in the instrument cache.
type InstrumentEventsData struct{…}
Grouped instrument events by type
Dividends []InstrumentDividendEvent
Earnings []InstrumentEarnings
Earnings announcement events
Splits []InstrumentSplitEvent
type InstrumentFundamentals struct{…}
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).
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
Instruments []NewsInstrument
NewsType NewsType
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.
IsThresholdSecurity bool
Indicates if the instrument is on the Regulation SHO Threshold Security List
NotionalAdv stringOptional
Notional ADV (adv × previous_close). The primary liquidity signal
used by /instruments/search ranking. Computed at response time so
it stays consistent with whatever adv and previous_close show.
type InstrumentCore struct{…}
IsThresholdSecurity bool
Indicates if the instrument is on the Regulation SHO Threshold Security List
IsThresholdSecurity bool
Indicates if the instrument is on the Regulation SHO Threshold Security List
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
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
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.
InstrumentType SecurityType
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., “AAPL”).
For options, use the OSI symbol (e.g., “AAPL 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
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 trading_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 trading_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 trading_account_ids.
Get Response By ID
Cancel Response
ModelsExpand Collapse
type Response struct{…}
Dynamic pollable response.
Status ResponseStatus
Dynamic response content container. May include thinking parts.
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 trading_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
ModelsExpand Collapse
type NewOrderRequest struct{…}
Request to submit a new order (PlaceOrderRequest from spec)
InstrumentType SecurityType
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., “AAPL”).
For options, use the OSI symbol (e.g., “AAPL 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
ExpiresAt TimeOptional
Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE.
InstrumentType SecurityType
OrderType OrderType
Side Side
Status OrderStatus
TimeInForce TimeInForce
ExpiresAt TimeOptional
Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE.
V1Positions
View positions and manage position instructions.
Get Positions
Close Positions
Close Position
List 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
DailyUnrealizedPnl stringOptional
The unrealized profit or loss for this position relative to the previous close
DailyUnrealizedPnlPct stringOptional
The unrealized profit/loss for the position for the current day, expressed as a percentage of the baseline value (range: 0-100).
UnderlyingInstrumentID stringOptional
OEMS instrument identifier of the underlying instrument, if resolvable
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.
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.
InstrumentType SecurityType
PositionType PositionType
DailyUnrealizedPnl stringOptional
The unrealized profit or loss for this position relative to the previous close
DailyUnrealizedPnlPct stringOptional
The unrealized profit/loss for the position for the current day, expressed as a percentage of the baseline value (range: 0-100).
UnderlyingInstrumentID stringOptional
OEMS instrument identifier of the underlying instrument, if resolvable
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
Instrument details
IsThresholdSecurity bool
Indicates if the instrument is on the Regulation SHO Threshold Security List
NotionalAdv stringOptional
Notional ADV (adv × previous_close). The primary liquidity signal
used by /instruments/search ranking. Computed at response time so
it stays consistent with whatever adv and previous_close show.
type WatchlistItemEntry struct{…}
A single item in a watchlist
Instrument details
IsThresholdSecurity bool
Indicates if the instrument is on the Regulation SHO Threshold Security List
NotionalAdv stringOptional
Notional ADV (adv × previous_close). The primary liquidity signal
used by /instruments/search ranking. Computed at response time so
it stays consistent with whatever adv and previous_close show.
V1Websocket
Active Websocket.