Skip to main content

td-api

Classes

TDAmeritradeAPI

Functions

createTDAmeritradeAPIClient(config)TDAmeritradeAPI

Creates a new instance of the TD Ameritrade API

filterBuyTrades(trades)Array.<TransactionData>

[td-utils.js] - Filter Buy Trades

filterSellTrades(trades)Array.<TransactionData>

[td-utils.js] - Filter Sell Trades

filterOpeningTrades(trades)Array.<TransactionData>

[td-utils.js] - Filter Opening Trades

filterClosingTrades(trades)Array.<TransactionData>

[td-utils.js] - Filter Closing Trades

filterOpeningShortSales(trades)Array.<TransactionData>

[td-utils.js] - Filter Open Short Sale Trades

filterClosingShortSales(trades)Array.<TransactionData>

[td-utils.js] - Filter Closing Short Sale Trades

filterOptionTrades(trades)Array.<TransactionData>

[td-utils.js] - Filter Option Trades

filterEquityTrades(trades)Array.<TransactionData>

[td-utils.js] - Filter Equity Trades

groupByOrderId(trades)Array.<TransactionData>

[td-utils.js] - Group Trades by Order ID

groupByInstrument(trades)Array.<TransactionData>

[td-utils.js] - Group Trades by Instrument

groupByInstrumentSymbol(trades)Array.<TransactionData>

[td-utils.js] - Group Trades by Instrument Symbol

groupByInstrumentUnderlyingSymbol(trades)Array.<TransactionData>

[td-utils.js] - Group Trades by Instrument Underlying Symbol

groupByInstrumentCUSIP(trades)Array.<TransactionData>

[td-utils.js] - Group Trades by Instrument CUSIP

groupByAssetType(trades)Array.<TransactionData>

[td-utils.js] - Group Trades by Asset Type

Typedefs

DateLikeNullable : Date | string | number | null
TickerSymbol : string
CUSIP : string
TDAmeritradeAccountID : string
AssetType : 'EQUITY' | 'OPTION'
AcceptedOrRejected : 'ACCEPTED' | 'REJECTED'
PositionEffect : 'OPENING' | 'CLOSING'
BuyOrder : 'BUY' | 'BUY_TO_OPEN' | 'BUY_TO_CLOSE' | 'BUY_TO_COVER'
SellOrder : 'SELL' | 'SELL_TO_OPEN' | 'SELL_TO_CLOSE' | 'SELL_SHORT'
OrderDescription : 'BUY TRADE' | 'SELL TRADE' | 'SHORT SALE' | 'CLOSE SHORT POSITION'
GetTransactionsType : 'ALL' | 'TRADE' | 'BUY_ONLY' | 'SELL_ONLY' | 'CASH_IN_OR_CASH_OUT' | 'CHECKING' | 'DIVIDEND' | 'INTEREST' | 'ADVISOR_FEES' | 'OTHER'
TDAmeritradeAccounts : Array.<TDAmeritradeAccount>
APIClientConfig : Object

Represents the configuration for the API client.

APIRequestConfig : Object

Represents the configuration for making an API request.

APIResponse : Object

Represents an API response.

AuthenticationResponse : Object

TD Ameritrade API Authentication Response

RefreshTokenResponse : Object

TD Ameritrade API Refresh Token Response

TDAmeritradeAccount : Object

Represents a TD Ameritrade account.

InstrumentData : Object

Represents stock information.

QuoteData : Object

Represents stock data.

Fundamentals : Object

Represents fundamental data for a stock.

FundamentalData : Object

Represents Fundamental Data

OHLC : Object

Represents Open, High, Low Close Values

OHLCVolume : Object

Represents OHLC with Volume Values

Candlestick : Object

Represents a candlestick.

PriceHistory : Object

Represents candlestick data.

OptionContractData : Object

Represents option contract data.

UnderlyingAsset : Object

Represents information about the underlying asset.

OptionContractDateMap : Object.<string, Array.<OptionContractData>>

Represents a mapping of option contract data by expiration date.

OptionChainData : Object

Represents option chain data.

WatchlistItemInstrument : Object

Represents an instrument.

WatchlistItem : Object

Represents an instrument within a watchlist.

Watchlist : Object

Represents a watchlist.

Watchlists : Array.<Watchlist>

Represents multiple watchlists.

CurrentBalances : Object

Represents an account's financial summary.

InitialBalances : Object

Represents an account's financial summary.

ProjectedBalances : Object

Represents account-related data.

PositionData : Object

Represents data related to a trading position.

ExchangeDelayStatus : Object

Represents a delay status for various exchanges.

StreamerSubscriptionKey : Object

Represents a single streamer subscription key.

StreamerSubscriptionKeys : Object

Represents an array of streamer subscription keys.

StreamerInfo : Object

Represents streamer information.

UserPrincipalAccount : Object

Represents an account with its preferences and authorizations.

UserPrincipalsData : Object

Represents principal data.

TradeTransactionFees : Object

Represents fees associated with a trade transaction.

TransactionItem : Object

Represents a trade transaction item.

TransactionData : Object

Represents a trade transaction.

OrderRequest : Object

Order Request

TDAmeritradeOrderLeg : Object
OrderData : Object

Represents an order object.

OrderLeg : Object

Represents an order leg within an order.

TrendingEquity : Object

Represents Market Mover Trending Equity data.

MarketMovers : Object

Represents Market Movers - Current Trending Equities of $SPX.X, $COMPX, $DJI

TDAmeritradeAPI

Kind: global class

new TDAmeritradeAPI()

Represents the TDAmeritradeAPI class for handling requests.

tdAmeritradeAPI.TDAmeritradeAPI

Kind: instance class of TDAmeritradeAPI

new exports.TDAmeritradeAPI([config])

Creates an instance of TDAmeritradeAPI.

ParamTypeDefaultDescription
[config]ObjectAPI Client Configuration
[config.clientId]stringTD Amertitrade Client ID - defaults to TD_AMERITRADE_CLIENT_ID environment variable.
[config.callbackUrl]stringCallback URL - defaults to TD_AMERITRADE_CALLBACK_URL environment variable.
[config.handleRequest]function | nullAn optional request handler function.

tdAmeritradeAPI.accessTokenExpirationMonitor ⇒ function

