Skip to content
  • Auto
  • Light
  • Dark
Get started
View as Markdown
Copy Markdown

Open in Claude
Open in ChatGPT

V1

ModelsExpand Collapse
APIDecimal64 = string

A decimal number represented as a string.

SecurityIDSource = "CMS" | "CLST" | "OPRA" | 36 more

Security identifier source

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
SecurityType = "COMMON_STOCK" | "PREFERRED_STOCK" | "CORPORATE_BOND" | 5 more

Security type

Accepts one of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"CORPORATE_BOND"
"OPTION"
"FUTURE"
"WARRANT"
"CASH"
"OTHER"

V1Accounts

Fetch account details by ID
client.active.v1.accounts.getAccountByID(numberaccountID, RequestOptionsoptions?): AccountGetAccountByIDResponse { data }
get/active/v1/accounts/{account_id}
List accounts the authenticated user has permission to access
client.active.v1.accounts.getAccounts(AccountGetAccountsParams { page_size, page_token } query?, RequestOptionsoptions?): AccountGetAccountsResponse { data }
get/active/v1/accounts
Update account risk settings
client.active.v1.accounts.patchAccountByID(numberaccountID, AccountPatchAccountByIDParams { risk } body, RequestOptionsoptions?): AccountPatchAccountByIDResponse { data }
patch/active/v1/accounts/{account_id}
ModelsExpand Collapse
Account { id, account_holder_entity_id, full_name, 6 more }

Represents a trading account

id: number

The unique identifier for the account

formatint64
account_holder_entity_id: number

The account holder entity identifier

formatint64
full_name: string

The full legal name of the account

The type of account

Accepts one of the following:
"HOUSE"
"PAB"
"CUSTOMER"
"COUNTERPARTY"
"OTHER"
open_date: string

The date the account was opened

formatdate
short_name: string

The short name of the account

The current status of the account

Accepts one of the following:
"ACTIVE"
"INACTIVE"
"CLOSED"

The sub-type of account

Accepts one of the following:
"AFFILIATE"
"ALLOCATION"
"ARRANGING"
"BANK"
"BLOCK_TRADING"
"CARRY_BROKER"
"CASH"
"CLIENT"
"COLLATERAL"
"COURTESY_MASTER"
"CROSS"
"DEPOSIT"
"DVP"
"ERROR"
"EXECUTION"
"FACILITATION"
"FUNDING_SOURCE"
"HEDGE"
"MARGIN"
"MUTUAL_FUND"
"OPERATING"
"OTHER"
"RELATED_MASTER"
"REPO"
"SECURITIES_LENDING"
"SHADOW_AWAY"
"TRADING"
"TRIPARTY_COLLATERAL_AWAY"
"UNKNOWN"
close_date?: string | null

The date the account was closed, if applicable

formatdate
AccountKind = "HOUSE" | "PAB" | "CUSTOMER" | 2 more

Account kind classification

Accepts one of the following:
"HOUSE"
"PAB"
"CUSTOMER"
"COUNTERPARTY"
"OTHER"
AccountList = Array<Account { id, account_holder_entity_id, full_name, 6 more } >
id: number

The unique identifier for the account

formatint64
account_holder_entity_id: number

The account holder entity identifier

formatint64
full_name: string

The full legal name of the account

The type of account

Accepts one of the following:
"HOUSE"
"PAB"
"CUSTOMER"
"COUNTERPARTY"
"OTHER"
open_date: string

The date the account was opened

formatdate
short_name: string

The short name of the account

The current status of the account

Accepts one of the following:
"ACTIVE"
"INACTIVE"
"CLOSED"

The sub-type of account

Accepts one of the following:
"AFFILIATE"
"ALLOCATION"
"ARRANGING"
"BANK"
"BLOCK_TRADING"
"CARRY_BROKER"
"CASH"
"CLIENT"
"COLLATERAL"
"COURTESY_MASTER"
"CROSS"
"DEPOSIT"
"DVP"
"ERROR"
"EXECUTION"
"FACILITATION"
"FUNDING_SOURCE"
"HEDGE"
"MARGIN"
"MUTUAL_FUND"
"OPERATING"
"OTHER"
"RELATED_MASTER"
"REPO"
"SECURITIES_LENDING"
"SHADOW_AWAY"
"TRADING"
"TRIPARTY_COLLATERAL_AWAY"
"UNKNOWN"
close_date?: string | null

The date the account was closed, if applicable

formatdate
AccountSettings { risk }
risk?: RiskSettings { max_notional } | null

Risk settings for the account

max_notional?: string | null

The maximum notional value available to the account

AccountStatus = "ACTIVE" | "INACTIVE" | "CLOSED"

Account status

Accepts one of the following:
"ACTIVE"
"INACTIVE"
"CLOSED"
AccountSubkind = "AFFILIATE" | "ALLOCATION" | "ARRANGING" | 26 more

Account sub-kind classification providing more granular categorization

Accepts one of the following:
"AFFILIATE"
"ALLOCATION"
"ARRANGING"
"BANK"
"BLOCK_TRADING"
"CARRY_BROKER"
"CASH"
"CLIENT"
"COLLATERAL"
"COURTESY_MASTER"
"CROSS"
"DEPOSIT"
"DVP"
"ERROR"
"EXECUTION"
"FACILITATION"
"FUNDING_SOURCE"
"HEDGE"
"MARGIN"
"MUTUAL_FUND"
"OPERATING"
"OTHER"
"RELATED_MASTER"
"REPO"
"SECURITIES_LENDING"
"SHADOW_AWAY"
"TRADING"
"TRIPARTY_COLLATERAL_AWAY"
"UNKNOWN"
RiskSettings { max_notional }

Risk settings for an account

max_notional?: string | null

The maximum notional value available to the account

V1AccountsBalances

Fetch account balance information
client.active.v1.accounts.balances.getAccountBalances(numberaccountID, BalanceGetAccountBalancesParams { top_margin_contributors_limit } query?, RequestOptionsoptions?): BalanceGetAccountBalancesResponse { data }
get/active/v1/accounts/{account_id}/balances
ModelsExpand Collapse
AccountBalances { account_id, buying_power, currency, 15 more }

Represents the balance details for a trading account

account_id: number

The unique identifier for the account

formatint64
buying_power: string

The total buying power available in the account.

currency: string

Currency identifier for all monetary values.

daily_realized_pnl: string

Realized profit or loss since start of day.

daily_total_pnl: string

Total profit or loss since start of day.

daily_unrealized_pnl: string

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

equity: string

The total equity in the account.

long_market_value: string

The total market value of all long positions.

margin_type: MarginType

The applicable margin model for the account

Accepts one of the following:
"OTHER"
"NONE"
"PORTFOLIO_MARGIN"
"RISK_BASED_HAIRCUT_BROKER_DEALER"
"REG_T"
"RISK_BASED_HAIRCUT_MARKET_MAKER"
"CIRO"
"FUTURES_NLV"
"FUTURES_TOT_EQ"
open_order_adjustment: string

Signed buying-power correction from open orders.

settled_cash: string

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

sod: AccountBalancesSod { buying_power, equity, long_market_value, 6 more }

Start-of-day snapshot balances.

buying_power: string

Start-of-day buying power.

equity: string

Start-of-day equity.

long_market_value: string

Start-of-day long market value.

short_market_value: string

Start-of-day short market value.

asof?: string | null

Timestamp for the start-of-day values.

formatdate
day_trade_buying_power?: string | null

Start-of-day day-trade buying power.

maintenance_margin_excess?: string | null

Start-of-day maintenance margin excess.

maintenance_margin_requirement?: string | null

Start-of-day maintenance margin requirement.

trade_cash?: string | null

Start-of-day trade cash.

trade_cash: string

Trade-date effective cash.

unsettled_credits: string

Trade-date unsettled cash credits.

unsettled_debits: string

Trade-date unsettled cash debits.

margin_details?: MarginDetails { day_trade_count, initial_margin_excess, initial_margin_requirement, 6 more } | null

Margin-account-only details.

day_trade_count: number

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

formatint32
minimum0
initial_margin_excess: string

Initial margin excess for trade-date balances.

initial_margin_requirement: string

Initial margin requirement for trade-date balances.

maintenance_margin_excess: string

Maintenance margin excess for trade-date balances.

maintenance_margin_requirement: string

Maintenance margin requirement for trade-date balances.

pattern_day_trader: boolean

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

day_trade_buying_power_usage?: string | null

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

top_contributors?: Array<MarginTopContributor { initial_margin_requirement, maintenance_margin_requirement, market_value, underlying_instrument_id } >

Optional top margin contributors, returned only when explicitly requested.

initial_margin_requirement: string

Initial margin requirement attributable to this underlying.

maintenance_margin_requirement: string

Maintenance margin requirement attributable to this underlying.

market_value: string

Net market value attributable to this underlying.

underlying_instrument_id: string

UUID of the underlying security contributing to margin requirement.

formatuuid
usage?: MarginDetailsUsage { total, used } | null

Current usage totals.

total: string

The total margin available in the current model.

used: string

The amount of margin that is currently being utilized.

multiplier?: string | null

Applied multiplier for margin calculations.

short_market_value?: string | null

The total market value of all short positions.

AccountBalancesSod { buying_power, equity, long_market_value, 6 more }
buying_power: string

Start-of-day buying power.

equity: string

Start-of-day equity.

long_market_value: string

Start-of-day long market value.

short_market_value: string

Start-of-day short market value.

asof?: string | null

Timestamp for the start-of-day values.

formatdate
day_trade_buying_power?: string | null

Start-of-day day-trade buying power.

maintenance_margin_excess?: string | null

Start-of-day maintenance margin excess.

maintenance_margin_requirement?: string | null

Start-of-day maintenance margin requirement.

trade_cash?: string | null

Start-of-day trade cash.

MarginDetails { day_trade_count, initial_margin_excess, initial_margin_requirement, 6 more }
day_trade_count: number

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

formatint32
minimum0
initial_margin_excess: string

Initial margin excess for trade-date balances.

initial_margin_requirement: string

Initial margin requirement for trade-date balances.

maintenance_margin_excess: string

Maintenance margin excess for trade-date balances.

maintenance_margin_requirement: string

Maintenance margin requirement for trade-date balances.

pattern_day_trader: boolean

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

day_trade_buying_power_usage?: string | null

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

top_contributors?: Array<MarginTopContributor { initial_margin_requirement, maintenance_margin_requirement, market_value, underlying_instrument_id } >

Optional top margin contributors, returned only when explicitly requested.

initial_margin_requirement: string

Initial margin requirement attributable to this underlying.

maintenance_margin_requirement: string

Maintenance margin requirement attributable to this underlying.

market_value: string

Net market value attributable to this underlying.

underlying_instrument_id: string

UUID of the underlying security contributing to margin requirement.

formatuuid
usage?: MarginDetailsUsage { total, used } | null

Current usage totals.

total: string

The total margin available in the current model.

used: string

The amount of margin that is currently being utilized.

MarginDetailsUsage { total, used }
total: string

The total margin available in the current model.

used: string

The amount of margin that is currently being utilized.

MarginTopContributor { initial_margin_requirement, maintenance_margin_requirement, market_value, underlying_instrument_id }
initial_margin_requirement: string

Initial margin requirement attributable to this underlying.

maintenance_margin_requirement: string

Maintenance margin requirement attributable to this underlying.

market_value: string

Net market value attributable to this underlying.

underlying_instrument_id: string

UUID of the underlying security contributing to margin requirement.

formatuuid
MarginType = "OTHER" | "NONE" | "PORTFOLIO_MARGIN" | 6 more

An account's margin type

Accepts one of the following:
"OTHER"
"NONE"
"PORTFOLIO_MARGIN"
"RISK_BASED_HAIRCUT_BROKER_DEALER"
"REG_T"
"RISK_BASED_HAIRCUT_MARKET_MAKER"
"CIRO"
"FUTURES_NLV"
"FUTURES_TOT_EQ"

V1AccountsLocates

Create a locate request.
client.active.v1.accounts.locates.createLocateRequest(numberaccountID, LocateCreateLocateRequestParams { body } params, RequestOptionsoptions?): LocateCreateLocateRequestResponse { data }
post/active/v1/accounts/{account_id}/locates
Get locate requests.
client.active.v1.accounts.locates.getLocateRequests(numberaccountID, LocateGetLocateRequestsParams { page_size, page_token, reference_id, status } query?, RequestOptionsoptions?): LocateGetLocateRequestsResponse { data }
get/active/v1/accounts/{account_id}/locates
Update a locate request.
client.active.v1.accounts.locates.updateLocateRequest(numberaccountID, LocateUpdateLocateRequestParams { accept } body, RequestOptionsoptions?): LocateUpdateLocateRequestResponse { data }
patch/active/v1/accounts/{account_id}/locates
ModelsExpand Collapse
LocateOrder { locate_order_id, located_quantity, mpid, 12 more }

Represents a single locate order and its status

locate_order_id: string

The unique system-generated ID for the locate order

located_quantity: number

The quantity of shares that have been located

formatint64
mpid: string

The client Market Participant Identifier, assigned by Clear Street

requested_at: string

The timestamp when the locate order was received from the client in UTC

formatdate-time
requested_quantity: number

The quantity of shares requested by the client

formatint64

The status of the locate order

Accepts one of the following:
"PENDING"
"OFFERED"
"FILLED"
"REJECTED"
"DECLINED"
"EXPIRED"
"CANCELED"
symbol: string

The symbol of the security to locate

borrow_rate?: string | null

The borrow rate for the security if held overnight, expressed as a decimal

desk_comment?: string | null

Comments provided by the trading desk

expires_at?: string | null

The timestamp when the locate order will expire, set once the order has been processed, in UTC

formatdate-time
locate_id?: string | null

A unique ID for the locate order, available after the order has been OFFERED

located_at?: string | null

The timestamp when the security was located in UTC

formatdate-time
reference_id?: string | null

The reference ID provided when submitting the locate order

total_cost?: string | null

The total cost of the locate

trader_comment?: string | null

Comments provided by the trader when submitting the locate order

LocateOrderList = Array<LocateOrder { locate_order_id, located_quantity, mpid, 12 more } >
locate_order_id: string

The unique system-generated ID for the locate order

located_quantity: number

The quantity of shares that have been located

formatint64
mpid: string

The client Market Participant Identifier, assigned by Clear Street

requested_at: string

The timestamp when the locate order was received from the client in UTC

formatdate-time
requested_quantity: number

The quantity of shares requested by the client

formatint64

The status of the locate order

Accepts one of the following:
"PENDING"
"OFFERED"
"FILLED"
"REJECTED"
"DECLINED"
"EXPIRED"
"CANCELED"
symbol: string

The symbol of the security to locate

borrow_rate?: string | null

The borrow rate for the security if held overnight, expressed as a decimal

desk_comment?: string | null

Comments provided by the trading desk

expires_at?: string | null

The timestamp when the locate order will expire, set once the order has been processed, in UTC

formatdate-time
locate_id?: string | null

A unique ID for the locate order, available after the order has been OFFERED

located_at?: string | null

The timestamp when the security was located in UTC

formatdate-time
reference_id?: string | null

The reference ID provided when submitting the locate order

total_cost?: string | null

The total cost of the locate

trader_comment?: string | null

Comments provided by the trader when submitting the locate order

LocateOrderStatus = "PENDING" | "OFFERED" | "FILLED" | 4 more

The status of a locate order

Accepts one of the following:
"PENDING"
"OFFERED"
"FILLED"
"REJECTED"
"DECLINED"
"EXPIRED"
"CANCELED"

V1AccountsLocatesInventory

