Omni 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.
Omni 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.
Omni 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
Omni 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
Omni 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.