Internal Access Token Expiration Monitor / refresh token timer

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
cbfunctionCallback function to call on every check

tdAmeritradeAPI.startAccessTokenExpirationMonitor

Access Token Expiration Monitor / refresh token timer

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
cbfunctionCallback function to call on every check

tdAmeritradeAPI.setUserAccessToken ⇒ void

Set User Access Token / Refresh Token

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
credentialsLocalMemoryAuthDataStoreCredentials Data Store
[credentials.userAccessToken]stringAccess Token
[credentials.accessTokenExpires]DateLikeNullableIs New Access Token
[credentials.refreshToken]stringRefresh Token
[credentials.refreshTokenExpiresIn]DateLikeNullableRefresh Token Expires in

tdAmeritradeAPI.authenticate ⇒ Promise.<APIResponse.<(AuthenticationResponse|null)>>

Authenticate with the TD Ameritrade OAuth2 Authorization endpoint

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
codestringAuthorization Resonse Code from TD Ameritrade Authentication API

tdAmeritradeAPI.refreshAccessToken ⇒ Promise.<APIResponse.<(RefreshTokenResponse|null)>>

Refresh Access Token with Refresh Token

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
refresh_tokenstringRefresh Token

tdAmeritradeAPI.getAccounts ⇒ Promise.<APIResponse.<TDAmeritradeAccounts>>

Get Accounts

Kind: instance property of TDAmeritradeAPI

tdAmeritradeAPI.getAccount ⇒ Promise.<APIResponse.<TDAmeritradeAccount>>

Get Account

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
accountIdTDAmeritradeAccountIDTD Ameritrade Account ID

tdAmeritradeAPI.getUserPrincipals ⇒ Promise.<APIResponse.<UserPrincipalsData>>

Get User Principals Data - for use with schwab-td-ameritrade-streamer

Kind: instance property of TDAmeritradeAPI

tdAmeritradeAPI.getTransactions ⇒ Promise.<APIResponse.<Array.<TransactionData>>>

Get Transactions

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
accountIdTDAmeritradeAccountIDTD Ameritrade Account ID
transactionsTypeGetTransactionsTypeTransactions Type - Default 'TRADE'
startDateDateLikeNullableStart Date
endDateDateLikeNullableEnd Date

tdAmeritradeAPI.getOrders ⇒ Promise.<APIResponse.<Array.<OrderData>>>

Get Order's for Account ID

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
accountIdTDAmeritradeAccountIDTD Ameritrade Account ID

tdAmeritradeAPI.getQuotes ⇒ Promise.<APIResponse.<Object.<string, QuoteData>>>

Get Quote Data for Ticker Symbol(s)

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
symbolTickerSymbolTicker Symbol

tdAmeritradeAPI.getInstrument ⇒ Promise.<APIResponse.<Array.<InstrumentData>>>

Get Instrument Data for CUSIP

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
cusipCUSIPCUSIP

tdAmeritradeAPI.getFundamentals ⇒ Promise.<APIResponse.<Object.<string, FundamentalData>>>

Get Fundamental Data for Ticker Symbol

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
symbolTickerSymbolTicker Symbol

tdAmeritradeAPI.getMarketDirectionalMover ⇒ Promise.<APIResponse.<Array.<TrendingEquity>>>

Get Market Directional Mover (e.g. '$SPX.X', 'up', 'percent')

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
market'$SPX.X' | '$DJI' | '$COMPX'Market
direction'up' | 'down'Direction
change'percent' | 'value'Change Type

tdAmeritradeAPI.getPriceHistory ⇒ Promise.<APIResponse.<PriceHistory>>

Get Intraday Price History for Ticker Symbol

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
symbolTickerSymbolTicker Symbol
daysnumberNumber of Days
minutesnumberMinutes
extHoursbooleanExtended Hours Data
endDateDate | numberEnd Date

tdAmeritradeAPI.getDailyPriceHistory ⇒ Promise.<APIResponse.<PriceHistory>>

Get Daily Price History for Ticker Symbol

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
symbolTickerSymbolTicker Symbol
yearsnumberNumber of Years
daysnumberNumber of Days

tdAmeritradeAPI.getWeeklyPriceHistory ⇒ Promise.<APIResponse.<PriceHistory>>

Get Weekly Price History for Ticker Symbol

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
symbolTickerSymbolTicker Symbol
yearsnumberNumber of Years

tdAmeritradeAPI.getPeriodicPriceHistory ⇒ Promise.<APIResponse.<PriceHistory>>

Get Periodic Price History for Ticker Symbol

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
symbolTickerSymbolTicker Symbol
startDateDateLikeNullableStart Date
endDateDateLikeNullableEnd Date
extHoursbooleanExtended Hours Data

tdAmeritradeAPI.getMarketMovers ⇒ Promise.<APIResponse.<MarketMovers>>

Get Market Movers - Current Trending Equities of $SPX.X, $COMPX, $DJI

Kind: instance property of TDAmeritradeAPI

tdAmeritradeAPI.getOptionChain ⇒ Promise.<APIResponse.<OptionChainData>>

Get Option Chain

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
symbolTickerSymbolTicker Symbol
rangeOptionContractRangeOption Contract Range - (ITM, OTM, NTM, etc..)
optionTypeOptionContractTypeOption Contract Type - (Standard, Non Standard, All)

tdAmeritradeAPI.getWatchlists ⇒ Promise.<APIResponse.<Watchlists>>

Get Watchlists

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
accountIdTDAmeritradeAccountIDTD Ameritrade Account ID

tdAmeritradeAPI.getWatchlist ⇒ Promise.<APIResponse.<Watchlist>>

Get Watchlist by ID

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
accountIdTDAmeritradeAccountIDTD Ameritrade Account ID

tdAmeritradeAPI.placeOrder ⇒ Promise.<APIResponse.<any>>

Place an Order

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
accountIdTDAmeritradeAccountIDTD Ameritrade Account ID
pricenumberPrice
orderLegCollectionArray.<TDAmeritradeOrderLeg>Order Leg Collection

tdAmeritradeAPI.cancelOrder ⇒ Promise.<APIResponse.<any>>

Cancel an Order

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
accountIdTDAmeritradeAccountIDTD Ameritrade Account ID
orderIdstringOrder ID