Get locate inventory.
client.active.v1.accounts.locates.inventory.getLocateInventory(numberaccountID, InventoryGetLocateInventoryParams { symbol } query, RequestOptionsoptions?): InventoryGetLocateInventoryResponse { data }
get/active/v1/accounts/{account_id}/locates/inventory
ModelsExpand Collapse
LocateInventoryItem { account_id, available, reserved, 2 more }

Represents the available locate inventory for a symbol

account_id: number

The account the locate inventory belongs to

formatint64
available: number

The available quantity of shares that can be located to borrow

formatint64
reserved: number

The quantity of shares reserved for locate orders that have been OFFERED but not yet FILLED

formatint64
symbol: string

The symbol of the security

used: number

The quantity of shares that have been FILLED and are currently borrowed

formatint64
LocateInventoryItemList = Array<LocateInventoryItem { account_id, available, reserved, 2 more } >
account_id: number

The account the locate inventory belongs to

formatint64
available: number

The available quantity of shares that can be located to borrow

formatint64
reserved: number

The quantity of shares reserved for locate orders that have been OFFERED but not yet FILLED

formatint64
symbol: string

The symbol of the security

used: number

The quantity of shares that have been FILLED and are currently borrowed

formatint64

V1AccountsOrders

Cancel all orders for an account
client.active.v1.accounts.orders.cancelAllOrders(numberaccountID, OrderCancelAllOrdersParams { security_id, security_id_source, security_type, 2 more } params?, RequestOptionsoptions?): OrderCancelAllOrdersResponse { data }
delete/active/v1/accounts/{account_id}/orders
Cancel a specific order
client.active.v1.accounts.orders.cancelOrder(stringorderID, OrderCancelOrderParams { account_id } params, RequestOptionsoptions?): OrderCancelOrderResponse { data }
delete/active/v1/accounts/{account_id}/orders/{order_id}
Get order by ID
client.active.v1.accounts.orders.getOrderByID(stringorderID, OrderGetOrderByIDParams { account_id } params, RequestOptionsoptions?): OrderGetOrderByIDResponse { data }
get/active/v1/accounts/{account_id}/orders/{order_id}
List orders for an account with optional filtering
client.active.v1.accounts.orders.getOrders(numberaccountID, OrderGetOrdersParams { from, page_size, page_token, 6 more } query?, RequestOptionsoptions?): OrderGetOrdersResponse { data }
get/active/v1/accounts/{account_id}/orders
Replace an order with new parameters
client.active.v1.accounts.orders.replaceOrder(stringorderID, OrderReplaceOrderParams { account_id, limit_price, quantity, 2 more } params, RequestOptionsoptions?): OrderReplaceOrderResponse { data }
patch/active/v1/accounts/{account_id}/orders/{order_id}
Submit new orders
client.active.v1.accounts.orders.submitOrders(numberaccountID, OrderSubmitOrdersParams { body } params, RequestOptionsoptions?): OrderSubmitOrdersResponse { data }
post/active/v1/accounts/{account_id}/orders
ModelsExpand Collapse
ApStrategy extends BaseStrategyParams { end_at, start_at, urgency } { max_percent, min_percent }

Arrival Price strategy

max_percent?: APIDecimal64 | null

Maximum percentage of market volume to participate in (0-100)

min_percent?: APIDecimal64 | null

Minimum percentage of market volume to participate in (0-100)

BaseStrategyParams { end_at, start_at, urgency }

Base parameters common to most algorithmic strategies

end_at?: string | null

UTC timestamp to end execution (defaults to market close)

formatdate-time
start_at?: string | null

UTC timestamp to start execution (defaults to order placement time)

formatdate-time
urgency?: Urgency

Urgency level for execution aggressiveness

Accepts one of the following:
"SUPER_PASSIVE"
"PASSIVE"
"MODERATE"
"AGGRESSIVE"
"SUPER_AGGRESSIVE"
DarkStrategy extends BaseStrategyParams { end_at, start_at, urgency } { max_percent }

Dark Pool strategy

max_percent?: APIDecimal64 | null

Maximum percentage of market volume to participate in (0-100)

DmaStrategy { destination }

Direct Market Access strategy

destination: string

Destination exchange (MIC code)

Order { id, account_id, created_at, 24 more }

A trading order with its current state and execution details.

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

id: string

Client-provided unique identifier for this order

account_id: number

Account placing the order

formatint64
created_at: string

Timestamp when order was created (UTC)

formatdate-time
filled_quantity: string

Cumulative filled quantity

leaves_quantity: string

Remaining unfilled quantity

order_type: OrderType

Type of order (MARKET, LIMIT, etc.)

Accepts one of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
"OTHER"
quantity: string

Total order quantity

security_id: string

The identifier for the traded instrument (CMS/CUSIP/ISIN/FIGI for equities or option OPRA OSI)

security_id_source: SecurityIDSource

The source of the security identifier

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
security_type: SecurityType

Type of security

Accepts one of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"CORPORATE_BOND"
"OPTION"
"FUTURE"
"WARRANT"
"CASH"
"OTHER"
side: Side

Side of the order (BUY, SELL, SELL_SHORT)

Accepts one of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
status: OrderStatus

Current status of the order

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

Trading symbol

time_in_force: TimeInForce

Time in force instruction

Accepts one of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
"OTHER"
updated_at: string

Timestamp of the most recent update (UTC)

formatdate-time
venue: string

MIC code of the venue where the order is routed

average_fill_price?: string | null

Average fill price across all executions

details?: Array<string>

Contains execution, rejection or cancellation details, if any

expires_at?: string | null

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

formatdate-time
limit_offset?: string | null

Limit offset for trailing stop-limit orders (signed)

limit_price?: string | null

Limit price (for LIMIT and STOP_LIMIT orders)

stop_price?: string | null

Stop price (for STOP and STOP_LIMIT orders)

strategy?: OrderStrategy | null

Execution strategy for this order

Accepts one of the following:
Sor extends SorStrategy { end_at, start_at, urgency } { type }

Smart Order Router (default) - routes to best available venue

type: "SOR"
Accepts one of the following:
"SOR"
Vwap extends VwapStrategy { max_percent, min_percent } { type }

Volume Weighted Average Price - matches VWAP over a period

type: "VWAP"
Accepts one of the following:
"VWAP"
Twap extends TwapStrategy { max_percent, min_percent } { type }

Time Weighted Average Price - spreads execution evenly over time

type: "TWAP"
Accepts one of the following:
"TWAP"
Ap extends ApStrategy { max_percent, min_percent } { type }

Arrival Price - aims to match price at order placement time

type: "AP"
Accepts one of the following:
"AP"
Pov extends PovStrategy { target_percent } { type }

Percentage of Volume - participates as a percentage of market volume

type: "POV"
Accepts one of the following:
"POV"
Dark extends DarkStrategy { max_percent } { type }

Dark Pool - routes to dark pool venues

type: "DARK"
Accepts one of the following:
"DARK"
Dma extends DmaStrategy { destination } { type }

Direct Market Access - sends directly to a specified exchange

type: "DMA"
Accepts one of the following:
"DMA"
trailing_offset_amt?: string | null

Trailing offset amount for trailing orders

trailing_offset_amt_type?: TrailingOffsetType | null

Trailing offset type for trailing orders

Accepts one of the following:
"PRICE"
"PERCENT_BPS"
trailing_watermark_px?: string | null

Trailing watermark price for trailing orders

trailing_watermark_ts?: string | null

Trailing watermark timestamp for trailing orders

formatdate-time
OrderList = Array<Order { id, account_id, created_at, 24 more } >
id: string

Client-provided unique identifier for this order

account_id: number

Account placing the order

formatint64
created_at: string

Timestamp when order was created (UTC)

formatdate-time
filled_quantity: string

Cumulative filled quantity

leaves_quantity: string

Remaining unfilled quantity

order_type: OrderType

Type of order (MARKET, LIMIT, etc.)

Accepts one of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
"OTHER"
quantity: string

Total order quantity

security_id: string

The identifier for the traded instrument (CMS/CUSIP/ISIN/FIGI for equities or option OPRA OSI)

security_id_source: SecurityIDSource

The source of the security identifier

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
security_type: SecurityType

Type of security

Accepts one of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"CORPORATE_BOND"
"OPTION"
"FUTURE"
"WARRANT"
"CASH"
"OTHER"
side: Side

Side of the order (BUY, SELL, SELL_SHORT)

Accepts one of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
status: OrderStatus

Current status of the order

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

Trading symbol

time_in_force: TimeInForce

Time in force instruction

Accepts one of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
"OTHER"
updated_at: string

Timestamp of the most recent update (UTC)

formatdate-time
venue: string

MIC code of the venue where the order is routed

average_fill_price?: string | null

Average fill price across all executions

details?: Array<string>

Contains execution, rejection or cancellation details, if any

expires_at?: string | null

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

formatdate-time
limit_offset?: string | null

Limit offset for trailing stop-limit orders (signed)

limit_price?: string | null

Limit price (for LIMIT and STOP_LIMIT orders)

stop_price?: string | null

Stop price (for STOP and STOP_LIMIT orders)

strategy?: OrderStrategy | null

Execution strategy for this order

Accepts one of the following:
Sor extends SorStrategy { end_at, start_at, urgency } { type }

Smart Order Router (default) - routes to best available venue

type: "SOR"
Accepts one of the following:
"SOR"
Vwap extends VwapStrategy { max_percent, min_percent } { type }

Volume Weighted Average Price - matches VWAP over a period

type: "VWAP"
Accepts one of the following:
"VWAP"
Twap extends TwapStrategy { max_percent, min_percent } { type }

Time Weighted Average Price - spreads execution evenly over time

type: "TWAP"
Accepts one of the following:
"TWAP"
Ap extends ApStrategy { max_percent, min_percent } { type }

Arrival Price - aims to match price at order placement time

type: "AP"
Accepts one of the following:
"AP"
Pov extends PovStrategy { target_percent } { type }

Percentage of Volume - participates as a percentage of market volume

type: "POV"
Accepts one of the following:
"POV"
Dark extends DarkStrategy { max_percent } { type }

Dark Pool - routes to dark pool venues

type: "DARK"
Accepts one of the following:
"DARK"
Dma extends DmaStrategy { destination } { type }

Direct Market Access - sends directly to a specified exchange

type: "DMA"
Accepts one of the following:
"DMA"
trailing_offset_amt?: string | null

Trailing offset amount for trailing orders

trailing_offset_amt_type?: TrailingOffsetType | null

Trailing offset type for trailing orders

Accepts one of the following:
"PRICE"
"PERCENT_BPS"
trailing_watermark_px?: string | null

Trailing watermark price for trailing orders

trailing_watermark_ts?: string | null

Trailing watermark timestamp for trailing orders

formatdate-time
OrderStatus = "PENDING_NEW" | "NEW" | "PARTIALLY_FILLED" | 12 more

Order status

Accepts one of the following:
"PENDING_NEW"
"NEW"
"PARTIALLY_FILLED"
"FILLED"
"CANCELED"
"REJECTED"
"EXPIRED"
"PENDING_CANCEL"
"PENDING_REPLACE"
"REPLACED"
"DONE_FOR_DAY"
"STOPPED"
"SUSPENDED"
"CALCULATED"
"OTHER"
OrderStrategy = Sor { type } | Vwap { type } | Twap { type } | 4 more

Execution strategy for an order

Defines advanced routing and execution logic beyond simple order types. The strategy type determines which parameters are available and required.

Accepts one of the following:
Sor extends SorStrategy { end_at, start_at, urgency } { type }

Smart Order Router (default) - routes to best available venue

type: "SOR"
Accepts one of the following:
"SOR"
Vwap extends VwapStrategy { max_percent, min_percent } { type }

Volume Weighted Average Price - matches VWAP over a period

type: "VWAP"
Accepts one of the following:
"VWAP"
Twap extends TwapStrategy { max_percent, min_percent } { type }

Time Weighted Average Price - spreads execution evenly over time

type: "TWAP"
Accepts one of the following:
"TWAP"
Ap extends ApStrategy { max_percent, min_percent } { type }

Arrival Price - aims to match price at order placement time

type: "AP"
Accepts one of the following:
"AP"
Pov extends PovStrategy { target_percent } { type }

Percentage of Volume - participates as a percentage of market volume

type: "POV"
Accepts one of the following:
"POV"
Dark extends DarkStrategy { max_percent } { type }

Dark Pool - routes to dark pool venues

type: "DARK"
Accepts one of the following:
"DARK"
Dma extends DmaStrategy { destination } { type }

Direct Market Access - sends directly to a specified exchange

type: "DMA"
Accepts one of the following:
"DMA"
OrderType = "MARKET" | "LIMIT" | "STOP" | 4 more

Order type

Accepts one of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
"OTHER"
PovStrategy extends BaseStrategyParams { end_at, start_at, urgency } { target_percent }

Percentage of Volume strategy

target_percent: APIDecimal64

Target percentage of market volume to participate in (0-100)

Side = "BUY" | "SELL" | "SELL_SHORT" | "OTHER"

Side of an order

Accepts one of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
SorStrategy { end_at, start_at, urgency }

Base parameters common to most algorithmic strategies

end_at?: string | null

UTC timestamp to end execution (defaults to market close)

formatdate-time
start_at?: string | null

UTC timestamp to start execution (defaults to order placement time)

formatdate-time
urgency?: Urgency

Urgency level for execution aggressiveness

Accepts one of the following:
"SUPER_PASSIVE"
"PASSIVE"
"MODERATE"
"AGGRESSIVE"
"SUPER_AGGRESSIVE"
TimeInForce = "DAY" | "GOOD_TILL_CANCEL" | "IMMEDIATE_OR_CANCEL" | 8 more

Time in force

Accepts one of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
"OTHER"
TrailingOffsetType = "PRICE" | "PERCENT_BPS"

Trailing offset type for trailing stop orders.

Accepts one of the following:
"PRICE"
"PERCENT_BPS"
TwapStrategy extends BaseStrategyParams { end_at, start_at, urgency } { max_percent, min_percent }

Time Weighted Average Price strategy

max_percent?: APIDecimal64 | null

Maximum percentage of market volume to participate in (0-50)

min_percent?: APIDecimal64 | null

Minimum percentage of market volume to participate in (0-100)

Urgency = "SUPER_PASSIVE" | "PASSIVE" | "MODERATE" | 2 more

Urgency level for algorithmic execution

Accepts one of the following:
"SUPER_PASSIVE"
"PASSIVE"
"MODERATE"
"AGGRESSIVE"
"SUPER_AGGRESSIVE"
VwapStrategy extends BaseStrategyParams { end_at, start_at, urgency } { max_percent, min_percent }

Volume Weighted Average Price strategy

max_percent?: APIDecimal64 | null

Maximum percentage of market volume to participate in (0-50)

min_percent?: APIDecimal64 | null

Minimum percentage of market volume to participate in (0-100)

V1AccountsPortfolio History

Get account portfolio history.
client.active.v1.accounts.portfolioHistory.getPortfolioHistory(numberaccountID, PortfolioHistoryGetPortfolioHistoryParams { end_date, start_date } query, RequestOptionsoptions?): PortfolioHistoryGetPortfolioHistoryResponse { data }
get/active/v1/accounts/{account_id}/portfolio-history
ModelsExpand Collapse
PortfolioHistoryResponse { segments }
segments: Array<PortfolioHistorySegment { date, ending_equity, realized_pnl, 9 more } >
date: string

The date for this segment

formatdate
ending_equity: string

The equity at the end of the trading day.

realized_pnl: string

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

starting_equity: string

The equity at the start of the trading day.

unrealized_pnl: string

Sum of the profit and loss from market changes.

bought_notional?: string | null

Amount bought MTM

bought_quantity?: string | null

Quantity bought MTM

day_pnl?: string | null

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

net_pnl?: string | null

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

position_pnl?: string | null

Sum of the profit and loss from the previous trading day.

sold_notional?: string | null