tdAmeritradeAPI.openOrder ⇒ Promise.<APIResponse.<any>>

Opening Order

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
orderRequestOrderRequestOrder Request
orderRequest.accountIdTDAmeritradeAccountIDTD Ameritrade Account ID
orderRequest.symbolTickerSymbolTicker Symbol
orderRequest.quantitynumberQuantity of Shares / Option Contracts
orderRequest.pricenumberPrice
isOptionbooleanIs Option Order
isShortbooleanIs Short Position

tdAmeritradeAPI.closeOrder ⇒ Promise.<APIResponse.<any>>

Closing Order

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
orderRequestOrderRequestOrder Request
orderRequest.accountIdTDAmeritradeAccountIDTD Ameritrade Account ID
orderRequest.symbolTickerSymbolTicker Symbol
orderRequest.quantitynumberQuantity of Shares / Option Contracts
orderRequest.pricenumberPrice
isOptionbooleanIs Option Order
isShortbooleanIs Short Position

tdAmeritradeAPI.buyStock ⇒ Promise.<APIResponse.<any>>

Buy Equtity / Stock Convenience Method

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
orderRequestOrderRequestOrder Request
orderRequest.accountIdTDAmeritradeAccountIDTD Ameritrade Account ID
orderRequest.symbolTickerSymbolTicker Symbol
orderRequest.quantitynumberQuantity of Shares / Option Contracts
orderRequest.pricenumberPrice

tdAmeritradeAPI.sellStock ⇒ Promise.<APIResponse.<any>>

Sell Equtity / Stock Convenience Method

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
orderRequestOrderRequestOrder Request
orderRequest.accountIdTDAmeritradeAccountIDTD Ameritrade Account ID
orderRequest.symbolTickerSymbolTicker Symbol
orderRequest.quantitynumberQuantity of Shares / Option Contracts
orderRequest.pricenumberPrice

tdAmeritradeAPI.shortStock ⇒ Promise.<APIResponse.<any>>

Short Equtity / Stock Convenience Method

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
orderRequestOrderRequestOrder Request
orderRequest.accountIdTDAmeritradeAccountIDTD Ameritrade Account ID
orderRequest.symbolTickerSymbolTicker Symbol
orderRequest.quantitynumberQuantity of Shares / Option Contracts
orderRequest.pricenumberPrice

tdAmeritradeAPI.coverStock ⇒ Promise.<APIResponse.<any>>

Cover Short Equtity / Stock Convenience Method

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
orderRequestOrderRequestOrder Request
orderRequest.accountIdTDAmeritradeAccountIDTD Ameritrade Account ID
orderRequest.symbolTickerSymbolTicker Symbol
orderRequest.quantitynumberQuantity of Shares / Option Contracts
orderRequest.pricenumberPrice

tdAmeritradeAPI.buyOption ⇒ Promise.<APIResponse.<any>>

Buy Option Convenience Method

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
orderRequestOrderRequestOrder Request
orderRequest.accountIdTDAmeritradeAccountIDTD Ameritrade Account ID
orderRequest.symbolTickerSymbolTicker Symbol
orderRequest.quantitynumberQuantity of Shares / Option Contracts
orderRequest.pricenumberPrice

tdAmeritradeAPI.sellOption ⇒ Promise.<APIResponse.<any>>

Sell Option Convenience Method

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
orderRequestOrderRequestOrder Request
orderRequest.accountIdTDAmeritradeAccountIDTD Ameritrade Account ID
orderRequest.symbolTickerSymbolTicker Symbol
orderRequest.quantitynumberQuantity of Shares / Option Contracts
orderRequest.pricenumberPrice

tdAmeritradeAPI.writeOption ⇒ Promise.<APIResponse.<any>>

Write Option Convenience Method

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
orderRequestOrderRequestOrder Request
orderRequest.accountIdTDAmeritradeAccountIDTD Ameritrade Account ID
orderRequest.symbolTickerSymbolTicker Symbol
orderRequest.quantitynumberQuantity of Shares / Option Contracts
orderRequest.pricenumberPrice

tdAmeritradeAPI.closeOption ⇒ Promise.<APIResponse.<any>>

Close Option Convenience Method

Kind: instance property of TDAmeritradeAPI

ParamTypeDescription
orderRequestOrderRequestOrder Request
orderRequest.accountIdTDAmeritradeAccountIDTD Ameritrade Account ID
orderRequest.symbolTickerSymbolTicker Symbol
orderRequest.quantitynumberQuantity of Shares / Option Contracts
orderRequest.pricenumberPrice

createTDAmeritradeAPIClient(config) ⇒ TDAmeritradeAPI

Creates a new instance of the TD Ameritrade API

Kind: global function

ParamTypeDescription
configAPIClientConfigAPI Client Configuration

filterBuyTrades(trades) ⇒ Array.<TransactionData>

[td-utils.js] - Filter Buy Trades

Kind: global function

ParamTypeDescription
tradesArray.<TransactionData>TRADE Transactions

filterSellTrades(trades) ⇒ Array.<TransactionData>

[td-utils.js] - Filter Sell Trades

Kind: global function

ParamTypeDescription
tradesArray.<TransactionData>TRADE Transactions

filterOpeningTrades(trades) ⇒ Array.<TransactionData>

[td-utils.js] - Filter Opening Trades

Kind: global function

ParamTypeDescription
tradesArray.<TransactionData>TRADE Transactions

filterClosingTrades(trades) ⇒ Array.<TransactionData>

[td-utils.js] - Filter Closing Trades

Kind: global function

ParamTypeDescription
tradesArray.<TransactionData>TRADE Transactions

filterOpeningShortSales(trades) ⇒ Array.<TransactionData>

[td-utils.js] - Filter Open Short Sale Trades

Kind: global function

ParamTypeDescription
tradesArray.<TransactionData>TRADE Transactions

filterClosingShortSales(trades) ⇒ Array.<TransactionData>

[td-utils.js] - Filter Closing Short Sale Trades

Kind: global function

ParamTypeDescription
tradesArray.<TransactionData>TRADE Transactions

filterOptionTrades(trades) ⇒ Array.<TransactionData>

[td-utils.js] - Filter Option Trades

Kind: global function

ParamTypeDescription
tradesArray.<TransactionData>TRADE Transactions