Amount sold MTM

sold_quantity?: string | null

Quantity sold MTM

PortfolioHistorySegment { date, ending_equity, realized_pnl, 9 more }
date: string

The date for this segment

formatdate
ending_equity: string

The equity at the end of the trading day.

realized_pnl: string

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

starting_equity: string

The equity at the start of the trading day.

unrealized_pnl: string

Sum of the profit and loss from market changes.

bought_notional?: string | null

Amount bought MTM

bought_quantity?: string | null

Quantity bought MTM

day_pnl?: string | null

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

net_pnl?: string | null

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

position_pnl?: string | null

Sum of the profit and loss from the previous trading day.

sold_notional?: string | null

Amount sold MTM

sold_quantity?: string | null

Quantity sold MTM

V1AccountsPositions

Delete a position within an account for an instrument.
client.active.v1.accounts.positions.closePosition(stringsecurityID, PositionClosePositionParams { account_id, security_id_source, cancel_orders } params, RequestOptionsoptions?): PositionClosePositionResponse { data }
delete/active/v1/accounts/{account_id}/positions/{security_id_source}/{security_id}
Delete all positions within an account.
client.active.v1.accounts.positions.closePositions(numberaccountID, PositionClosePositionsParams { cancel_orders } body?, RequestOptionsoptions?): PositionClosePositionsResponse { data }
delete/active/v1/accounts/{account_id}/positions
Get account positions.
client.active.v1.accounts.positions.getPositions(numberaccountID, PositionGetPositionsParams { page_size, page_token, security_id, 3 more } query?, RequestOptionsoptions?): PositionGetPositionsResponse { data }
get/active/v1/accounts/{account_id}/positions
ModelsExpand Collapse
Position { account_id, available_quantity, instrument_type, 14 more }

Represents a holding of a particular instrument in an account

account_id: number

The account this position belongs to

formatint64
available_quantity: string

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

instrument_type: SecurityType

Type of security

Accepts one of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"CORPORATE_BOND"
"OPTION"
"FUTURE"
"WARRANT"
"CASH"
"OTHER"
market_value: string

The current market value of the position

position_type: PositionType

The type of position

Accepts one of the following:
"LONG"
"SHORT"
"LONG_CALL"
"SHORT_CALL"
"LONG_PUT"
"SHORT_PUT"
quantity: string

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

security_id: string

An identifier for the instrument which, when paired with security_id_source, identifies one or more financial instruments.

security_id_source: SecurityIDSource

The source of the security identifier

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
symbol: string

The trading symbol for the instrument

avg_price?: string | null

The average price paid per share or contract for this position

closing_price?: string | null

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

cost_basis?: string | null

The total cost basis for this position

daily_unrealized_pnl?: string | null

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

daily_unrealized_pnl_pct?: string | null

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

market_price?: string | null

The current market price of the instrument

unrealized_pnl?: string | null

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

unrealized_pnl_pct?: string | null

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

PositionList = Array<Position { account_id, available_quantity, instrument_type, 14 more } >
account_id: number

The account this position belongs to

formatint64
available_quantity: string

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

instrument_type: SecurityType

Type of security

Accepts one of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"CORPORATE_BOND"
"OPTION"
"FUTURE"
"WARRANT"
"CASH"
"OTHER"
market_value: string

The current market value of the position

position_type: PositionType

The type of position

Accepts one of the following:
"LONG"
"SHORT"
"LONG_CALL"
"SHORT_CALL"
"LONG_PUT"
"SHORT_PUT"
quantity: string

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

security_id: string

An identifier for the instrument which, when paired with security_id_source, identifies one or more financial instruments.

security_id_source: SecurityIDSource

The source of the security identifier

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
symbol: string

The trading symbol for the instrument

avg_price?: string | null

The average price paid per share or contract for this position

closing_price?: string | null

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

cost_basis?: string | null

The total cost basis for this position

daily_unrealized_pnl?: string | null

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

daily_unrealized_pnl_pct?: string | null

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

market_price?: string | null

The current market price of the instrument

unrealized_pnl?: string | null

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

unrealized_pnl_pct?: string | null

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

PositionType = "LONG" | "SHORT" | "LONG_CALL" | 3 more

Position type classification

Accepts one of the following:
"LONG"
"SHORT"
"LONG_CALL"
"SHORT_CALL"
"LONG_PUT"
"SHORT_PUT"

V1API Keys

Create a new API key
client.active.v1.apiKeys.create(APIKeyCreateParams { name } body, RequestOptionsoptions?): APIKeyCreateResponse { data }
post/active/v1/api_keys
List API keys for the authenticated user
client.active.v1.apiKeys.list(RequestOptionsoptions?): APIKeyListResponse { data }
get/active/v1/api_keys
Revoke a specific API key
client.active.v1.apiKeys.revoke(stringid, RequestOptionsoptions?): APIKeyRevokeResponse { data }
delete/active/v1/api_keys/{id}
Revoke all API keys for the authenticated user
client.active.v1.apiKeys.revokeAll(RequestOptionsoptions?): APIKeyRevokeAllResponse { data }
delete/active/v1/api_keys
ModelsExpand Collapse
APIKey { id, api_key, created_at, 2 more }
id: string
api_key: string
created_at: string
expires_at: string
name?: string | null
APIKeyListEntry { id, created_at, expires_at, 2 more }
id: string
created_at: string
expires_at: string
name?: string | null
revoked_at?: string | null
APIKeyListEntryList = Array<APIKeyListEntry { id, created_at, expires_at, 2 more } >
id: string
created_at: string
expires_at: string
name?: string | null
revoked_at?: string | null
Revocation { id, revoked_at }
id: string
revoked_at: string
RevocationList = Array<Revocation { id, revoked_at } >
id: string
revoked_at: string

V1Calendars

V1CalendarsDividends

Get dividends calendar.
client.active.v1.calendars.dividends.getDividendsCalendar(DividendGetDividendsCalendarParams { from, to } query?, RequestOptionsoptions?): DividendGetDividendsCalendarResponse { data }
get/active/v1/calendars/dividends
ModelsExpand Collapse
DividendCalendarEvent { adjusted_dividend, date, dividend, 6 more }

Represents a single dividend event

adjusted_dividend: string

The dividend amount adjusted for any stock splits

date: string

The ex-dividend date

formatdate
dividend: string

The dividend amount per share

symbol: string

The symbol for the instrument

declaration_date?: string | null

The date the dividend was declared

formatdate
frequency?: DividendFrequency | null

The frequency of the dividend payment

Accepts one of the following:
"ANNUALLY"
"SEMI_ANNUALLY"
"QUARTERLY"
"MONTHLY"
"OTHER"
payment_date?: string | null

The payment date for the dividend

formatdate
record_date?: string | null

The record date for the dividend

formatdate
yield?: string | null

The dividend yield as a percentage decimal

DividendCalendarEventList = Array<DividendCalendarEvent { adjusted_dividend, date, dividend, 6 more } >
adjusted_dividend: string

The dividend amount adjusted for any stock splits

date: string

The ex-dividend date

formatdate
dividend: string

The dividend amount per share

symbol: string

The symbol for the instrument

declaration_date?: string | null

The date the dividend was declared

formatdate
frequency?: DividendFrequency | null

The frequency of the dividend payment

Accepts one of the following:
"ANNUALLY"
"SEMI_ANNUALLY"
"QUARTERLY"
"MONTHLY"
"OTHER"
payment_date?: string | null

The payment date for the dividend

formatdate
record_date?: string | null

The record date for the dividend

formatdate
yield?: string | null

The dividend yield as a percentage decimal

DividendFrequency = "ANNUALLY" | "SEMI_ANNUALLY" | "QUARTERLY" | 2 more

Dividend payment frequency

Accepts one of the following:
"ANNUALLY"
"SEMI_ANNUALLY"
"QUARTERLY"
"MONTHLY"
"OTHER"

V1CalendarsEarnings

Get earnings calendar.
client.active.v1.calendars.earnings.getEarningsCalendar(EarningGetEarningsCalendarParams { from, to } query?, RequestOptionsoptions?): EarningGetEarningsCalendarResponse { data }
get/active/v1/calendars/earnings
ModelsExpand Collapse
EarningsCalendarEvent { date, last_updated, symbol, 4 more }

Represents a single earnings announcement event

date: string

The date of the earnings announcement

formatdate
last_updated: string

The date of the last update to this event

formatdate
symbol: string

The symbol for the instrument

eps_actual?: string | null

The actual reported earnings per share

eps_estimated?: string | null

The consensus estimated earnings per share

revenue_actual?: string | null

The actual reported revenue

revenue_estimated?: string | null

The consensus estimated revenue

EarningsCalendarEventList = Array<EarningsCalendarEvent { date, last_updated, symbol, 4 more } >
date: string

The date of the earnings announcement

formatdate
last_updated: string

The date of the last update to this event

formatdate
symbol: string

The symbol for the instrument

eps_actual?: string | null

The actual reported earnings per share

eps_estimated?: string | null

The consensus estimated earnings per share

revenue_actual?: string | null

The actual reported revenue

revenue_estimated?: string | null

The consensus estimated revenue

V1CalendarsEconomic

Get economic calendar.
client.active.v1.calendars.economic.getEconomicCalendar(EconomicGetEconomicCalendarParams { from, to } query?, RequestOptionsoptions?): EconomicGetEconomicCalendarResponse { data }
get/active/v1/calendars/economic
ModelsExpand Collapse
EconomicCalendarEvent { country, currency, event_name, 6 more }

Represents a single economic calendar event

country: string

The ISO 3166-1 alpha-2 country code

currency: string

The ISO 4217 currency code

event_name: string

The name of the economic event

event_timestamp: string

The date and time of the event in UTC

formatdate-time

The expected market impact of the event

Accepts one of the following:
"LOW"
"MEDIUM"
"HIGH"
actual_value?: string | null

The actual value reported for the event

change_percent?: string | null

The percentage change between the actual and previous values

estimated_value?: string | null

The market consensus estimate for the event's value

previous_value?: string | null

The previous value for this event

EconomicCalendarEventList = Array<EconomicCalendarEvent { country, currency, event_name, 6 more } >
country: string

The ISO 3166-1 alpha-2 country code

currency: string

The ISO 4217 currency code

event_name: string

The name of the economic event

event_timestamp: string

The date and time of the event in UTC

formatdate-time

The expected market impact of the event

Accepts one of the following:
"LOW"
"MEDIUM"
"HIGH"
actual_value?: string | null

The actual value reported for the event

change_percent?: string | null

The percentage change between the actual and previous values

estimated_value?: string | null

The market consensus estimate for the event's value

previous_value?: string | null

The previous value for this event

EconomicEventImpact = "LOW" | "MEDIUM" | "HIGH"

Economic event impact level

Accepts one of the following:
"LOW"
"MEDIUM"
"HIGH"

V1CalendarsMarket Hours

Get market hours calendar.
client.active.v1.calendars.marketHours.getMarketHoursCalendar(MarketHourGetMarketHoursCalendarParams { date, market } query, RequestOptionsoptions?): MarketHourGetMarketHoursCalendarResponse { data }
get/active/v1/calendars/market-hours
ModelsExpand Collapse
DayType = "TRADING_DAY" | "EARLY_CLOSE" | "HOLIDAY" | "WEEKEND"

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

Accepts one of the following:
"TRADING_DAY"
"EARLY_CLOSE"
"HOLIDAY"
"WEEKEND"
MarketHoursDetail { current_time, date, market, 5 more }

Comprehensive market hours information for a specific market and date

current_time: string

Current time in market timezone with offset

formatdate-time
date: string

The date for which market hours are provided

formatdate
market: MarketType

Market type identifier

Accepts one of the following:
"us_equities"
"us_options"
market_name: string

Human-readable market name

next_sessions: TradingSessions { after_hours, pre_market, regular }

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

after_hours?: SessionSchedule { close, open, time_until_close, time_until_open } | null

After-hours session schedule, null if not available

close: string

Session close timestamp with timezone offset

formatdate-time
open: string

Session open timestamp with timezone offset

formatdate-time
time_until_close?: string | null

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

formatduration
time_until_open?: string | null

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

formatduration
pre_market?: SessionSchedule { close, open, time_until_close, time_until_open } | null

Pre-market session schedule, null if not available

close: string

Session close timestamp with timezone offset

formatdate-time
open: string

Session open timestamp with timezone offset

formatdate-time
time_until_close?: string | null

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

formatduration
time_until_open?: string | null

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

formatduration
regular?: SessionSchedule { close, open, time_until_close, time_until_open } | null

Regular trading session schedule, null if holiday/weekend

close: string

Session close timestamp with timezone offset

formatdate-time
open: string

Session open timestamp with timezone offset

formatdate-time
time_until_close?: string | null

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

formatduration
time_until_open?: string | null

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

formatduration
status: MarketStatus { day_type, is_open, current_session }

Market status information

day_type: DayType

The type of trading day

Accepts one of the following:
"TRADING_DAY"
"EARLY_CLOSE"
"HOLIDAY"
"WEEKEND"
is_open: boolean

Whether the market is currently open (real-time)

current_session?: MarketSessionType | null

Current session type if market is open, null if closed

Accepts one of the following:
"pre_market"
"regular"
"after_hours"
timezone: string

IANA timezone identifier for the market

today_sessions: TradingSessions { after_hours, pre_market, regular }

Trading session schedules for the requested date with time_until fields

after_hours?: SessionSchedule { close, open, time_until_close, time_until_open } | null

After-hours session schedule, null if not available

close: string

Session close timestamp with timezone offset

formatdate-time
open: string

Session open timestamp with timezone offset

formatdate-time
time_until_close?: string | null

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

formatduration
time_until_open?: string | null

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

formatduration
pre_market?: SessionSchedule { close, open, time_until_close, time_until_open } | null

Pre-market session schedule, null if not available

close: string

Session close timestamp with timezone offset

formatdate-time
open: string

Session open timestamp with timezone offset

formatdate-time
time_until_close?: string | null

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

formatduration
time_until_open?: string | null

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

formatduration
regular?: SessionSchedule { close, open, time_until_close, time_until_open } | null

Regular trading session schedule, null if holiday/weekend

close: string

Session close timestamp with timezone offset

formatdate-time
open: string

Session open timestamp with timezone offset

formatdate-time
time_until_close?: string | null

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

formatduration
time_until_open?: string | null

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

formatduration
MarketHoursDetailList = Array<MarketHoursDetail { current_time, date, market, 5 more } >
current_time: string

Current time in market timezone with offset

formatdate-time
date: string

The date for which market hours are provided

formatdate
market: MarketType

Market type identifier

Accepts one of the following:
"us_equities"
"us_options"
market_name: string

Human-readable market name

next_sessions: TradingSessions { after_hours, pre_market, regular }

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

after_hours?: SessionSchedule { close, open, time_until_close, time_until_open } | null

After-hours session schedule, null if not available

close: string

Session close timestamp with timezone offset

formatdate-time
open: string

Session open timestamp with timezone offset

formatdate-time
time_until_close?: string | null

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

formatduration
time_until_open?: string | null

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

formatduration
pre_market?: SessionSchedule { close, open, time_until_close, time_until_open } | null

Pre-market session schedule, null if not available

close: string

Session close timestamp with timezone offset

formatdate-time
open: string

Session open timestamp with timezone offset

formatdate-time
time_until_close?: string | null

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

formatduration
time_until_open?: string | null

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

formatduration
regular?: SessionSchedule { close, open, time_until_close, time_until_open } | null

Regular trading session schedule, null if holiday/weekend

close: string

Session close timestamp with timezone offset

formatdate-time
open: string

Session open timestamp with timezone offset

formatdate-time
time_until_close?: string | null

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

formatduration
time_until_open?: string | null

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

formatduration
status: MarketStatus { day_type, is_open, current_session }

Market status information

day_type: DayType

The type of trading day

Accepts one of the following:
"TRADING_DAY"
"EARLY_CLOSE"
"HOLIDAY"
"WEEKEND"
is_open: boolean

Whether the market is currently open (real-time)

current_session?: MarketSessionType | null

Current session type if market is open, null if closed

Accepts one of the following:
"pre_market"
"regular"
"after_hours"
timezone: string

IANA timezone identifier for the market

today_sessions: TradingSessions { after_hours, pre_market, regular }

Trading session schedules for the requested date with time_until fields

after_hours?: SessionSchedule { close, open, time_until_close, time_until_open } | null

After-hours session schedule, null if not available

close: string

Session close timestamp with timezone offset

formatdate-time
open: string

Session open timestamp with timezone offset

formatdate-time
time_until_close?: string | null

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

formatduration
time_until_open?: string | null

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

formatduration
pre_market?: SessionSchedule { close, open, time_until_close, time_until_open } | null

Pre-market session schedule, null if not available

close: string

Session close timestamp with timezone offset

formatdate-time
open: string

Session open timestamp with timezone offset

formatdate-time
time_until_close?: string | null

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

formatduration
time_until_open?: string | null

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

formatduration
regular?: SessionSchedule { close, open, time_until_close, time_until_open } | null

Regular trading session schedule, null if holiday/weekend

close: string

Session close timestamp with timezone offset

formatdate-time
open: string

Session open timestamp with timezone offset

formatdate-time
time_until_close?: string | null

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

formatduration
time_until_open?: string | null

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

formatduration
MarketSessionType = "pre_market" | "regular" | "after_hours"

Session type for market hours

Accepts one of the following:
"pre_market"
"regular"
"after_hours"
MarketStatus { day_type, is_open, current_session }

Market status information

day_type: DayType

The type of trading day

Accepts one of the following:
"TRADING_DAY"
"EARLY_CLOSE"
"HOLIDAY"
"WEEKEND"
is_open: boolean

Whether the market is currently open (real-time)

current_session?: MarketSessionType | null

Current session type if market is open, null if closed

Accepts one of the following:
"pre_market"
"regular"
"after_hours"
MarketType = "us_equities" | "us_options"

Market type for market hours calendar endpoint

Accepts one of the following:
"us_equities"
"us_options"
SessionSchedule { close, open, time_until_close, time_until_open }

Session schedule with open and close timestamps

close: string

Session close timestamp with timezone offset

formatdate-time
open: string

Session open timestamp with timezone offset

formatdate-time
time_until_close?: string | null

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

formatduration
time_until_open?: string | null

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

formatduration
TradingSessions { after_hours, pre_market, regular }

Trading sessions for a market day with full timestamps

after_hours?: SessionSchedule { close, open, time_until_close, time_until_open } | null

After-hours session schedule, null if not available

close: string

Session close timestamp with timezone offset

formatdate-time
open: string

Session open timestamp with timezone offset

formatdate-time
time_until_close?: string | null

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

formatduration
time_until_open?: string | null

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

formatduration
pre_market?: SessionSchedule { close, open, time_until_close, time_until_open } | null

Pre-market session schedule, null if not available

close: string

Session close timestamp with timezone offset

formatdate-time
open: string

Session open timestamp with timezone offset

formatdate-time
time_until_close?: string | null

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

formatduration
time_until_open?: string | null

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

formatduration
regular?: SessionSchedule { close, open, time_until_close, time_until_open } | null

Regular trading session schedule, null if holiday/weekend

close: string

Session close timestamp with timezone offset

formatdate-time
open: string

Session open timestamp with timezone offset

formatdate-time
time_until_close?: string | null

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

formatduration
time_until_open?: string | null

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

formatduration

V1CalendarsMergers Acquisitions

Get mergers and acquisitions calendar.
client.active.v1.calendars.mergersAcquisitions.getMergersAndAcquisitionsCalendar(MergersAcquisitionGetMergersAndAcquisitionsCalendarParams { from, to } query?, RequestOptionsoptions?): MergersAcquisitionGetMergersAndAcquisitionsCalendarResponse { data }
get/active/v1/calendars/mergers-acquisitions
ModelsExpand Collapse
MergersAcquisitionsEvent { acquirer_symbol, target_symbol, transaction_date, 5 more }

Represents a merger or acquisition event

acquirer_symbol: string

The symbol of the acquiring company

target_symbol: string

The symbol of the target company being acquired

transaction_date: string

The date of the transaction

formatdate
accepted_at?: string | null

The timestamp when the merger or acquisition was accepted in UTC

formatdate-time
acquirer_cik?: string | null

The CIK of the acquiring company

acquirer_name?: string | null

The name of the acquiring company

A URL link to more details about the merger or acquisition

target_cik?: string | null

The CIK of the target company

MergersAcquisitionsEventList = Array<MergersAcquisitionsEvent { acquirer_symbol, target_symbol, transaction_date, 5 more } >
acquirer_symbol: string

The symbol of the acquiring company

target_symbol: string

The symbol of the target company being acquired

transaction_date: string

The date of the transaction

formatdate
accepted_at?: string | null

The timestamp when the merger or acquisition was accepted in UTC

formatdate-time
acquirer_cik?: string | null

The CIK of the acquiring company

acquirer_name?: string | null

The name of the acquiring company

A URL link to more details about the merger or acquisition

target_cik?: string | null

The CIK of the target company

V1CalendarsSplits

Get stock splits calendar.
client.active.v1.calendars.splits.getSplitsCalendar(SplitGetSplitsCalendarParams { from, to } query?, RequestOptionsoptions?): SplitGetSplitsCalendarResponse { data }
get/active/v1/calendars/splits
ModelsExpand Collapse
StockSplitEvent { date, denominator, numerator, symbol }

Represents a stock split event

date: string

The date the split will occur

formatdate
denominator: number

The pre-split number of shares

formatint64
numerator: number

The post-split number of shares for every 'denominator' pre-split shares

formatint64
symbol: string

The symbol for the instrument

StockSplitEventList = Array<StockSplitEvent { date, denominator, numerator, symbol } >
date: string

The date the split will occur

formatdate
denominator: number

The pre-split number of shares

formatint64
numerator: number

The post-split number of shares for every 'denominator' pre-split shares

formatint64
symbol: string

The symbol for the instrument

V1CalendarsSummary

Get calendar summary.
client.active.v1.calendars.summary.getCalendarSummary(SummaryGetCalendarSummaryParams { from, to } query?, RequestOptionsoptions?): SummaryGetCalendarSummaryResponse { data }
get/active/v1/calendars/summary
ModelsExpand Collapse
CalendarDateSummary { date, dividends_count, earnings_count, 3 more }

Summary of events for a specific date

date: string

The date of the events

formatdate
dividends_count: number

The number of dividend events on this date

formatint64
earnings_count: number

The number of earnings announcements on this date

formatint64
economic_events_count: number

The number of economic events on this date

formatint64
mergers_acquisitions_count: number

The number of mergers and acquisitions on this date

formatint64
stock_splits_count: number

The number of stock split events on this date

formatint64
CalendarDateSummaryList = Array<CalendarDateSummary { date, dividends_count, earnings_count, 3 more } >
date: string

The date of the events

formatdate
dividends_count: number

The number of dividend events on this date

formatint64
earnings_count: number

The number of earnings announcements on this date

formatint64
economic_events_count: number

The number of economic events on this date

formatint64
mergers_acquisitions_count: number

The number of mergers and acquisitions on this date

formatint64
stock_splits_count: number

The number of stock split events on this date

formatint64

V1Instruments

Get instrument by ID.
client.active.v1.instruments.getInstrumentByID(stringsecurityID, InstrumentGetInstrumentByIDParams { security_id_source } params, RequestOptionsoptions?): InstrumentGetInstrumentByIDResponse { data }
get/active/v1/instruments/{security_id_source}/{security_id}
List instruments.
client.active.v1.instruments.getInstruments(InstrumentGetInstrumentsParams { easy_to_borrow, id_filter, is_liquidation_only, 9 more } query?, RequestOptionsoptions?): InstrumentGetInstrumentsResponse { data }
get/active/v1/instruments
ModelsExpand Collapse
AnalystRating = "STRONG_BUY" | "BUY" | "HOLD" | 2 more

Analyst rating category

Accepts one of the following:
"STRONG_BUY"
"BUY"
"HOLD"
"SELL"
"STRONG_SELL"
Instrument extends InstrumentCore { id, country_of_issue, currency, 17 more } { available_to_borrow, average_volume, beta, 16 more }

Represents a tradable financial instrument, including supplemental information

available_to_borrow?: number | null

The number of shares currently available to borrow

formatint64
average_volume?: number | null

The average daily trading volume over the past 30 days

formatint64
beta?: string | null

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

borrow_fee?: string | null

The fee associated with borrowing the instrument, expressed as a decimal

description?: string | null

A detailed description of the instrument or company

dividend_yield?: string | null

The trailing twelve months (TTM) dividend yield

earnings_per_share?: string | null

The trailing twelve months (TTM) earnings per share

fifty_two_week_high?: string | null

The highest price over the last 52 weeks

fifty_two_week_low?: string | null

The lowest price over the last 52 weeks

industry?: string | null

The specific industry of the instrument's issuer

list_date?: string | null

The date the instrument was first listed

formatdate
logo_url?: string | null

URL to a representative logo image for the instrument or issuer

long_concentration_limit?: string | null

A cap on how much of your equity you can put into a single symbol on the long side

market_cap?: string | null

The total market capitalization

previous_close?: string | null

The closing price from the previous trading day

price_to_earnings?: string | null

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

quote?: InstrumentQuote { high, last_price, low, 2 more } | null

Real-time market quote data for the instrument

high: string

The highest trade price during the current trading day

last_price: string

The most recent trade price

low: string

The lowest trade price during the current trading day

open: string

The opening price for the current trading day

volume: number

The total number of shares traded during the current trading day

formatint64
sector?: string | null

The business sector of the instrument's issuer

short_concentration_limit?: string | null

A cap on how much of your equity you can allocate to a single symbol on the short side

InstrumentCore { id, country_of_issue, currency, 17 more }
id: string

Unique instrument identifier

formatuuid
country_of_issue: string

The ISO country code of the instrument's issue

currency: string

The ISO currency code in which the instrument is traded

easy_to_borrow: boolean

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

is_liquidation_only: boolean

Indicates if the instrument is liquidation only and cannot be bought

is_marginable: boolean

Indicates if the instrument is marginable

is_restricted: boolean

Indicates if the instrument is restricted from trading

is_short_prohibited: boolean

Indicates if short selling is prohibited for the instrument

is_threshold_security: boolean

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

Deprecatedsecurity_id: string

Deprecated. Use security_ids.

A primary security identifier for this instrument.

security_id_source: SecurityIDSource

Deprecated. Use security_ids.

The source for security_id.

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
security_ids: Array<InstrumentSecurityID { security_id, security_id_source } >

All known security identifiers for this instrument

security_id: string

The identifier for the instrument

security_id_source: SecurityIDSource

The source system for the security identifier

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
symbol: string

The trading symbol for the instrument

venue: string

The MIC code of the primary listing venue

expiry?: string | null

The expiration date for options instruments

formatdate
long_margin_rate?: string | null

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

name?: string | null

The full name of the instrument or its issuer

security_type?: SecurityType | null

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

Accepts one of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"CORPORATE_BOND"
"OPTION"
"FUTURE"
"WARRANT"
"CASH"
"OTHER"
short_margin_rate?: string | null

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

strike_price?: string | null

The strike price for options instruments

InstrumentCoreList = Array<InstrumentCore { id, country_of_issue, currency, 17 more } >
id: string

Unique instrument identifier

formatuuid
country_of_issue: string

The ISO country code of the instrument's issue

currency: string

The ISO currency code in which the instrument is traded

easy_to_borrow: boolean

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

is_liquidation_only: boolean

Indicates if the instrument is liquidation only and cannot be bought

is_marginable: boolean

Indicates if the instrument is marginable

is_restricted: boolean

Indicates if the instrument is restricted from trading

is_short_prohibited: boolean

Indicates if short selling is prohibited for the instrument

is_threshold_security: boolean

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

Deprecatedsecurity_id: string

Deprecated. Use security_ids.

A primary security identifier for this instrument.

security_id_source: SecurityIDSource

Deprecated. Use security_ids.

The source for security_id.

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
security_ids: Array<InstrumentSecurityID { security_id, security_id_source } >

All known security identifiers for this instrument

security_id: string

The identifier for the instrument

security_id_source: SecurityIDSource

The source system for the security identifier

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
symbol: string

The trading symbol for the instrument

venue: string

The MIC code of the primary listing venue

expiry?: string | null

The expiration date for options instruments

formatdate
long_margin_rate?: string | null

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

name?: string | null

The full name of the instrument or its issuer

security_type?: SecurityType | null

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

Accepts one of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"CORPORATE_BOND"
"OPTION"
"FUTURE"
"WARRANT"
"CASH"
"OTHER"
short_margin_rate?: string | null

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

strike_price?: string | null

The strike price for options instruments

InstrumentEarnings { date, eps_actual, eps_estimate, 4 more }

Represents instrument earnings data

date: string

The date when the earnings report was published

formatdate
eps_actual?: string | null

The actual earnings per share (EPS) for the period

eps_estimate?: string | null

The estimated earnings per share (EPS) for the period

eps_surprise_percent?: string | null

The percentage difference between actual and estimated EPS

revenue_actual?: string | null

The actual total revenue for the period

revenue_estimate?: string | null

The estimated total revenue for the period

revenue_surprise_percent?: string | null

The percentage difference between actual and estimated revenue

InstrumentQuote { high, last_price, low, 2 more }

Real-time market quote data for a specific instrument

high: string

The highest trade price during the current trading day

last_price: string

The most recent trade price

low: string

The lowest trade price during the current trading day

open: string

The opening price for the current trading day

volume: number

The total number of shares traded during the current trading day

formatint64
InstrumentSecurityID { security_id, security_id_source }

Represents a tradable financial instrument, as a more concise item listing only key fields.

security_id: string

The identifier for the instrument

security_id_source: SecurityIDSource

The source system for the security identifier

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"

V1InstrumentsAnalyst Reporting

Get analyst consensus.
client.active.v1.instruments.analystReporting.getInstrumentAnalystConsensus(stringsecurityID, AnalystReportingGetInstrumentAnalystConsensusParams { security_id_source, from, to } params, RequestOptionsoptions?): AnalystReportingGetInstrumentAnalystConsensusResponse { data }
get/active/v1/instruments/{security_id_source}/{security_id}/analyst-reporting
ModelsExpand Collapse
AnalystDistribution { buy, hold, sell, 2 more }

Analyst recommendation distribution

buy: number

Number of buy recommendations

formatint64
hold: number

Number of hold recommendations

formatint64
sell: number

Number of sell recommendations

formatint64
strong_buy: number

Number of strong buy recommendations

formatint64
strong_sell: number

Number of strong sell recommendations

formatint64
InstrumentAnalystConsensus { date, distribution, price_target, rating }

Aggregated analyst consensus metrics

date: string

The date the consensus snapshot was generated

formatdate
distribution?: AnalystDistribution { buy, hold, sell, 2 more } | null

Count of individual analyst recommendations by category

buy: number

Number of buy recommendations

formatint64
hold: number

Number of hold recommendations

formatint64
sell: number

Number of sell recommendations

formatint64
strong_buy: number

Number of strong buy recommendations

formatint64
strong_sell: number

Number of strong sell recommendations

formatint64
price_target?: PriceTarget { average, currency, high, low } | null

Aggregated analyst price target statistics

average: string

Average analyst price target

currency: string

ISO 4217 currency code of the price targets