filterEquityTrades(trades) ⇒ Array.<TransactionData>

[td-utils.js] - Filter Equity Trades

Kind: global function

ParamTypeDescription
tradesArray.<TransactionData>TRADE Transactions

groupByOrderId(trades) ⇒ Array.<TransactionData>

[td-utils.js] - Group Trades by Order ID

Kind: global function

ParamTypeDescription
tradesArray.<TransactionData>TRADE Transactions

groupByInstrument(trades) ⇒ Array.<TransactionData>

[td-utils.js] - Group Trades by Instrument

Kind: global function

ParamTypeDescription
tradesArray.<TransactionData>TRADE Transactions

groupByInstrumentSymbol(trades) ⇒ Array.<TransactionData>

[td-utils.js] - Group Trades by Instrument Symbol

Kind: global function

ParamTypeDescription
tradesArray.<TransactionData>TRADE Transactions

groupByInstrumentUnderlyingSymbol(trades) ⇒ Array.<TransactionData>

[td-utils.js] - Group Trades by Instrument Underlying Symbol

Kind: global function

ParamTypeDescription
tradesArray.<TransactionData>TRADE Transactions

groupByInstrumentCUSIP(trades) ⇒ Array.<TransactionData>

[td-utils.js] - Group Trades by Instrument CUSIP

Kind: global function

ParamTypeDescription
tradesArray.<TransactionData>TRADE Transactions

groupByAssetType(trades) ⇒ Array.<TransactionData>

[td-utils.js] - Group Trades by Asset Type

Kind: global function

ParamTypeDescription
tradesArray.<TransactionData>TRADE Transactions

DateLikeNullable : Date | string | number | null

Kind: global typedef

TickerSymbol : string

Kind: global typedef

CUSIP : string

Kind: global typedef

TDAmeritradeAccountID : string

Kind: global typedef

AssetType : 'EQUITY' | 'OPTION'

Kind: global typedef

AcceptedOrRejected : 'ACCEPTED' | 'REJECTED'

Kind: global typedef

PositionEffect : 'OPENING' | 'CLOSING'

Kind: global typedef

BuyOrder : 'BUY' | 'BUY_TO_OPEN' | 'BUY_TO_CLOSE' | 'BUY_TO_COVER'

Kind: global typedef

SellOrder : 'SELL' | 'SELL_TO_OPEN' | 'SELL_TO_CLOSE' | 'SELL_SHORT'

Kind: global typedef

OrderDescription : 'BUY TRADE' | 'SELL TRADE' | 'SHORT SALE' | 'CLOSE SHORT POSITION'

Kind: global typedef

GetTransactionsType : 'ALL' | 'TRADE' | 'BUY_ONLY' | 'SELL_ONLY' | 'CASH_IN_OR_CASH_OUT' | 'CHECKING' | 'DIVIDEND' | 'INTEREST' | 'ADVISOR_FEES' | 'OTHER'

Kind: global typedef

TDAmeritradeAccounts : Array.<TDAmeritradeAccount>

Kind: global typedef

APIClientConfig : Object

Represents the configuration for the API client.

Kind: global typedef
Properties

NameTypeDescription
[clientId]stringThe client ID for authentication (optional).
[callbackUrl]stringThe callback URL for authentication (optional).
[handleRequest]functionA custom request handler function (optional).

APIRequestConfig : Object

Represents the configuration for making an API request.

Kind: global typedef
Properties

NameTypeDescription
urlstringThe URL of the API endpoint.
[method]stringThe HTTP method for the request (default is 'GET').
[params]Object.<string, string>Optional query parameters for the request.
[headers]Object.<string, string>Optional HTTP headers for the request.
[data]Object | Array.<Object> | string | Array.<string> | number | Array.<number>Optional request payload data.

APIResponse : Object

Represents an API response.

Kind: global typedef
Properties

NameTypeDescription
errorstring | null | undefinedAn error message (nullable and optional).
dataT | null | undefinedThe response data (nullable and optional).

AuthenticationResponse : Object

TD Ameritrade API Authentication Response

Kind: global typedef
Properties

NameTypeDescription
access_tokenstringAccess Token
refresh_tokenstringRefresh Token
scopestringOAuth2 Scope
token_typestringToken Type
expires_innumberAccess Token Expires in (seconds)
refresh_token_expires_innumberRefresh Token Expires in (seconds)

RefreshTokenResponse : Object

TD Ameritrade API Refresh Token Response

Kind: global typedef
Properties

NameTypeDescription
access_tokenstringAccess Token
scopestringOAuth2 Scope
token_typestringToken Type
expires_innumberAccess Token Expires in (seconds)

TDAmeritradeAccount : Object

Represents a TD Ameritrade account.

Kind: global typedef
Properties

NameTypeDescription
securitiesAccountObjectInformation about the securities account.
securitiesAccount.accountIdTDAmeritradeAccountIDThe account ID.
securitiesAccount.currentBalancesCurrentBalancesThe current balances.
securitiesAccount.initialBalancesInitialBalancesThe initial balances.
securitiesAccount.projectedBalancesProjectedBalancesThe projected balances.
securitiesAccount.isClosingOnlyRestrictedbooleanIndicates if the account is closing-only restricted.
securitiesAccount.isDayTraderbooleanIndicates if the account is a day trader account.
securitiesAccount.roundtripsnumberThe number of round trips.
securitiesAccount.typestringThe account type.
securitiesAccount.positionsArray.<PositionData>The positions in the account.

InstrumentData : Object

Represents stock information.

Kind: global typedef
Properties

NameTypeDescription
cusipCUSIPThe CUSIP (Committee on Uniform Securities Identification Procedures) number.
symbolTickerSymbolThe stock symbol.
descriptionstringThe description of the stock.
exchangestringThe exchange where the stock is traded.
assetTypeAssetTypeThe asset type, such as "EQUITY".
[underlyingSymbol]stringThe underlying symbol of the instrument.
[optionExpirationDate]DateLikeNullableThe option expiration date in ISO 8601 format.
[putCall]'PUT' | 'CALL'The type of option (e.g., "CALL" or "PUT").

QuoteData : Object

Represents stock data.

Kind: global typedef
Properties