high: string

Highest analyst price target

low: string

Lowest analyst price target

rating?: AnalystRating | null

Consensus analyst rating

Accepts one of the following:
"STRONG_BUY"
"BUY"
"HOLD"
"SELL"
"STRONG_SELL"
PriceTarget { average, currency, high, low }

Analyst price target statistics

average: string

Average analyst price target

currency: string

ISO 4217 currency code of the price targets

high: string

Highest analyst price target

low: string

Lowest analyst price target

V1InstrumentsEvents

List instrument events across all securities.
client.active.v1.instruments.events.getAllInstrumentEvents(EventGetAllInstrumentEventsParams { event_types, from_date, instrument_ids, 3 more } query?, RequestOptionsoptions?): EventGetAllInstrumentEventsResponse { data }
get/active/v1/instruments/events
Get instrument events.
client.active.v1.instruments.events.getInstrumentEvents(stringsecurityID, EventGetInstrumentEventsParams { security_id_source, from_date, to_date } params, RequestOptionsoptions?): EventGetInstrumentEventsResponse { data }
get/active/v1/instruments/{security_id_source}/{security_id}/events
ModelsExpand Collapse
AllEventsEventType = "EARNINGS" | "DIVIDEND" | "STOCK_SPLIT" | "IPO"

Event types supported by the all-events endpoint.

Accepts one of the following:
"EARNINGS"
"DIVIDEND"
"STOCK_SPLIT"
"IPO"
InstrumentAllEventsData { event_dates }

All-events payload grouped by date.

event_dates: Array<InstrumentEventsByDate { date, events } >

Events grouped by date in descending order.

date: string

Event date.

formatdate
events: Array<InstrumentEventEnvelope { security_id, security_id_source, symbol, 7 more } >

Flat event envelopes for this date.

security_id: string

Security identifier for the event.

security_id_source: SecurityIDSource

Security identifier source for the event.

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
symbol: string

Symbol associated with the event.

Event type discriminator.

Accepts one of the following:
"EARNINGS"
"DIVIDEND"
"STOCK_SPLIT"
"IPO"
dividend_event_data?: InstrumentDividendEvent { adjusted_dividend_amount, ex_date, declaration_date, 5 more } | null

Dividend payload when type is DIVIDEND.

adjusted_dividend_amount: string

The adjusted dividend amount accounting for any splits.

ex_date: string

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

formatdate
declaration_date?: string | null

The declaration date of the dividend

formatdate
dividend_amount?: string | null

The dividend amount per share.

dividend_yield?: string | null

The dividend yield as a percentage of the stock price.

frequency?: string | null

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

payment_date?: string | null

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

formatdate
record_date?: string | null

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

formatdate
earnings_event_data?: InstrumentEarnings { date, eps_actual, eps_estimate, 4 more } | null

Earnings payload when type is EARNINGS.

date: string

The date when the earnings report was published

formatdate
eps_actual?: string | null

The actual earnings per share (EPS) for the period

eps_estimate?: string | null

The estimated earnings per share (EPS) for the period

eps_surprise_percent?: string | null

The percentage difference between actual and estimated EPS

revenue_actual?: string | null

The actual total revenue for the period

revenue_estimate?: string | null

The estimated total revenue for the period

revenue_surprise_percent?: string | null

The percentage difference between actual and estimated revenue

instrument_id?: string | null

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

formatuuid
ipo_event_data?: InstrumentEventIpoItem { actions, announced_at, company, 4 more } | null

IPO payload when type is IPO.

actions?: string | null

IPO action.

announced_at?: string | null

IPO announced timestamp.

formatdate-time
company?: string | null

IPO company name.

exchange?: string | null

IPO exchange.

market_cap?: string | null

IPO market cap.

price_range?: string | null

IPO price range.

shares?: string | null

IPO shares offered.

name?: string | null

Instrument name associated with the event, when available.

stock_split_event_data?: InstrumentSplitEvent { date, denominator, numerator, split_type } | null

Stock split payload when type is STOCK_SPLIT.

date: string

The date of the stock split

formatdate
denominator: string

The denominator of the split ratio

numerator: string

The numerator of the split ratio

split_type: string

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

InstrumentDividendEvent { adjusted_dividend_amount, ex_date, declaration_date, 5 more }

Represents a dividend event for an instrument

adjusted_dividend_amount: string

The adjusted dividend amount accounting for any splits.

ex_date: string

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

formatdate
declaration_date?: string | null

The declaration date of the dividend

formatdate
dividend_amount?: string | null

The dividend amount per share.

dividend_yield?: string | null

The dividend yield as a percentage of the stock price.

frequency?: string | null

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

payment_date?: string | null

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

formatdate
record_date?: string | null

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

formatdate
InstrumentEventEnvelope { security_id, security_id_source, symbol, 7 more }

Unified envelope for the all-events response.

security_id: string

Security identifier for the event.

security_id_source: SecurityIDSource

Security identifier source for the event.

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
symbol: string

Symbol associated with the event.

Event type discriminator.

Accepts one of the following:
"EARNINGS"
"DIVIDEND"
"STOCK_SPLIT"
"IPO"
dividend_event_data?: InstrumentDividendEvent { adjusted_dividend_amount, ex_date, declaration_date, 5 more } | null

Dividend payload when type is DIVIDEND.

adjusted_dividend_amount: string

The adjusted dividend amount accounting for any splits.

ex_date: string

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

formatdate
declaration_date?: string | null

The declaration date of the dividend

formatdate
dividend_amount?: string | null

The dividend amount per share.

dividend_yield?: string | null

The dividend yield as a percentage of the stock price.

frequency?: string | null

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

payment_date?: string | null

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

formatdate
record_date?: string | null

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

formatdate
earnings_event_data?: InstrumentEarnings { date, eps_actual, eps_estimate, 4 more } | null

Earnings payload when type is EARNINGS.

date: string

The date when the earnings report was published

formatdate
eps_actual?: string | null

The actual earnings per share (EPS) for the period

eps_estimate?: string | null

The estimated earnings per share (EPS) for the period

eps_surprise_percent?: string | null

The percentage difference between actual and estimated EPS

revenue_actual?: string | null

The actual total revenue for the period

revenue_estimate?: string | null

The estimated total revenue for the period

revenue_surprise_percent?: string | null

The percentage difference between actual and estimated revenue

instrument_id?: string | null

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

formatuuid
ipo_event_data?: InstrumentEventIpoItem { actions, announced_at, company, 4 more } | null

IPO payload when type is IPO.

actions?: string | null

IPO action.

announced_at?: string | null

IPO announced timestamp.

formatdate-time
company?: string | null

IPO company name.

exchange?: string | null

IPO exchange.

market_cap?: string | null

IPO market cap.

price_range?: string | null

IPO price range.

shares?: string | null

IPO shares offered.

name?: string | null

Instrument name associated with the event, when available.

stock_split_event_data?: InstrumentSplitEvent { date, denominator, numerator, split_type } | null

Stock split payload when type is STOCK_SPLIT.

date: string

The date of the stock split

formatdate
denominator: string

The denominator of the split ratio

numerator: string

The numerator of the split ratio

split_type: string

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

InstrumentEventIpoItem { actions, announced_at, company, 4 more }

IPO event in the all-events date grouping response.

actions?: string | null

IPO action.

announced_at?: string | null

IPO announced timestamp.

formatdate-time
company?: string | null

IPO company name.

exchange?: string | null

IPO exchange.

market_cap?: string | null

IPO market cap.

price_range?: string | null

IPO price range.

shares?: string | null

IPO shares offered.

InstrumentEventsByDate { date, events }

Instrument events for a single date.

date: string

Event date.

formatdate
events: Array<InstrumentEventEnvelope { security_id, security_id_source, symbol, 7 more } >

Flat event envelopes for this date.

security_id: string

Security identifier for the event.

security_id_source: SecurityIDSource

Security identifier source for the event.

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
symbol: string

Symbol associated with the event.

Event type discriminator.

Accepts one of the following:
"EARNINGS"
"DIVIDEND"
"STOCK_SPLIT"
"IPO"
dividend_event_data?: InstrumentDividendEvent { adjusted_dividend_amount, ex_date, declaration_date, 5 more } | null

Dividend payload when type is DIVIDEND.

adjusted_dividend_amount: string

The adjusted dividend amount accounting for any splits.

ex_date: string

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

formatdate
declaration_date?: string | null

The declaration date of the dividend

formatdate
dividend_amount?: string | null

The dividend amount per share.

dividend_yield?: string | null

The dividend yield as a percentage of the stock price.

frequency?: string | null

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

payment_date?: string | null

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

formatdate
record_date?: string | null

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

formatdate
earnings_event_data?: InstrumentEarnings { date, eps_actual, eps_estimate, 4 more } | null

Earnings payload when type is EARNINGS.

date: string

The date when the earnings report was published

formatdate
eps_actual?: string | null

The actual earnings per share (EPS) for the period

eps_estimate?: string | null

The estimated earnings per share (EPS) for the period

eps_surprise_percent?: string | null

The percentage difference between actual and estimated EPS

revenue_actual?: string | null

The actual total revenue for the period

revenue_estimate?: string | null

The estimated total revenue for the period

revenue_surprise_percent?: string | null

The percentage difference between actual and estimated revenue

instrument_id?: string | null

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

formatuuid
ipo_event_data?: InstrumentEventIpoItem { actions, announced_at, company, 4 more } | null

IPO payload when type is IPO.

actions?: string | null

IPO action.

announced_at?: string | null

IPO announced timestamp.

formatdate-time
company?: string | null

IPO company name.

exchange?: string | null

IPO exchange.

market_cap?: string | null

IPO market cap.

price_range?: string | null

IPO price range.

shares?: string | null

IPO shares offered.

name?: string | null

Instrument name associated with the event, when available.

stock_split_event_data?: InstrumentSplitEvent { date, denominator, numerator, split_type } | null

Stock split payload when type is STOCK_SPLIT.

date: string

The date of the stock split

formatdate
denominator: string

The denominator of the split ratio

numerator: string

The numerator of the split ratio

split_type: string

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

InstrumentEventsData { dividends, earnings, security_id, 2 more }

Grouped instrument events by type

dividends: Array<InstrumentDividendEvent { adjusted_dividend_amount, ex_date, declaration_date, 5 more } >

Dividend distribution events

adjusted_dividend_amount: string

The adjusted dividend amount accounting for any splits.

ex_date: string

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

formatdate
declaration_date?: string | null

The declaration date of the dividend

formatdate
dividend_amount?: string | null

The dividend amount per share.

dividend_yield?: string | null

The dividend yield as a percentage of the stock price.

frequency?: string | null

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

payment_date?: string | null

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

formatdate
record_date?: string | null

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

formatdate
earnings: Array<InstrumentEarnings { date, eps_actual, eps_estimate, 4 more } >

Earnings announcement events

date: string

The date when the earnings report was published

formatdate
eps_actual?: string | null

The actual earnings per share (EPS) for the period

eps_estimate?: string | null

The estimated earnings per share (EPS) for the period

eps_surprise_percent?: string | null

The percentage difference between actual and estimated EPS

revenue_actual?: string | null

The actual total revenue for the period

revenue_estimate?: string | null

The estimated total revenue for the period

revenue_surprise_percent?: string | null

The percentage difference between actual and estimated revenue

security_id: string

The security ID from the request

security_id_source: SecurityIDSource

The security ID source from the request

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
splits: Array<InstrumentSplitEvent { date, denominator, numerator, split_type } >

Stock split events

date: string

The date of the stock split

formatdate
denominator: string

The denominator of the split ratio

numerator: string

The numerator of the split ratio

split_type: string

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

InstrumentSplitEvent { date, denominator, numerator, split_type }

Represents a stock split event for an instrument

date: string

The date of the stock split

formatdate
denominator: string

The denominator of the split ratio

numerator: string

The numerator of the split ratio

split_type: string

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

V1InstrumentsReporting

Get instrument reporting data.
client.active.v1.instruments.reporting.getInstrumentReporting(stringsecurityID, ReportingGetInstrumentReportingParams { security_id_source, from, to } params, RequestOptionsoptions?): ReportingGetInstrumentReportingResponse { data }
get/active/v1/instruments/{security_id_source}/{security_id}/reporting

V1InstrumentsVenues

Get trading venues.
client.active.v1.instruments.venues.getVenues(RequestOptionsoptions?): VenueGetVenuesResponse { data }
get/active/v1/instruments/venues
ModelsExpand Collapse
DisplayType = "LIT" | "DARK" | "PERIODIC_AUCTION" | "RFQ"

Display characteristics of a venue

Accepts one of the following:
"LIT"
"DARK"
"PERIODIC_AUCTION"
"RFQ"
GtdAccepts { date, timestamp }

Good-till-date order acceptance capabilities

date: boolean

Whether the venue accepts date-only expiration (YYYY-MM-DD)

timestamp: boolean

Whether the venue accepts precise timestamp expiration

Venue { country, display_type, gtd_accepts, 8 more }

A trading venue with its characteristics and capabilities

country: string

The ISO country code where the venue operates

display_type: DisplayType

The display characteristics of the venue

Accepts one of the following:
"LIT"
"DARK"
"PERIODIC_AUCTION"
"RFQ"
gtd_accepts: GtdAccepts { date, timestamp }

Indicates whether GOOD_TILL_DATE orders accept date-only or timestamp specifications

date: boolean

Whether the venue accepts date-only expiration (YYYY-MM-DD)

timestamp: boolean

Whether the venue accepts precise timestamp expiration

lot_size: number

The minimum quantity increment for orders at this venue

formatint64
mic: string

The Market Identifier Code (MIC) for the venue

name: string

The display name of the venue

sessions: Array<VenueSession { end_local, name, start_local } >

Trading sessions available at this venue

end_local: string

Session end time in venue's local timezone (HH:MM format, 24-hour)

name: string

The name of the trading session

start_local: string

Session start time in venue's local timezone (HH:MM format, 24-hour)

supported_order_types: Array<string>

Order types supported by this venue

supported_tifs: Array<string>

Time-in-force options supported by this venue

tick_size: string

The minimum price increment for orders at this venue

timezone: string

IANA timezone identifier for the venue's local time

VenueList = Array<Venue { country, display_type, gtd_accepts, 8 more } >
country: string

The ISO country code where the venue operates

display_type: DisplayType

The display characteristics of the venue

Accepts one of the following:
"LIT"
"DARK"
"PERIODIC_AUCTION"
"RFQ"
gtd_accepts: GtdAccepts { date, timestamp }

Indicates whether GOOD_TILL_DATE orders accept date-only or timestamp specifications

date: boolean

Whether the venue accepts date-only expiration (YYYY-MM-DD)

timestamp: boolean

Whether the venue accepts precise timestamp expiration

lot_size: number

The minimum quantity increment for orders at this venue

formatint64
mic: string

The Market Identifier Code (MIC) for the venue

name: string

The display name of the venue

sessions: Array<VenueSession { end_local, name, start_local } >

Trading sessions available at this venue

end_local: string

Session end time in venue's local timezone (HH:MM format, 24-hour)

name: string

The name of the trading session

start_local: string

Session start time in venue's local timezone (HH:MM format, 24-hour)

supported_order_types: Array<string>

Order types supported by this venue

supported_tifs: Array<string>

Time-in-force options supported by this venue

tick_size: string

The minimum price increment for orders at this venue

timezone: string

IANA timezone identifier for the venue's local time

VenueSession { end_local, name, start_local }

A trading session within a venue's trading day

end_local: string

Session end time in venue's local timezone (HH:MM format, 24-hour)

name: string

The name of the trading session

start_local: string

Session start time in venue's local timezone (HH:MM format, 24-hour)

V1Iris

V1IrisFeedback

Create feedback on a message (deprecated).
Deprecated
client.active.v1.iris.feedback.createFeedbackDeprecated(FeedbackCreateFeedbackDeprecatedParams { account_id, message_id, score, 3 more } body, RequestOptionsoptions?): FeedbackCreateFeedbackDeprecatedResponse { data }
post/active/v1/iris/feedback

V1IrisRuns

Cancel a running assistant run (deprecated).
Deprecated
client.active.v1.iris.runs.cancelRunDeprecated(stringrunID, RunCancelRunDeprecatedParams { account_id, reason } body, RequestOptionsoptions?): RunCancelRunDeprecatedResponse { data }
delete/active/v1/iris/runs/{run_id}
Get run status and events (deprecated).
Deprecated
client.active.v1.iris.runs.getRunDeprecated(stringrunID, RunGetRunDeprecatedParams { account_id, page_size, page_token } query, RequestOptionsoptions?): RunGetRunDeprecatedResponse { data }
get/active/v1/iris/runs/{run_id}
Start a new assistant run (deprecated).
Deprecated
client.active.v1.iris.runs.startRunDeprecated(RunStartRunDeprecatedParams { account_id, command_text, capabilities, 7 more } body, RequestOptionsoptions?): RunStartRunDeprecatedResponse { data }
post/active/v1/iris/runs

V1IrisThreads

Get a specific thread (deprecated).
Deprecated
client.active.v1.iris.threads.getThreadDeprecated(stringthreadID, ThreadGetThreadDeprecatedParams { account_id } query, RequestOptionsoptions?): ThreadGetThreadDeprecatedResponse { data }
get/active/v1/iris/threads/{thread_id}
List conversation threads (deprecated).
Deprecated
client.active.v1.iris.threads.listThreadsDeprecated(ThreadListThreadsDeprecatedParams { account_id, page_size, page_token } query, RequestOptionsoptions?): ThreadListThreadsDeprecatedResponse { data }
get/active/v1/iris/threads

V1IrisThreadsMessages

List messages in a thread (deprecated).
Deprecated
client.active.v1.iris.threads.messages.listMessagesDeprecated(stringthreadID, MessageListMessagesDeprecatedParams { account_id, after_seq, page_size, page_token } query, RequestOptionsoptions?): MessageListMessagesDeprecatedResponse { data }
get/active/v1/iris/threads/{thread_id}/messages

V1Market Data

V1Market DataSnapshot

Get market data snapshots for one or more securities.
client.active.v1.marketData.snapshot.getSnapshots(SnapshotGetSnapshotsParams { ids, security_id, security_id_source } query?, RequestOptionsoptions?): SnapshotGetSnapshotsResponse { data }
get/active/v1/market-data/snapshot
ModelsExpand Collapse
MarketDataSnapshot { instrument_id, symbol, last_quote, 3 more }

Market data snapshot for a single security.

instrument_id: string

OEMS instrument identifier.

symbol: string

Display symbol for the security.

last_quote?: SnapshotQuote { ask, bid, midpoint, 2 more } | null

Most recent quote if available.

ask: string

Current best ask.

bid: string

Current best bid.

midpoint: string

Midpoint of bid and ask.

ask_size?: number | null

Size at the best ask, in shares.

formatint32
minimum0
bid_size?: number | null

Size at the best bid, in shares.

formatint32
minimum0
last_trade?: SnapshotLastTrade { price } | null

Most recent last-sale trade if available.

price: string

Most recent last-sale eligible trade price.

name?: string | null

Security name if available.

session?: SnapshotSession { change, change_percent, previous_close } | null

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

change: string

Absolute change from previous close to last trade.

change_percent: string

Percent change from previous close to last trade.

previous_close: string

Previous session close price.

MarketDataSnapshotList = Array<MarketDataSnapshot { instrument_id, symbol, last_quote, 3 more } >
instrument_id: string

OEMS instrument identifier.

symbol: string

Display symbol for the security.

last_quote?: SnapshotQuote { ask, bid, midpoint, 2 more } | null

Most recent quote if available.

ask: string

Current best ask.

bid: string

Current best bid.

midpoint: string

Midpoint of bid and ask.

ask_size?: number | null

Size at the best ask, in shares.

formatint32
minimum0
bid_size?: number | null

Size at the best bid, in shares.

formatint32
minimum0
last_trade?: SnapshotLastTrade { price } | null

Most recent last-sale trade if available.

price: string

Most recent last-sale eligible trade price.

name?: string | null

Security name if available.

session?: SnapshotSession { change, change_percent, previous_close } | null

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

change: string

Absolute change from previous close to last trade.

change_percent: string

Percent change from previous close to last trade.

previous_close: string

Previous session close price.

SnapshotLastTrade { price }

Last-trade fields for a market data snapshot.

price: string

Most recent last-sale eligible trade price.

SnapshotQuote { ask, bid, midpoint, 2 more }

L1 quote fields for a market data snapshot.

ask: string

Current best ask.

bid: string

Current best bid.

midpoint: string

Midpoint of bid and ask.

ask_size?: number | null

Size at the best ask, in shares.

formatint32
minimum0
bid_size?: number | null

Size at the best bid, in shares.

formatint32
minimum0
SnapshotSession { change, change_percent, previous_close }

Session-level pricing metrics for a market data snapshot.

change: string

Absolute change from previous close to last trade.

change_percent: string

Percent change from previous close to last trade.

previous_close: string

Previous session close price.

V1News

Get news.
client.active.v1.news.getNews(NewsGetNewsParams { exclude_publishers, from, include_publishers, 8 more } query?, RequestOptionsoptions?): NewsGetNewsResponse { data }
get/active/v1/news
ModelsExpand Collapse
NewsInstrument { security_id, security_id_source, instrument_id, 2 more }

Instrument associated with a news item.

security_id: string

Security identifier value.

security_id_source: SecurityIDSource

Security identifier source.

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
instrument_id?: string | null

OEMS instrument UUID, if available from instrument cache enrichment.

formatuuid
name?: string | null

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

symbol?: string | null

Trading symbol, if available from instrument cache enrichment.

NewsItem { instruments, news_type, published_at, 6 more }

A single news item and its associated instruments.

instruments: Array<NewsInstrument { security_id, security_id_source, instrument_id, 2 more } >

Instruments associated with this news item.

security_id: string

Security identifier value.

security_id_source: SecurityIDSource

Security identifier source.

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
instrument_id?: string | null

OEMS instrument UUID, if available from instrument cache enrichment.

formatuuid
name?: string | null

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

symbol?: string | null

Trading symbol, if available from instrument cache enrichment.

news_type: NewsType

Classification of the item.

Accepts one of the following:
"NEWS"
"PRESS_RELEASE"
published_at: string

The published date/time of the article in UTC.

formatdate-time
publisher: string

The publisher or newswire source.

title: string

The headline/title of the article.

url: string

Canonical URL to the full article.

image_url?: string | null

URL of an associated image if provided by the source.

site?: string | null

The primary domain/site of the publisher.

text?: string | null

The full or excerpted article body.

NewsItemList = Array<NewsItem { instruments, news_type, published_at, 6 more } >
instruments: Array<NewsInstrument { security_id, security_id_source, instrument_id, 2 more } >

Instruments associated with this news item.

security_id: string

Security identifier value.

security_id_source: SecurityIDSource

Security identifier source.

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
instrument_id?: string | null

OEMS instrument UUID, if available from instrument cache enrichment.

formatuuid
name?: string | null

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

symbol?: string | null

Trading symbol, if available from instrument cache enrichment.

news_type: NewsType

Classification of the item.

Accepts one of the following:
"NEWS"
"PRESS_RELEASE"
published_at: string

The published date/time of the article in UTC.

formatdate-time
publisher: string

The publisher or newswire source.

title: string

The headline/title of the article.

url: string

Canonical URL to the full article.

image_url?: string | null

URL of an associated image if provided by the source.

site?: string | null

The primary domain/site of the publisher.

text?: string | null

The full or excerpted article body.

NewsType = "NEWS" | "PRESS_RELEASE"

News item classification.

Accepts one of the following:
"NEWS"
"PRESS_RELEASE"

V1Omni AI

ModelsExpand Collapse
CancelRunResponse { canceled }
canceled: boolean
Capability = "NAVIGATE" | "OPEN_CHAT_WINDOW" | "PREFILL_ORDER" | 2 more

Capability allowlist for structured actions.

Clients declare which capabilities they support when starting a run. Omni AI will only emit structured actions that match the declared capabilities.

Accepts one of the following:
"NAVIGATE"
"OPEN_CHAT_WINDOW"
"PREFILL_ORDER"
"OPEN_CHART"
"OPEN_SCREENER"
ContentPart = Text { type } | PrefillOrder { action_type, type } | OpenChart { action_type, type } | OpenScreener { action_type, type } | 2 more | Type { type }

A single content part (text or structured action).

Accepts one of the following:
Text extends ContentPartText { text } { type }

Plain text content

type: "text"
Accepts one of the following:
"text"
PrefillOrder { action_type, type } | OpenChart { action_type, type } | OpenScreener { action_type, type } | 2 more
PrefillOrder extends PrefillOrderAction { orders, account_id } { action_type, type }

Prefill an order ticket for user confirmation

action_type: "prefill_order"
Accepts one of the following:
"prefill_order"
type?: "structured_action"
Accepts one of the following:
"structured_action"
OpenChart extends OpenChartAction { symbol, extras, timeframe } { action_type, type }

Open a chart for a symbol

action_type: "open_chart"
Accepts one of the following:
"open_chart"
type?: "structured_action"
Accepts one of the following:
"structured_action"
OpenScreener extends OpenScreenerAction { filters, field_filter, page_size, 2 more } { action_type, type }

Open a stock screener with filters

action_type: "open_screener"
Accepts one of the following:
"open_screener"
type?: "structured_action"
Accepts one of the following:
"structured_action"
OpenChatWindow extends OpenChatWindowAction { extras, thread_id, title } { action_type, type }

Open a chat window

action_type: "open_chat_window"
Accepts one of the following:
"open_chat_window"
type?: "structured_action"
Accepts one of the following:
"structured_action"
Navigate extends NavigateAction { route, params } { action_type, type }

Navigate to a client route

action_type: "navigate"
Accepts one of the following:
"navigate"
type?: "structured_action"
Accepts one of the following:
"structured_action"
Type { type }

Custom/extensible content

type: "custom"
Accepts one of the following:
"custom"
ContentPartText { text }
text: string
CreateFeedbackResponse { created_at, feedback_id }
created_at: string
feedback_id?: string | null
GetRunResponse { events, run, next_page_token }
events: Array<unknown>
run: Run { created_at, model, provider, 10 more }
created_at: string
model: string
provider: string
status: RunStatus
Accepts one of the following:
"UNSPECIFIED"
"QUEUED"
"RUNNING"
"SUCCEEDED"
"FAILED"
"CANCELED"
id?: string | null
capabilities?: Array<Capability>
Accepts one of the following:
"NAVIGATE"
"OPEN_CHAT_WINDOW"
"PREFILL_ORDER"
"OPEN_CHART"
"OPEN_SCREENER"
ended_at?: string | null
error?: unknown
metadata?: unknown
parameters?: unknown
started_at?: string | null
thread_id?: string | null
usage?: unknown
next_page_token?: string | null
GetThreadResponse { thread }
thread: Thread { account_id, created_at, description, 5 more }
account_id: string
created_at: string
description: string
owner_user_id: string
title: string
updated_at: string
id?: string | null
metadata?: unknown
ListMessagesResponse { messages, next_page_token }
messages: Array<Message { content_text, created_at, role, 7 more } >
content_text: string

Denormalized text content for search/display

created_at: string
Accepts one of the following:
"UNSPECIFIED"
"SYSTEM"
"USER"
"ASSISTANT"
"TOOL"
seq: number
id?: string | null
author_user_id?: string | null
content?: MessageContent { parts } | null

Parsed content parts (text and structured actions)

parts: Array<ContentPart>
Accepts one of the following:
Text extends ContentPartText { text } { type }

Plain text content

type: "text"
Accepts one of the following:
"text"
PrefillOrder { action_type, type } | OpenChart { action_type, type } | OpenScreener { action_type, type } | 2 more
PrefillOrder extends PrefillOrderAction { orders, account_id } { action_type, type }

Prefill an order ticket for user confirmation

action_type: "prefill_order"
Accepts one of the following:
"prefill_order"
type?: "structured_action"
Accepts one of the following:
"structured_action"
OpenChart extends OpenChartAction { symbol, extras, timeframe } { action_type, type }

Open a chart for a symbol

action_type: "open_chart"
Accepts one of the following:
"open_chart"
type?: "structured_action"
Accepts one of the following:
"structured_action"
OpenScreener extends OpenScreenerAction { filters, field_filter, page_size, 2 more } { action_type, type }

Open a stock screener with filters

action_type: "open_screener"
Accepts one of the following:
"open_screener"
type?: "structured_action"
Accepts one of the following:
"structured_action"
OpenChatWindow extends OpenChatWindowAction { extras, thread_id, title } { action_type, type }

Open a chat window

action_type: "open_chat_window"
Accepts one of the following:
"open_chat_window"
type?: "structured_action"
Accepts one of the following:
"structured_action"
Navigate extends NavigateAction { route, params } { action_type, type }

Navigate to a client route

action_type: "navigate"
Accepts one of the following:
"navigate"
type?: "structured_action"
Accepts one of the following:
"structured_action"
Type { type }

Custom/extensible content

type: "custom"
Accepts one of the following:
"custom"
metadata?: unknown
run_id?: string | null
thread_id?: string | null
next_page_token?: string | null
ListThreadsResponse { threads, next_page_token }
threads: Array<Thread { account_id, created_at, description, 5 more } >
account_id: string
created_at: string
description: string
owner_user_id: string
title: string
updated_at: string
id?: string | null
metadata?: unknown
next_page_token?: string | null
Message { content_text, created_at, role, 7 more }
content_text: string

Denormalized text content for search/display

created_at: string
Accepts one of the following:
"UNSPECIFIED"
"SYSTEM"
"USER"
"ASSISTANT"
"TOOL"
seq: number
id?: string | null
author_user_id?: string | null
content?: MessageContent { parts } | null

Parsed content parts (text and structured actions)

parts: Array<ContentPart>
Accepts one of the following:
Text extends ContentPartText { text } { type }

Plain text content

type: "text"
Accepts one of the following:
"text"
PrefillOrder { action_type, type } | OpenChart { action_type, type } | OpenScreener { action_type, type } | 2 more
PrefillOrder extends PrefillOrderAction { orders, account_id } { action_type, type }

Prefill an order ticket for user confirmation

action_type: "prefill_order"
Accepts one of the following:
"prefill_order"
type?: "structured_action"
Accepts one of the following:
"structured_action"
OpenChart extends OpenChartAction { symbol, extras, timeframe } { action_type, type }

Open a chart for a symbol

action_type: "open_chart"
Accepts one of the following:
"open_chart"
type?: "structured_action"
Accepts one of the following:
"structured_action"
OpenScreener extends OpenScreenerAction { filters, field_filter, page_size, 2 more } { action_type, type }

Open a stock screener with filters

action_type: "open_screener"
Accepts one of the following:
"open_screener"
type?: "structured_action"
Accepts one of the following:
"structured_action"
OpenChatWindow extends OpenChatWindowAction { extras, thread_id, title } { action_type, type }

Open a chat window

action_type: "open_chat_window"
Accepts one of the following:
"open_chat_window"
type?: "structured_action"
Accepts one of the following:
"structured_action"
Navigate extends NavigateAction { route, params } { action_type, type }

Navigate to a client route

action_type: "navigate"
Accepts one of the following:
"navigate"
type?: "structured_action"
Accepts one of the following:
"structured_action"
Type { type }