NameTypeDescription
assetTypeAssetTypeThe asset type.
assetMainTypestringThe asset main type.
cusipCUSIPThe CUSIP.
assetSubTypestringThe asset sub type.
symbolTickerSymbolThe stock symbol.
descriptionstringThe stock description.
bidPricenumberThe bid price.
bidSizenumberThe bid size.
bidIdstringThe bid ID.
askPricenumberThe ask price.
askSizenumberThe ask size.
askIdstringThe ask ID.
lastPricenumberThe last price.
lastSizenumberThe last size.
lastIdstringThe last ID.
openPricenumberThe opening price.
highPricenumberThe highest price of the day.
lowPricenumberThe lowest price of the day.
bidTickstringThe bid tick.
closePricenumberThe closing price.
netChangenumberThe net price change.
totalVolumenumberThe total volume.
quoteTimeInLongnumberThe quote time in long format.
tradeTimeInLongnumberThe trade time in long format.
marknumberThe mark price.
exchangestringThe exchange.
exchangeNamestringThe exchange name.
marginablebooleanIndicates if it's marginable.
shortablebooleanIndicates if it's shortable.
volatilitynumberThe volatility.
digitsnumberThe number of digits.
nAVnumberThe NAV (Net Asset Value).
peRationumberThe P/E (Price-to-Earnings) ratio.
divAmountnumberThe dividend amount.
divYieldnumberThe dividend yield.
divDatestringThe dividend date.
securityStatusstringThe security status.
regularMarketLastPricenumberThe last price in the regular market.
regularMarketLastSizenumberThe last size in the regular market.
regularMarketNetChangenumberThe net change in the regular market.
regularMarketTradeTimeInLongnumberThe trade time in long format in the regular market.
netPercentChangeInDoublenumberThe net percent change in double format.
markChangeInDoublenumberThe mark change in double format.
markPercentChangeInDoublenumberThe mark percent change in double format.
delayedbooleanIndicates if the data is delayed.
realtimeEntitledbooleanIndicates if real-time data is entitled.

Fundamentals : Object

Represents fundamental data for a stock.

Kind: global typedef
Properties

NameTypeDescription
symbolTickerSymbolThe stock symbol.
high52numberThe 52-week high price.
low52numberThe 52-week low price.
dividendAmountnumberThe dividend amount.
dividendYieldnumberThe dividend yield.
dividendDatestringThe dividend date.
peRationumberThe Price-to-Earnings (P/E) ratio.
pegRationumberThe Price/Earnings to Growth (PEG) ratio.
pbRationumberThe Price-to-Book (P/B) ratio.
prRationumberThe Price-to-Revenue (P/R) ratio.
pcfRationumberThe Price-to-Cash Flow (P/CF) ratio.
grossMarginTTMnumberThe gross margin trailing twelve months (TTM).
grossMarginMRQnumberThe gross margin most recent quarter (MRQ).
netProfitMarginTTMnumberThe net profit margin TTM.
netProfitMarginMRQnumberThe net profit margin MRQ.
operatingMarginTTMnumberThe operating margin TTM.
operatingMarginMRQnumberThe operating margin MRQ.
returnOnEquitynumberThe return on equity.
returnOnAssetsnumberThe return on assets.
returnOnInvestmentnumberThe return on investment.
quickRationumberThe quick ratio.
currentRationumberThe current ratio.
interestCoveragenumberThe interest coverage.
totalDebtToCapitalnumberThe total debt to capital ratio.
ltDebtToEquitynumberThe long-term debt to equity ratio.
totalDebtToEquitynumberThe total debt to equity ratio.
epsTTMnumberThe earnings per share TTM.
epsChangePercentTTMnumberThe percentage change in earnings per share TTM.
epsChangeYearnumberThe change in earnings per share in a year.
epsChangenumberThe overall change in earnings per share.
revChangeYearnumberThe change in revenue in a year.
revChangeTTMnumberThe change in revenue TTM.
revChangeInnumberThe percentage change in revenue.
sharesOutstandingnumberThe number of outstanding shares.
marketCapFloatnumberThe market capitalization (float).
marketCapnumberThe total market capitalization.
bookValuePerSharenumberThe book value per share.
shortIntToFloatnumberThe short interest to float ratio.
shortIntDayToCovernumberThe short interest days to cover.
divGrowthRate3YearnumberThe 3-year dividend growth rate.
dividendPayAmountnumberThe dividend payment amount.
dividendPayDatestringThe dividend payment date.
betanumberThe beta value.
vol1DayAvgnumberThe average volume over 1 day.
vol10DayAvgnumberThe average volume over 10 days.
vol3MonthAvgnumberThe average volume over 3 months.

FundamentalData : Object

Represents Fundamental Data

Kind: global typedef
Properties

NameTypeDescription
fundamentalFundamentalsFundamental data for the stock.
cusipCUSIPThe CUSIP.
symbolTickerSymbolThe stock symbol.
descriptionstringThe stock description.
exchangestringThe exchange where the stock is traded.
assetTypestringThe asset type.

OHLC : Object

Represents Open, High, Low Close Values

Kind: global typedef
Properties

NameTypeDescription
opennumberThe opening price.
highnumberThe highest price during the period.
lownumberThe lowest price during the period.
closenumberThe closing price.

OHLCVolume : Object

Represents OHLC with Volume Values

Kind: global typedef
Properties

NameTypeDescription
opennumberThe opening price.
highnumberThe highest price during the period.
lownumberThe lowest price during the period.
closenumberThe closing price.
volumenumberThe trading volume.

Candlestick : Object

Represents a candlestick.

Kind: global typedef
Properties

NameTypeDescription
opennumberThe opening price.
highnumberThe highest price during the period.
lownumberThe lowest price during the period.
closenumberThe closing price.
volumenumberThe trading volume.
datetimenumberThe timestamp of the candlestick.

PriceHistory : Object

Represents candlestick data.

Kind: global typedef
Properties

NameTypeDescription
candlesArray.<Candlestick>An array of candlesticks.
symbolTickerSymbolThe symbol associated with the data.
emptybooleanIndicates whether the data is empty.

OptionContractData : Object

Represents option contract data.

Kind: global typedef
Properties

NameTypeDescription
putCallstringThe option type (e.g., "CALL" or "PUT").
symbolTickerSymbolThe option symbol.
descriptionstringA description of the option contract.
exchangeNamestringThe exchange where the option is traded.
bidnumberThe bid price for the option.
asknumberThe ask price for the option.
lastnumberThe last traded price for the option.
marknumberThe mark price for the option.
bidSizenumberThe size of the bid for the option.
askSizenumberThe size of the ask for the option.
bidAskSizestringThe bid and ask sizes (e.g., "45X25").
lastSizenumberThe size of the last trade for the option.
highPricenumberThe highest price of the option.
lowPricenumberThe lowest price of the option.
openPricenumberThe opening price of the option.
closePricenumberThe closing price of the option.
totalVolumenumberThe total trading volume for the option.
tradeDateDate | nullThe date of the last trade (nullable).
tradeTimeInLongnumberThe timestamp of the last trade.
quoteTimeInLongnumberThe timestamp of the quote.
netChangenumberThe net change in the option price.
volatilitynumberThe volatility of the option.
deltanumberThe delta value of the option.
gammanumberThe gamma value of the option.
thetanumberThe theta value of the option.
veganumberThe vega value of the option.
rhonumberThe rho value of the option.
openInterestnumberThe open interest in the option.
timeValuenumberThe time value of the option.
theoreticalOptionValuenumberThe theoretical option value.
theoreticalVolatilitynumberThe theoretical volatility of the option.
optionDeliverablesListstring | nullThe list of option deliverables (nullable).
strikePricenumberThe strike price of the option.
expirationDatenumberThe expiration date of the option (timestamp).
daysToExpirationnumberThe number of days to option expiration.
expirationTypestringThe type of expiration (e.g., "S" for standard).
lastTradingDaynumberThe last trading day (timestamp).
multipliernumberThe multiplier for the option (e.g., 100 for standard options).
settlementTypestringThe settlement type (e.g., " " for space).
deliverableNotestringA note about deliverables.
isIndexOptionboolean | nullIndicates if the option is an index option (nullable).
percentChangenumberThe percentage change in the option price.
markChangenumberThe change in the mark price.
markPercentChangenumberThe percentage change in the mark price.
intrinsicValuenumberThe intrinsic value of the option.
pennyPilotbooleanIndicates if the option is part of the penny pilot program.
nonStandardbooleanIndicates if the option is non-standard.
inTheMoneybooleanIndicates if the option is in the money.
minibooleanIndicates if the option is a mini option.

UnderlyingAsset : Object

Represents information about the underlying asset.

Kind: global typedef
Properties

NameTypeDescription
symbolTickerSymbolThe symbol of the underlying asset.
descriptionstringThe description of the underlying asset.
changenumberThe change in the underlying asset's price.
percentChangenumberThe percentage change in the underlying asset's price.
closenumberThe closing price of the underlying asset.
quoteTimenumberThe timestamp of the underlying asset's quote time.
tradeTimenumberThe timestamp of the underlying asset's trade time.
bidnumberThe bid price for the underlying asset.
asknumberThe ask price for the underlying asset.
lastnumberThe last traded price for the underlying asset.
marknumberThe mark price for the underlying asset.
markChangenumberThe change in the mark price for the underlying asset.
markPercentChangenumberThe percentage change in the mark price for the underlying asset.
bidSizenumberThe size of the bid for the underlying asset.
askSizenumberThe size of the ask for the underlying asset.
highPricenumberThe highest price of the underlying asset.
lowPricenumberThe lowest price of the underlying asset.
openPricenumberThe opening price of the underlying asset.
totalVolumenumberThe total trading volume for the underlying asset.
exchangeNamestringThe name of the exchange where the underlying asset is traded.
fiftyTwoWeekHighnumberThe fifty-two week high price of the underlying asset.
fiftyTwoWeekLownumberThe fifty-two week low price of the underlying asset.
delayedbooleanIndicates if the data is delayed for the underlying asset.

OptionContractDateMap : Object.<string, Array.<OptionContractData>>

Represents a mapping of option contract data by expiration date.

Kind: global typedef

OptionChainData : Object

Represents option chain data.

Kind: global typedef
Properties

NameTypeDescription
symbolTickerSymbolThe symbol.
statusstringThe status of the option chain (e.g., "SUCCESS").
underlyingUnderlyingAssetInformation about the underlying asset.
strategystringThe trading strategy (e.g., "SINGLE").
intervalnumberThe interval.
isDelayedbooleanIndicates if the data is delayed.
isIndexbooleanIndicates if the data is related to an index.
interestRatenumberThe interest rate.
underlyingPricenumberThe price of the underlying asset.
volatilitynumberThe volatility.
daysToExpirationnumberThe number of days to expiration.
numberOfContractsnumberThe number of contracts.
putExpDateMapOptionContractDateMapMap of put expiration dates and their data.
callExpDateMapOptionContractDateMapMap of call expiration dates and their data.

WatchlistItemInstrument : Object

Represents an instrument.

Kind: global typedef
Properties

NameTypeDescription
symbolTickerSymbolThe symbol of the instrument.
assetTypeAssetTypeThe asset type of the instrument (e.g., "EQUITY").

WatchlistItem : Object

Represents an instrument within a watchlist.

Kind: global typedef
Properties

NameTypeDescription
sequenceIdnumberThe sequence ID of the watchlist item.
quantitynumberThe quantity of the instrument.
averagePricenumberThe average price of the instrument.
commissionnumberThe commission associated with the instrument.
instrumentWatchlistItemInstrumentThe instrument details.

Watchlist : Object

Represents a watchlist.

Kind: global typedef
Properties

NameTypeDescription
namestringThe name of the watchlist.
watchlistIdstringThe ID of the watchlist.
accountIdstringThe ID of the account associated with the watchlist.
watchlistItemsArray.<WatchlistItem>The list of watchlist items.

Watchlists : Array.<Watchlist>

Represents multiple watchlists.

Kind: global typedef

CurrentBalances : Object

Represents an account's financial summary.

Kind: global typedef
Properties