Custom/extensible content

type: "custom"
Accepts one of the following:
"custom"
metadata?: unknown
run_id?: string | null
thread_id?: string | null
MessageContent { parts }

Message content containing text and structured action parts.

parts: Array<ContentPart>
Accepts one of the following:
Text extends ContentPartText { text } { type }

Plain text content

type: "text"
Accepts one of the following:
"text"
PrefillOrder { action_type, type } | OpenChart { action_type, type } | OpenScreener { action_type, type } | 2 more
PrefillOrder extends PrefillOrderAction { orders, account_id } { action_type, type }

Prefill an order ticket for user confirmation

action_type: "prefill_order"
Accepts one of the following:
"prefill_order"
type?: "structured_action"
Accepts one of the following:
"structured_action"
OpenChart extends OpenChartAction { symbol, extras, timeframe } { action_type, type }

Open a chart for a symbol

action_type: "open_chart"
Accepts one of the following:
"open_chart"
type?: "structured_action"
Accepts one of the following:
"structured_action"
OpenScreener extends OpenScreenerAction { filters, field_filter, page_size, 2 more } { action_type, type }

Open a stock screener with filters

action_type: "open_screener"
Accepts one of the following:
"open_screener"
type?: "structured_action"
Accepts one of the following:
"structured_action"
OpenChatWindow extends OpenChatWindowAction { extras, thread_id, title } { action_type, type }

Open a chat window

action_type: "open_chat_window"
Accepts one of the following:
"open_chat_window"
type?: "structured_action"
Accepts one of the following:
"structured_action"
Navigate extends NavigateAction { route, params } { action_type, type }

Navigate to a client route

action_type: "navigate"
Accepts one of the following:
"navigate"
type?: "structured_action"
Accepts one of the following:
"structured_action"
Type { type }

Custom/extensible content

type: "custom"
Accepts one of the following:
"custom"
MessageRole = "UNSPECIFIED" | "SYSTEM" | "USER" | 2 more
Accepts one of the following:
"UNSPECIFIED"
"SYSTEM"
"USER"
"ASSISTANT"
"TOOL"

Action to navigate to a client route.

Route path or key

Route parameters

OpenChartAction { symbol, extras, timeframe }

Action to open a chart for a symbol.

symbol: string

Trading symbol to chart

extras?: unknown

Additional chart configuration (indicators, overlays, etc.)

timeframe?: string | null

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

OpenChatWindowAction { extras, thread_id, title }

Action to open a chat window.

extras?: unknown

Additional configuration

thread_id?: string | null

Thread ID to open (None to open a new chat window)

title?: string | null

Window title

OpenScreenerAction { filters, field_filter, page_size, 2 more }

Action to open a stock screener with filters.

filters: Array<ScreenerFilter { field, operator, value } >

Filter criteria for the screener

field: string

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

operator: string

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

value: unknown

Filter value

field_filter?: Array<string> | null

Optional field/column selection for screener results.

page_size?: number | null

Optional page size.

formatint32
sort_by?: string | null

Optional sort field for screener rows.

sort_direction?: string | null

Optional sort direction (ASC or DESC).

OrderPayload { order_type, quantity, security_type, 6 more }

Order payload for prefilling an order ticket.

This schema aligns with the NewOrderRequest schema used for order submission, containing the fields needed to prefill an order ticket or submit via API.

order_type: OrderType

Order type

Accepts one of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
"OTHER"
quantity: string

Quantity (shares for stocks, contracts for options)

security_type: SecurityType

Type of security

Accepts one of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"CORPORATE_BOND"
"OPTION"
"FUTURE"
"WARRANT"
"CASH"
"OTHER"
side: Side

Order side

Accepts one of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
symbol: string

Trading symbol (e.g., "AAPL" for equities, OSI for options)

time_in_force: TimeInForce

Time in force

Accepts one of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
"OTHER"
limit_price?: string | null

Limit price (required for LIMIT and STOP_LIMIT orders)

stop_price?: string | null

Stop price (required for STOP and STOP_LIMIT orders)

strategy?: OrderStrategyType | null

Execution strategy (simplified enum, not the full strategy params for now)

Accepts one of the following:
"SOR"
"VWAP"
"TWAP"
"DARK"
"DMA"
"AP"
"POV"
OrderStrategyType = "SOR" | "VWAP" | "TWAP" | 4 more

Simplified order strategy type for prefill actions.

This is a simplified enum compared to the full OrderStrategy with params, suitable for indicating the desired strategy without full configuration.

Accepts one of the following:
"SOR"
"VWAP"
"TWAP"
"DARK"
"DMA"
"AP"
"POV"
PrefillOrderAction { orders, account_id }

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.

orders: Array<OrderPayload { order_type, quantity, security_type, 6 more } >

The orders to prefill

order_type: OrderType

Order type

Accepts one of the following:
"MARKET"
"LIMIT"
"STOP"
"STOP_LIMIT"
"TRAILING_STOP"
"TRAILING_STOP_LIMIT"
"OTHER"
quantity: string

Quantity (shares for stocks, contracts for options)

security_type: SecurityType

Type of security

Accepts one of the following:
"COMMON_STOCK"
"PREFERRED_STOCK"
"CORPORATE_BOND"
"OPTION"
"FUTURE"
"WARRANT"
"CASH"
"OTHER"
side: Side

Order side

Accepts one of the following:
"BUY"
"SELL"
"SELL_SHORT"
"OTHER"
symbol: string

Trading symbol (e.g., "AAPL" for equities, OSI for options)

time_in_force: TimeInForce

Time in force

Accepts one of the following:
"DAY"
"GOOD_TILL_CANCEL"
"IMMEDIATE_OR_CANCEL"
"FILL_OR_KILL"
"GOOD_TILL_DATE"
"AT_THE_OPENING"
"AT_THE_CLOSE"
"GOOD_TILL_CROSSING"
"GOOD_THROUGH_CROSSING"
"AT_CROSSING"
"OTHER"
limit_price?: string | null

Limit price (required for LIMIT and STOP_LIMIT orders)

stop_price?: string | null

Stop price (required for STOP and STOP_LIMIT orders)

strategy?: OrderStrategyType | null

Execution strategy (simplified enum, not the full strategy params for now)

Accepts one of the following:
"SOR"
"VWAP"
"TWAP"
"DARK"
"DMA"
"AP"
"POV"
account_id?: number | null

Account to prefill for (if known from context)

formatint64
Run { created_at, model, provider, 10 more }
created_at: string
model: string
provider: string
status: RunStatus
Accepts one of the following:
"UNSPECIFIED"
"QUEUED"
"RUNNING"
"SUCCEEDED"
"FAILED"
"CANCELED"
id?: string | null
capabilities?: Array<Capability>
Accepts one of the following:
"NAVIGATE"
"OPEN_CHAT_WINDOW"
"PREFILL_ORDER"
"OPEN_CHART"
"OPEN_SCREENER"
ended_at?: string | null
error?: unknown
metadata?: unknown
parameters?: unknown
started_at?: string | null
thread_id?: string | null
usage?: unknown
RunStatus = "UNSPECIFIED" | "QUEUED" | "RUNNING" | 3 more
Accepts one of the following:
"UNSPECIFIED"
"QUEUED"
"RUNNING"
"SUCCEEDED"
"FAILED"
"CANCELED"
StartRunResponse { run, thread, user_message }
run: Run { created_at, model, provider, 10 more }
created_at: string
model: string
provider: string
status: RunStatus
Accepts one of the following:
"UNSPECIFIED"
"QUEUED"
"RUNNING"
"SUCCEEDED"
"FAILED"
"CANCELED"
id?: string | null
capabilities?: Array<Capability>
Accepts one of the following:
"NAVIGATE"
"OPEN_CHAT_WINDOW"
"PREFILL_ORDER"
"OPEN_CHART"
"OPEN_SCREENER"
ended_at?: string | null
error?: unknown
metadata?: unknown
parameters?: unknown
started_at?: string | null
thread_id?: string | null
usage?: unknown
thread: Thread { account_id, created_at, description, 5 more }
account_id: string
created_at: string
description: string
owner_user_id: string
title: string
updated_at: string
id?: string | null
metadata?: unknown
user_message: Message { content_text, created_at, role, 7 more }
content_text: string

Denormalized text content for search/display

created_at: string
Accepts one of the following:
"UNSPECIFIED"
"SYSTEM"
"USER"
"ASSISTANT"
"TOOL"
seq: number
id?: string | null
author_user_id?: string | null
content?: MessageContent { parts } | null

Parsed content parts (text and structured actions)

parts: Array<ContentPart>
Accepts one of the following:
Text extends ContentPartText { text } { type }

Plain text content

type: "text"
Accepts one of the following:
"text"
PrefillOrder { action_type, type } | OpenChart { action_type, type } | OpenScreener { action_type, type } | 2 more
PrefillOrder extends PrefillOrderAction { orders, account_id } { action_type, type }

Prefill an order ticket for user confirmation

action_type: "prefill_order"
Accepts one of the following:
"prefill_order"
type?: "structured_action"
Accepts one of the following:
"structured_action"
OpenChart extends OpenChartAction { symbol, extras, timeframe } { action_type, type }

Open a chart for a symbol

action_type: "open_chart"
Accepts one of the following:
"open_chart"
type?: "structured_action"
Accepts one of the following:
"structured_action"
OpenScreener extends OpenScreenerAction { filters, field_filter, page_size, 2 more } { action_type, type }

Open a stock screener with filters

action_type: "open_screener"
Accepts one of the following:
"open_screener"
type?: "structured_action"
Accepts one of the following:
"structured_action"
OpenChatWindow extends OpenChatWindowAction { extras, thread_id, title } { action_type, type }

Open a chat window

action_type: "open_chat_window"
Accepts one of the following:
"open_chat_window"
type?: "structured_action"
Accepts one of the following:
"structured_action"
Navigate extends NavigateAction { route, params } { action_type, type }

Navigate to a client route

action_type: "navigate"
Accepts one of the following:
"navigate"
type?: "structured_action"
Accepts one of the following:
"structured_action"
Type { type }

Custom/extensible content

type: "custom"
Accepts one of the following:
"custom"
metadata?: unknown
run_id?: string | null
thread_id?: string | null
StructuredAction = PrefillOrder { action_type } | OpenChart { action_type } | OpenScreener { action_type } | 2 more

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.

Accepts one of the following:
PrefillOrder extends PrefillOrderAction { orders, account_id } { action_type }

Prefill an order ticket for user confirmation

action_type: "prefill_order"
Accepts one of the following:
"prefill_order"
OpenChart extends OpenChartAction { symbol, extras, timeframe } { action_type }

Open a chart for a symbol

action_type: "open_chart"
Accepts one of the following:
"open_chart"
OpenScreener extends OpenScreenerAction { filters, field_filter, page_size, 2 more } { action_type }

Open a stock screener with filters

action_type: "open_screener"
Accepts one of the following:
"open_screener"
OpenChatWindow extends OpenChatWindowAction { extras, thread_id, title } { action_type }

Open a chat window

action_type: "open_chat_window"
Accepts one of the following:
"open_chat_window"
Navigate extends NavigateAction { route, params } { action_type }

Navigate to a client route

action_type: "navigate"
Accepts one of the following:
"navigate"
Thread { account_id, created_at, description, 5 more }
account_id: string
created_at: string
description: string
owner_user_id: string
title: string
updated_at: string
id?: string | null
metadata?: unknown

V1Omni AIFeedback

Create feedback on a message.
client.active.v1.omniAI.feedback.createFeedback(FeedbackCreateFeedbackParams { account_id, message_id, score, 3 more } body, RequestOptionsoptions?): FeedbackCreateFeedbackResponse { data }
post/active/v1/omni-ai/feedback

V1Omni AIRuns

Cancel a running assistant run.
client.active.v1.omniAI.runs.cancelRun(stringrunID, RunCancelRunParams { account_id, reason } body, RequestOptionsoptions?): RunCancelRunResponse { data }
delete/active/v1/omni-ai/runs/{run_id}
Get run status and events.
client.active.v1.omniAI.runs.getRun(stringrunID, RunGetRunParams { account_id, page_size, page_token } query, RequestOptionsoptions?): RunGetRunResponse { data }
get/active/v1/omni-ai/runs/{run_id}
Start a new assistant run.
client.active.v1.omniAI.runs.startRun(RunStartRunParams { account_id, command_text, capabilities, 7 more } body, RequestOptionsoptions?): RunStartRunResponse { data }
post/active/v1/omni-ai/runs

V1Omni AIThreads

Get a specific thread.
client.active.v1.omniAI.threads.getThread(stringthreadID, ThreadGetThreadParams { account_id } query, RequestOptionsoptions?): ThreadGetThreadResponse { data }
get/active/v1/omni-ai/threads/{thread_id}
List conversation threads.
client.active.v1.omniAI.threads.listThreads(ThreadListThreadsParams { account_id, page_size, page_token } query, RequestOptionsoptions?): ThreadListThreadsResponse { data }
get/active/v1/omni-ai/threads

V1Omni AIThreadsMessages

List messages in a thread.
client.active.v1.omniAI.threads.messages.listMessages(stringthreadID, MessageListMessagesParams { account_id, after_seq, page_size, page_token } query, RequestOptionsoptions?): MessageListMessagesResponse { data }
get/active/v1/omni-ai/threads/{thread_id}/messages

V1Saved Screeners

Create a saved screener configuration.
client.active.v1.savedScreeners.createScreener(SavedScreenerCreateScreenerParams { field_filter, filters, name, 2 more } body, RequestOptionsoptions?): SavedScreenerCreateScreenerResponse { data }
post/active/v1/saved-screeners
Delete a saved screener configuration.
client.active.v1.savedScreeners.deleteScreener(stringscreenerID, RequestOptionsoptions?): void
delete/active/v1/saved-screeners/{screener_id}
Get a saved screener configuration by ID.
client.active.v1.savedScreeners.getScreenerByID(stringscreenerID, RequestOptionsoptions?): SavedScreenerGetScreenerByIDResponse { data }
get/active/v1/saved-screeners/{screener_id}
List saved screener configurations.
client.active.v1.savedScreeners.listScreeners(RequestOptionsoptions?): SavedScreenerListScreenersResponse { data }
get/active/v1/saved-screeners
Update a saved screener configuration.
client.active.v1.savedScreeners.updateScreener(stringscreenerID, SavedScreenerUpdateScreenerParams { field_filter, filters, name, 2 more } body, RequestOptionsoptions?): SavedScreenerUpdateScreenerResponse { data }
put/active/v1/saved-screeners/{screener_id}
ModelsExpand Collapse
SavedScreenerFilter { field_name, operation, value }

A single filter criterion for a screener

field_name: string

The field name to filter on

operation: string

The filter operation (lt, lte, gt, gte, eq, rgx, bw, ew)

value: string

The filter value

ScreenerEntry { id, created_at, filters, 5 more }

A saved screener configuration entry

id: string

Unique identifier for this screener

formatuuid
created_at: string

When this screener was created

formatdate-time
filters: Array<SavedScreenerFilter { field_name, operation, value } >

Filter criteria for this screener

field_name: string

The field name to filter on

operation: string

The filter operation (lt, lte, gt, gte, eq, rgx, bw, ew)

value: string

The filter value

name: string

The name of this screener configuration

updated_at: string

When this screener was last updated

formatdate-time
field_filter?: Array<string> | null

List of field names to include when running this screener

sort_by?: string | null

Field name to sort results by

sort_direction?: string | null

Sort direction for results

ScreenerEntryList = Array<ScreenerEntry { id, created_at, filters, 5 more } >
id: string

Unique identifier for this screener

formatuuid
created_at: string

When this screener was created

formatdate-time
filters: Array<SavedScreenerFilter { field_name, operation, value } >