NameTypeDescription
accruedInterestnumberAccrued interest.
cashBalancenumberCash balance.
cashReceiptsnumberCash receipts.
longOptionMarketValuenumberLong option market value.
liquidationValuenumberLiquidation value.
longMarketValuenumberLong market value.
moneyMarketFundnumberMoney market fund.
savingsnumberSavings amount.
shortMarketValuenumberShort market value.
pendingDepositsnumberPending deposits.
availableFundsnumberAvailable funds.
availableFundsNonMarginableTradenumberAvailable funds for non-marginable trade.
buyingPowernumberBuying power.
buyingPowerNonMarginableTradenumberBuying power for non-marginable trade.
dayTradingBuyingPowernumberDay trading buying power.
equitynumberEquity.
equityPercentagenumberEquity percentage.
longMarginValuenumberLong margin value.
maintenanceCallnumberMaintenance call amount.
maintenanceRequirementnumberMaintenance requirement.
marginBalancenumberMargin balance.
regTCallnumberRegulation T call amount.
shortBalancenumberShort balance.
shortMarginValuenumberShort margin value.
shortOptionMarketValuenumberShort option market value.
smanumberSpecial memorandum account (SMA).
mutualFundValuenumberMutual fund value.
bondValuenumberBond value.

InitialBalances : Object

Represents an account's financial summary.

Kind: global typedef
Properties

NameTypeDescription
accruedInterestnumberAccrued interest.
availableFundsNonMarginableTradenumberAvailable funds for non-marginable trade.
bondValuenumberBond value.
buyingPowernumberBuying power.
cashBalancenumberCash balance.
cashAvailableForTradingnumberCash available for trading.
cashReceiptsnumberCash receipts.
dayTradingBuyingPowernumberDay trading buying power.
dayTradingBuyingPowerCallnumberDay trading buying power call.
dayTradingEquityCallnumberDay trading equity call.
equitynumberEquity.
equityPercentagenumberEquity percentage.
liquidationValuenumberLiquidation value.
longMarginValuenumberLong margin value.
longOptionMarketValuenumberLong option market value.
longStockValuenumberLong stock value.
maintenanceCallnumberMaintenance call amount.
maintenanceRequirementnumberMaintenance requirement.
marginnumberMargin amount.
marginEquitynumberMargin equity.
moneyMarketFundnumberMoney market fund.
mutualFundValuenumberMutual fund value.
regTCallnumberRegulation T call amount.
shortMarginValuenumberShort margin value.
shortOptionMarketValuenumberShort option market value.
shortStockValuenumberShort stock value.
totalCashnumberTotal cash.
isInCallnumberIs in call status.
pendingDepositsnumberPending deposits.
marginBalancenumberMargin balance.
shortBalancenumberShort balance.
accountValuenumberAccount value.

ProjectedBalances : Object

Represents account-related data.

Kind: global typedef
Properties

NameTypeDescription
availableFundsnumberThe available funds in the account.
availableFundsNonMarginableTradenumberThe available funds for non-marginable trades.
buyingPowernumberThe buying power of the account.
dayTradingBuyingPowernumberThe buying power for day trading.
dayTradingBuyingPowerCallnumberThe day trading buying power call.
maintenanceCallnumberThe maintenance call.
regTCallnumberThe Regulation T (Reg T) call.
isInCallnumberIndicates whether the account is in a call state.
stockBuyingPowernumberThe buying power for stock trades.

PositionData : Object

Represents data related to a trading position.

Kind: global typedef
Properties

NameTypeDescription
shortQuantitynumberThe quantity of short positions.
averagePricenumberThe average price of the positions.
currentDayCostnumberThe current day cost.
currentDayProfitLossnumberThe current day profit or loss.
currentDayProfitLossPercentagenumberThe percentage of profit or loss for the current day.
longQuantitynumberThe quantity of long positions.
settledLongQuantitynumberThe settled quantity of long positions.
settledShortQuantitynumberThe settled quantity of short positions.
instrumentInstrumentDataInformation about the financial instrument.
marketValuenumberThe market value of the positions.
maintenanceRequirementnumberThe maintenance requirement.
previousSessionLongQuantitynumberThe quantity of long positions from the previous session.

ExchangeDelayStatus : Object

Represents a delay status for various exchanges.

Kind: global typedef
Properties

NameTypeDescription
isNyseDelayedbooleanIndicates if NYSE data is delayed.
isNasdaqDelayedbooleanIndicates if NASDAQ data is delayed.
isOpraDelayedbooleanIndicates if OPRA data is delayed.
isAmexDelayedbooleanIndicates if AMEX data is delayed.
isCmeDelayedbooleanIndicates if CME data is delayed.
isIceDelayedbooleanIndicates if ICE data is delayed.
isForexDelayedbooleanIndicates if Forex data is delayed.

StreamerSubscriptionKey : Object

Represents a single streamer subscription key.

Kind: global typedef
Properties

NameTypeDescription
keystringThe subscription key.

StreamerSubscriptionKeys : Object

Represents an array of streamer subscription keys.

Kind: global typedef
Properties

NameTypeDescription
keysArray.<StreamerSubscriptionKey>An array of streamer subscription keys.

StreamerInfo : Object

Represents streamer information.

Kind: global typedef
Properties

NameTypeDescription
accessLevelstringThe access level of the streamer.
aclstringThe ACL (Access Control List) of the streamer.
appIdstringThe application ID of the streamer.
streamerBinaryUrlstringThe binary URL of the streamer.
streamerSocketUrlstringThe socket URL of the streamer.
tokenstringThe token for authentication.
tokenTimestampDateLikeNullableThe timestamp of the token.
userGroupstringThe user group of the streamer.

UserPrincipalAccount : Object

Represents an account with its preferences and authorizations.

Kind: global typedef
Properties

NameTypeDescription
accountIdstringAccount ID.
displayNamestringThe display name of the account.
accountCdDomainIdstringThe domain ID for the account.
companystringThe company associated with the account.
segmentstringThe account segment.
surrogateIdsObject.<string, string>Surrogate IDs for the account.
preferencesObject.<string, boolean>Account preferences.
aclstringAccess control list for the account.
authorizationsObject.<string, boolean>Account authorizations.

UserPrincipalsData : Object

Represents principal data.

Kind: global typedef
Properties