Filter criteria for this screener

field_name: string

The field name to filter on

operation: string

The filter operation (lt, lte, gt, gte, eq, rgx, bw, ew)

value: string

The filter value

name: string

The name of this screener configuration

updated_at: string

When this screener was last updated

formatdate-time
field_filter?: Array<string> | null

List of field names to include when running this screener

sort_by?: string | null

Field name to sort results by

sort_direction?: string | null

Sort direction for results

V1Screener

Screen instruments.
client.active.v1.screener.getScreener(ScreenerGetScreenerParams { field_filter, filter, page_size, 3 more } query?, RequestOptionsoptions?): ScreenerGetScreenerResponse { data }
get/active/v1/screener
ModelsExpand Collapse
ScreenerFilter { field, operator, value }

A single filter criterion for the screener.

field: string

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

operator: string

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

value: unknown

Filter value

ScreenerItem { buy_ratings, hold_ratings, price, 50 more }

An instrument returned by the screener

buy_ratings: number

The count of buy analyst ratings

formatint32
hold_ratings: number

The count of hold analyst ratings

formatint32
price: string

The latest price for the instrument

security_id: string

The identifier for the instrument

security_id_source: SecurityIDSource

The source of the security identifier

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
sell_ratings: number

The count of sell analyst ratings

formatint32
strong_buy_ratings: number

The count of strong buy analyst ratings

formatint32
strong_sell_ratings: number

The count of strong sell analyst ratings

formatint32
symbol: string

The trading symbol for the instrument

total_ratings: number

The total count of analyst ratings

formatint32
consensus_price_target?: string | null

The consensus analyst price target

consensus_price_target_high?: string | null

The highest analyst price target

consensus_price_target_low?: string | null

The lowest analyst price target

consensus_rating?: AnalystRating | null

The consensus analyst rating

Accepts one of the following:
"STRONG_BUY"
"BUY"
"HOLD"
"SELL"
"STRONG_SELL"
country_of_issue?: string | null

The ISO country code of the instrument's issue

description?: string | null

A detailed description of the instrument or company

fifty_two_week_high?: string | null

The highest price over the last 52 weeks

fifty_two_week_low?: string | null

The lowest price over the last 52 weeks

gap_from_52w_high_pct?: string | null

Percent gap from 52-week high to previous day close (negative = below high)

gap_from_52w_low_pct?: string | null

Percent gap from 52-week low to previous day close (positive = above low)

industry?: string | null

The specific industry of the instrument's issuer

list_date?: string | null

The date the instrument was first listed

formatdate
market_cap?: string | null

The total market capitalization

month_avg_volume?: string | null

The average trading volume over the past month

name?: string | null

The full name of the instrument or its issuer

one_month_ago_close?: string | null

The closing price approximately one month ago

one_month_ago_open?: string | null

The opening price approximately one month ago

one_month_change_pct?: string | null

Percent change from one month ago close to previous day close

one_week_ago_close?: string | null

The closing price approximately one week ago

one_week_ago_open?: string | null

The opening price approximately one week ago

one_week_change_pct?: string | null

Percent change from one week ago close to previous day close

one_year_ago_close?: string | null

The closing price approximately one year ago

one_year_ago_open?: string | null

The opening price approximately one year ago

one_year_change_pct?: string | null

Percent change from one year ago close to previous day close

percent_change?: string | null

The percent change from previous close to current price

prev_day_close?: string | null

The previous day's closing price

sector?: string | null

The business sector of the instrument's issuer

security_type?: string | null

The type of security

six_month_change_pct?: string | null

Percent change from six months ago close to previous day close

six_months_ago_close?: string | null

The closing price approximately six months ago

six_months_ago_open?: string | null

The opening price approximately six months ago

three_month_change_pct?: string | null

Percent change from three months ago close to previous day close

three_months_ago_close?: string | null

The closing price approximately three months ago

three_months_ago_open?: string | null

The opening price approximately three months ago

ttm_debt_to_equity?: string | null

The TTM debt-to-equity ratio

ttm_dividend_yield?: string | null

The TTM dividend yield percent

ttm_earnings_per_share?: string | null

The TTM earnings per share

ttm_price_to_earnings?: string | null

The TTM price-to-earnings ratio

venue?: string | null

The MIC code of the primary listing venue

volume?: string | null

The latest trading volume for the instrument

week_avg_volume?: string | null

The average trading volume over the past week

year_to_date_open?: string | null

The opening price on the first trading day of the current year

ytd_change_pct?: string | null

Percent change from year-to-date open to previous day close

ScreenerItemList = Array<ScreenerItem { buy_ratings, hold_ratings, price, 50 more } >
buy_ratings: number

The count of buy analyst ratings

formatint32
hold_ratings: number

The count of hold analyst ratings

formatint32
price: string

The latest price for the instrument

security_id: string

The identifier for the instrument

security_id_source: SecurityIDSource

The source of the security identifier

Accepts one of the following:
"CMS"
"CLST"
"OPRA"
"FIGI"
"CUSIP"
"CURRENCY"
"FMP"
"OEMS"
"SEDOL"
"QUIK"
"ISIN"
"RIC"
"COUNTRY"
"EXCHANGE"
"CTA"
"BLOOMBERG"
"WERTPAPIER"
"DUTCH"
"VALOREN"
"SICOVAM"
"BELGIAN"
"COMMON"
"CLEARING_HOUSE"
"ISDA_FPML_SPECIFICATION"
"ISDA_FPML_URL"
"LETTER_OF_CREDIT"
"MARKETPLACE_ASSIGNED_IDENTIFIER"
"MARKIT_RED_ENTITY_CLIP"
"MARKIT_RED_PAIR_CLIP"
"CFTC"
"ISDA_COMMODITY_REFERENCE_PRICE"
"LEGAL_ENTITY_IDENTIFIER"
"SYNTHETIC"
"FIDESSA_INSTRUMENT_MNEMONIC"
"INDEX_NAME"
"UNIFORM_SYMBOL"
"DIGITAL_TOKEN_IDENTIFIER"
"MASSIVE"
"OTHER"
sell_ratings: number

The count of sell analyst ratings

formatint32
strong_buy_ratings: number

The count of strong buy analyst ratings

formatint32
strong_sell_ratings: number

The count of strong sell analyst ratings

formatint32
symbol: string

The trading symbol for the instrument

total_ratings: number

The total count of analyst ratings

formatint32
consensus_price_target?: string | null

The consensus analyst price target

consensus_price_target_high?: string | null

The highest analyst price target

consensus_price_target_low?: string | null

The lowest analyst price target

consensus_rating?: AnalystRating | null

The consensus analyst rating

Accepts one of the following:
"STRONG_BUY"
"BUY"
"HOLD"
"SELL"
"STRONG_SELL"
country_of_issue?: string | null

The ISO country code of the instrument's issue

description?: string | null

A detailed description of the instrument or company

fifty_two_week_high?: string | null

The highest price over the last 52 weeks

fifty_two_week_low?: string | null

The lowest price over the last 52 weeks

gap_from_52w_high_pct?: string | null

Percent gap from 52-week high to previous day close (negative = below high)

gap_from_52w_low_pct?: string | null

Percent gap from 52-week low to previous day close (positive = above low)

industry?: string | null

The specific industry of the instrument's issuer

list_date?: string | null

The date the instrument was first listed

formatdate
market_cap?: string | null

The total market capitalization

month_avg_volume?: string | null

The average trading volume over the past month

name?: string | null

The full name of the instrument or its issuer

one_month_ago_close?: string | null

The closing price approximately one month ago

one_month_ago_open?: string | null

The opening price approximately one month ago

one_month_change_pct?: string | null

Percent change from one month ago close to previous day close

one_week_ago_close?: string | null

The closing price approximately one week ago

one_week_ago_open?: string | null

The opening price approximately one week ago

one_week_change_pct?: string | null

Percent change from one week ago close to previous day close

one_year_ago_close?: string | null

The closing price approximately one year ago

one_year_ago_open?: string | null

The opening price approximately one year ago

one_year_change_pct?: string | null

Percent change from one year ago close to previous day close

percent_change?: string | null

The percent change from previous close to current price

prev_day_close?: string | null

The previous day's closing price

sector?: string | null

The business sector of the instrument's issuer

security_type?: string | null

The type of security

six_month_change_pct?: string | null

Percent change from six months ago close to previous day close

six_months_ago_close?: string | null

The closing price approximately six months ago

six_months_ago_open?: string | null

The opening price approximately six months ago

three_month_change_pct?: string | null

Percent change from three months ago close to previous day close

three_months_ago_close?: string | null

The closing price approximately three months ago

three_months_ago_open?: string | null

The opening price approximately three months ago

ttm_debt_to_equity?: string | null

The TTM debt-to-equity ratio

ttm_dividend_yield?: string | null

The TTM dividend yield percent

ttm_earnings_per_share?: string | null

The TTM earnings per share

ttm_price_to_earnings?: string | null

The TTM price-to-earnings ratio

venue?: string | null

The MIC code of the primary listing venue

volume?: string | null

The latest trading volume for the instrument

week_avg_volume?: string | null

The average trading volume over the past week

year_to_date_open?: string | null

The opening price on the first trading day of the current year

ytd_change_pct?: string | null

Percent change from year-to-date open to previous day close

V1Version

Get the API version.
client.active.v1.version.getVersion(RequestOptionsoptions?): VersionGetVersionResponse { data }
get/active/v1/version
Update API version preferences.
client.active.v1.version.updateVersion(RequestOptionsoptions?): VersionUpdateVersionResponse { data }
patch/active/v1/version
ModelsExpand Collapse
Version { version }

API version information

version: string

API version string

V1Watchlists

Create a new watchlist
client.active.v1.watchlists.createWatchlist(WatchlistCreateWatchlistParams { name } body, RequestOptionsoptions?): WatchlistCreateWatchlistResponse { data }
post/active/v1/watchlists
Delete a watchlist and all its items
client.active.v1.watchlists.deleteWatchlist(stringwatchlistID, RequestOptionsoptions?): void
delete/active/v1/watchlists/{watchlist_id}
Get a watchlist by ID with all its items
client.active.v1.watchlists.getWatchlistByID(stringwatchlistID, RequestOptionsoptions?): WatchlistGetWatchlistByIDResponse { data }
get/active/v1/watchlists/{watchlist_id}
List watchlists for the authenticated user
client.active.v1.watchlists.getWatchlists(RequestOptionsoptions?): WatchlistGetWatchlistsResponse { data }
get/active/v1/watchlists
ModelsExpand Collapse
WatchlistDetail { id, created_at, items, name }

Detailed watchlist with all items

id: string

Watchlist ID

formatuuid
created_at: string

Creation timestamp

formatdate-time
items: Array<WatchlistItemEntry { id, added_at, added_price, instrument } >

Items in the watchlist

id: string

Item ID

formatuuid
added_at: string

When the item was added

formatdate-time
added_price?: string | null

Price when the item was added

instrument?: Instrument { available_to_borrow, average_volume, beta, 16 more } | null

Instrument details

available_to_borrow?: number | null

The number of shares currently available to borrow

formatint64
average_volume?: number | null

The average daily trading volume over the past 30 days

formatint64
beta?: string | null

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

borrow_fee?: string | null

The fee associated with borrowing the instrument, expressed as a decimal

description?: string | null

A detailed description of the instrument or company

dividend_yield?: string | null

The trailing twelve months (TTM) dividend yield

earnings_per_share?: string | null

The trailing twelve months (TTM) earnings per share

fifty_two_week_high?: string | null

The highest price over the last 52 weeks

fifty_two_week_low?: string | null

The lowest price over the last 52 weeks

industry?: string | null

The specific industry of the instrument's issuer

list_date?: string | null

The date the instrument was first listed

formatdate
logo_url?: string | null

URL to a representative logo image for the instrument or issuer

long_concentration_limit?: string | null

A cap on how much of your equity you can put into a single symbol on the long side

market_cap?: string | null

The total market capitalization

previous_close?: string | null

The closing price from the previous trading day

price_to_earnings?: string | null

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

quote?: InstrumentQuote { high, last_price, low, 2 more } | null

Real-time market quote data for the instrument

high: string

The highest trade price during the current trading day

last_price: string

The most recent trade price

low: string

The lowest trade price during the current trading day

open: string

The opening price for the current trading day

volume: number

The total number of shares traded during the current trading day

formatint64
sector?: string | null

The business sector of the instrument's issuer

short_concentration_limit?: string | null

A cap on how much of your equity you can allocate to a single symbol on the short side

name: string

Watchlist name

WatchlistEntry { id, created_at, name }

Represents a user watchlist.

id: string

The unique identifier for the watchlist.

formatuuid
created_at: string

The timestamp when the watchlist was created.

formatdate-time
name: string

The user-provided watchlist name.

WatchlistEntryList = Array<WatchlistEntry { id, created_at, name } >
id: string

The unique identifier for the watchlist.

formatuuid
created_at: string

The timestamp when the watchlist was created.

formatdate-time
name: string

The user-provided watchlist name.

WatchlistItemEntry { id, added_at, added_price, instrument }

A single item in a watchlist

id: string

Item ID

formatuuid
added_at: string

When the item was added

formatdate-time
added_price?: string | null

Price when the item was added

instrument?: Instrument { available_to_borrow, average_volume, beta, 16 more } | null

Instrument details

available_to_borrow?: number | null

The number of shares currently available to borrow

formatint64
average_volume?: number | null

The average daily trading volume over the past 30 days

formatint64
beta?: string | null

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

borrow_fee?: string | null

The fee associated with borrowing the instrument, expressed as a decimal

description?: string | null

A detailed description of the instrument or company

dividend_yield?: string | null

The trailing twelve months (TTM) dividend yield

earnings_per_share?: string | null

The trailing twelve months (TTM) earnings per share

fifty_two_week_high?: string | null

The highest price over the last 52 weeks

fifty_two_week_low?: string | null

The lowest price over the last 52 weeks

industry?: string | null

The specific industry of the instrument's issuer

list_date?: string | null

The date the instrument was first listed

formatdate
logo_url?: string | null

URL to a representative logo image for the instrument or issuer

long_concentration_limit?: string | null

A cap on how much of your equity you can put into a single symbol on the long side

market_cap?: string | null

The total market capitalization

previous_close?: string | null

The closing price from the previous trading day

price_to_earnings?: string | null

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

quote?: InstrumentQuote { high, last_price, low, 2 more } | null

Real-time market quote data for the instrument

high: string

The highest trade price during the current trading day

last_price: string

The most recent trade price

low: string

The lowest trade price during the current trading day

open: string

The opening price for the current trading day

volume: number

The total number of shares traded during the current trading day

formatint64
sector?: string | null

The business sector of the instrument's issuer

short_concentration_limit?: string | null

A cap on how much of your equity you can allocate to a single symbol on the short side

V1WatchlistsItems

Add an instrument to a watchlist
client.active.v1.watchlists.items.addWatchlistItem(stringwatchlistID, ItemAddWatchlistItemParams { instrument_id, security_id, security_id_source } body, RequestOptionsoptions?): ItemAddWatchlistItemResponse { data }
post/active/v1/watchlists/{watchlist_id}/items
Delete an instrument from a watchlist
client.active.v1.watchlists.items.deleteWatchlistItem(stringitemID, ItemDeleteWatchlistItemParams { watchlist_id } params, RequestOptionsoptions?): void
delete/active/v1/watchlists/{watchlist_id}/items/{item_id}
ModelsExpand Collapse
AddWatchlistItemData { item_id }

Response data for adding a watchlist item

item_id: string

ID of the created item

formatuuid

V1Ws

Upgrade the HTTP connection to a WebSocket and echo incoming messages.
client.active.v1.ws.websocketHandler(RequestOptionsoptions?): void
get/active/v1/ws