NameTypeDescription
accessLevelstringThe access level of the principal.
accountsArray.<UserPrincipalAccount>Accounts
exchangeAgreementsObjectExchange agreements status.
exchangeAgreements.NASDAQ_EXCHANGE_AGREEMENTAcceptedOrRejectedNASDAQ exchange agreement status.
exchangeAgreements.NYSE_EXCHANGE_AGREEMENTAcceptedOrRejectedNYSE exchange agreement status.
exchangeAgreements.OPRA_EXCHANGE_AGREEMENTAcceptedOrRejectedOPRA exchange agreement status.
lastLoginTimeDateLikeNullableThe timestamp of the last login time.
loginTimeDateLikeNullableThe timestamp of the login time.
primaryAccountIdTDAmeritradeAccountIDThe primary account ID.
professionaStatus'PROFESSIONAL' | 'NON_PROFESSIONAL'The professional status.
stalePasswordbooleanIndicates if the password is stale.
tokenExpirationTimeDateLikeNullableThe timestamp of the token expiration time.
userCdDomainIdstringThe user's CD domain ID.
userIdstringThe user ID.
streamerSubscriptionKeysArray.<StreamerSubscriptionKeys>An array of streamer subscription keys.
quotesExchangeDelayStatusExchange delay status.
streamerInfoStreamerInfoStreamer information.

TradeTransactionFees : Object

Represents fees associated with a trade transaction.

Kind: global typedef
Properties

NameTypeDescription
rFeenumberThe R fee.
additionalFeenumberAdditional fees.
cdscFeenumberCDSC (Contingent Deferred Sales Charge) fee.
regFeenumberRegistration fee.
otherChargesnumberOther charges.
commissionnumberCommission fee.
optRegFeenumberOptions registration fee.
secFeenumberSEC (U.S. Securities and Exchange Commission) fee.

TransactionItem : Object

Represents a trade transaction item.

Kind: global typedef
Properties

NameTypeDescription
accountIdTDAmeritradeAccountIDThe ID of the account associated with the transaction item.
amountnumberThe amount of the transaction item.
pricenumberThe price of the transaction item.
positionEffectPositionEffectThe position effect (e.g., "OPENING").
costnumberThe cost associated with the transaction item.
instructionBuyOrder | SellOrderThe instruction for the transaction item (e.g., "BUY").
instrumentInstrumentDataInformation about the instrument involved in the transaction item.

TransactionData : Object

Represents a trade transaction.

Kind: global typedef
Properties

NameTypeDescription
typestringThe type of transaction (e.g., "TRADE").
subAccountstringThe sub-account associated with the transaction.
settlementDateDateLikeNullableThe settlement date of the transaction (e.g., "2022-09-14").
orderIdstringThe ID of the order associated with the transaction.
netAmountnumberThe net amount of the transaction.
transactionDateDateLikeNullableThe date and time of the transaction in ISO 8601 format.
orderDateDateLikeNullableThe date and time when the order was placed in ISO 8601 format.
transactionSubTypestringThe sub-type of the transaction (e.g., "BY").
transactionIdnumberThe unique ID of the transaction.
cashBalanceEffectFlagbooleanIndicates whether the transaction affects the cash balance.
descriptionOrderDescriptionA description of the transaction.
feesTradeTransactionFeesObject containing various fee information related to the transaction.
transactionItemTransactionItemDetailed information about the transaction item.

OrderRequest : Object

Order Request

Kind: global typedef
Properties

NameTypeDescription
accountIdTDAmeritradeAccountIDTD Ameritrade Account ID
symbolTickerSymbolTicker Symbol
quantitynumberQuantity of Shares / Option Contracts
pricenumberPrice

TDAmeritradeOrderLeg : Object

Kind: global typedef
Properties

NameTypeDescription
instructionBuyOrder | SellOrderInstruction
quantitynumberQuantity of Shares / Option Contracts
instrumentObjectInstrument
instrument.symbolTickerSymbolTicker Symbol
instrument.assetTypeAssetTypeAsset Type

OrderData : Object

Represents an order object.

Kind: global typedef
Properties

NameTypeDescription
sessionstringThe trading session for the order (e.g., "SEAMLESS").
durationstringThe duration of the order (e.g., "GOOD_TILL_CANCEL").
orderTypestringThe type of the order (e.g., "LIMIT").
complexOrderStrategyTypestringThe strategy type for complex orders (e.g., "NONE").
quantitynumberThe total quantity of the order.
filledQuantitynumberThe quantity of the order that has been filled.
remainingQuantitynumberThe remaining quantity of the order.
requestedDestinationstringThe requested destination for the order (e.g., "AUTO").
destinationLinkNamestringThe link name for the destination (e.g., "AutoRoute").
pricenumberThe price per unit of the order.
orderLegCollectionArray.<OrderLeg>An array of order legs.
orderStrategyTypestringThe strategy type for the order (e.g., "SINGLE").
orderIdnumberThe unique identifier for the order.
cancelablebooleanIndicates whether the order is cancelable.
editablebooleanIndicates whether the order is editable.
statusstringThe status of the order (e.g., "WORKING").
enteredTimeDateLikeNullableThe timestamp when the order was entered in ISO 8601 format.
tagstringA tag associated with the order (e.g., "tIP").
accountIdTDAmeritradeAccountIDThe ID of the account associated with the order.

OrderLeg : Object

Represents an order leg within an order.

Kind: global typedef
Properties

NameTypeDescription
orderLegTypestringThe type of the order leg (e.g., "EQUITY").
legIdnumberThe unique identifier for the order leg.
instrumentInstrumentDataInformation about the financial instrument.
instructionBuyOrder | SellOrderThe instruction for the order leg (e.g., "BUY").
positionEffectPositionEffectThe position effect of the order leg (e.g., "OPENING").
quantitynumberThe quantity of the order leg.

TrendingEquity : Object

Represents Market Mover Trending Equity data.

Kind: global typedef
Properties

NameTypeDescription
changenumberThe change in stock status. Negative values indicate a decrease.
descriptionstringThe description of the stock status.
directionstringThe direction of the change (e.g., "up" or "down").
lastnumberThe last traded price of the stock.
symbolstringThe stock symbol.
totalVolumenumberThe total trading volume for the stock.

MarketMovers : Object

Represents Market Movers - Current Trending Equities of $SPX.X, $COMPX, $DJI

Kind: global typedef
Properties

NameTypeDescription
upArray.<TrendingEquity>Equities Trending up
downArray.<TrendingEquity>Equities Trending down