@gitchrisqueen/tdameritrade-api-js-client
Version:
TD Ameritrade API integration for node.js
859 lines (741 loc) • 24 kB
JavaScript
/**
* TD Ameritrade API - OAuth2
* This is replication of the TD Ameritrade API.
*
* OpenAPI spec version: 0.1.4
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
*/
import ApiClient from './ApiClient';
import Account from './model/Account';
import AccountSecuritiesAccount from './model/AccountSecuritiesAccount';
import AssetType from './model/AssetType';
import Bond from './model/Bond';
import CandleList from './model/CandleList';
import CandleListCandles from './model/CandleListCandles';
import CashAccount from './model/CashAccount';
import CashAccountBalances from './model/CashAccountBalances';
import CashAccountCurrentBalances from './model/CashAccountCurrentBalances';
import CashAccountInitialBalances from './model/CashAccountInitialBalances';
import CashEquivalent from './model/CashEquivalent';
import Duration from './model/Duration';
import EASObject from './model/EASObject';
import ETFQuote from './model/ETFQuote';
import Equity from './model/Equity';
import EquityAssetType from './model/EquityAssetType';
import EquityQuote from './model/EquityQuote';
import ErrorObject from './model/ErrorObject';
import Execution from './model/Execution';
import ExecutionExecutionLegs from './model/ExecutionExecutionLegs';
import ExpirationDate from './model/ExpirationDate';
import FixedIncome from './model/FixedIncome';
import ForexQuote from './model/ForexQuote';
import FrequencyType from './model/FrequencyType';
import Fundamental from './model/Fundamental';
import FundamentalData from './model/FundamentalData';
import FundamentalFundamental from './model/FundamentalFundamental';
import FutureOptionsQuote from './model/FutureOptionsQuote';
import FutureQuote from './model/FutureQuote';
import GetOptionChainResponse from './model/GetOptionChainResponse';
import GetQuoteResponse from './model/GetQuoteResponse';
import Hours from './model/Hours';
import HoursSessionHours from './model/HoursSessionHours';
import IndexQuote from './model/IndexQuote';
import Instrument from './model/Instrument';
import LotMethod from './model/LotMethod';
import MarginAccount from './model/MarginAccount';
import MarginAccountBalances from './model/MarginAccountBalances';
import MarginAccountCurrentBalances from './model/MarginAccountCurrentBalances';
import MarginAccountInitialBalances from './model/MarginAccountInitialBalances';
import MarginAccountOrderStrategies from './model/MarginAccountOrderStrategies';
import MarginAccountPositions from './model/MarginAccountPositions';
import Mover from './model/Mover';
import MutualFund from './model/MutualFund';
import MutualFundQuote from './model/MutualFundQuote';
import OneOfInstrumentSchema from './model/OneOfInstrumentSchema';
import OneOfSecuritiesAccountSchema from './model/OneOfSecuritiesAccountSchema';
import Option from './model/Option';
import OptionChain from './model/OptionChain';
import OptionChainOption from './model/OptionChainOption';
import OptionChainOptionOptionDeliverablesList from './model/OptionChainOptionOptionDeliverablesList';
import OptionChainOptionPutCall from './model/OptionChainOptionPutCall';
import OptionChainStrategy from './model/OptionChainStrategy';
import OptionChainUnderlying from './model/OptionChainUnderlying';
import OptionDeliverable from './model/OptionDeliverable';
import OptionDeliverableInner from './model/OptionDeliverableInner';
import OptionDeliverableInnerAssetType from './model/OptionDeliverableInnerAssetType';
import OptionQuote from './model/OptionQuote';
import OrderActivity from './model/OrderActivity';
import OrderGet from './model/OrderGet';
import OrderGetCancelTime from './model/OrderGetCancelTime';
import OrderGetDuration from './model/OrderGetDuration';
import OrderGetInstrument from './model/OrderGetInstrument';
import OrderGetOrderActivityCollection from './model/OrderGetOrderActivityCollection';
import OrderGetOrderLegCollection from './model/OrderGetOrderLegCollection';
import OrderGetOrderType from './model/OrderGetOrderType';
import OrderGetSession from './model/OrderGetSession';
import OrderType from './model/OrderType';
import PeriodType from './model/PeriodType';
import Positions from './model/Positions';
import PositionsInner from './model/PositionsInner';
import PositionsInnerInstrument from './model/PositionsInnerInstrument';
import PostAccessBody from './model/PostAccessBody';
import Preferences from './model/Preferences';
import PutCall from './model/PutCall';
import SearchInstrument from './model/SearchInstrument';
import SearchInstrumentResponse from './model/SearchInstrumentResponse';
import SecuritiesAccount from './model/SecuritiesAccount';
import Session from './model/Session';
import Strategy from './model/Strategy';
import StrikePriceMap from './model/StrikePriceMap';
import SubscriptionKey from './model/SubscriptionKey';
import SubscriptionKeyKeys from './model/SubscriptionKeyKeys';
import Transaction from './model/Transaction';
import TransactionTransactionItem from './model/TransactionTransactionItem';
import TransactionTransactionItemInstrument from './model/TransactionTransactionItemInstrument';
import Underlying from './model/Underlying';
import UserPrincipal from './model/UserPrincipal';
import UserPrincipalAccounts from './model/UserPrincipalAccounts';
import UserPrincipalAuthorizations from './model/UserPrincipalAuthorizations';
import UserPrincipalPreferences from './model/UserPrincipalPreferences';
import UserPrincipalPreferencesMutualFundTaxLotMethod from './model/UserPrincipalPreferencesMutualFundTaxLotMethod';
import UserPrincipalQuotes from './model/UserPrincipalQuotes';
import UserPrincipalStreamerInfo from './model/UserPrincipalStreamerInfo';
import UserPrincipalStreamerSubscriptionKeys from './model/UserPrincipalStreamerSubscriptionKeys';
import WatchList from './model/WatchList';
import WatchListInstrument from './model/WatchListInstrument';
import WatchListRequest from './model/WatchListRequest';
import WatchListRequestInstrument from './model/WatchListRequestInstrument';
import WatchListRequestWatchlistItems from './model/WatchListRequestWatchlistItems';
import WatchListResponse from './model/WatchListResponse';
import WatchListWatchlistItems from './model/WatchListWatchlistItems';
import AccountsApi from './api/AccountsApi';
import AuthenticationApi from './api/AuthenticationApi';
import InstrumentsApi from './api/InstrumentsApi';
import MarketHoursApi from './api/MarketHoursApi';
import MoversApi from './api/MoversApi';
import OptionChainsApi from './api/OptionChainsApi';
import OrdersApi from './api/OrdersApi';
import PriceHistoryApi from './api/PriceHistoryApi';
import QuotesApi from './api/QuotesApi';
import SavedOrdersApi from './api/SavedOrdersApi';
import TransactionsApi from './api/TransactionsApi';
import UserInfoPreferencesApi from './api/UserInfoPreferencesApi';
import WatchlistApi from './api/WatchlistApi';
/**
* TD Ameritrade API node javascript client code..<br>
* The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
* <p>
* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
* <pre>
* var GitChrisQueen_TDA_JS = require('index'); // See note below*.
* var xxxSvc = new GitChrisQueen_TDA_JS.XxxApi(); // Allocate the API class we're going to use.
* var yyyModel = new GitChrisQueen_TDA_JS.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
* ...
* </pre>
* <em>*NOTE: For a top-level AMD script, use require(['index'], function(){...})
* and put the application logic within the callback function.</em>
* </p>
* <p>
* A non-AMD browser application (discouraged) might do something like this:
* <pre>
* var xxxSvc = new GitChrisQueen_TDA_JS.XxxApi(); // Allocate the API class we're going to use.
* var yyy = new GitChrisQueen_TDA_JS.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
* ...
* </pre>
* </p>
* @module index
* @version 0.1.4
*/
export {
/**
* The ApiClient constructor.
* @property {module:ApiClient}
*/
ApiClient,
/**
* The Account model constructor.
* @property {module:model/Account}
*/
Account,
/**
* The AccountSecuritiesAccount model constructor.
* @property {module:model/AccountSecuritiesAccount}
*/
AccountSecuritiesAccount,
/**
* The AssetType model constructor.
* @property {module:model/AssetType}
*/
AssetType,
/**
* The Bond model constructor.
* @property {module:model/Bond}
*/
Bond,
/**
* The CandleList model constructor.
* @property {module:model/CandleList}
*/
CandleList,
/**
* The CandleListCandles model constructor.
* @property {module:model/CandleListCandles}
*/
CandleListCandles,
/**
* The CashAccount model constructor.
* @property {module:model/CashAccount}
*/
CashAccount,
/**
* The CashAccountBalances model constructor.
* @property {module:model/CashAccountBalances}
*/
CashAccountBalances,
/**
* The CashAccountCurrentBalances model constructor.
* @property {module:model/CashAccountCurrentBalances}
*/
CashAccountCurrentBalances,
/**
* The CashAccountInitialBalances model constructor.
* @property {module:model/CashAccountInitialBalances}
*/
CashAccountInitialBalances,
/**
* The CashEquivalent model constructor.
* @property {module:model/CashEquivalent}
*/
CashEquivalent,
/**
* The Duration model constructor.
* @property {module:model/Duration}
*/
Duration,
/**
* The EASObject model constructor.
* @property {module:model/EASObject}
*/
EASObject,
/**
* The ETFQuote model constructor.
* @property {module:model/ETFQuote}
*/
ETFQuote,
/**
* The Equity model constructor.
* @property {module:model/Equity}
*/
Equity,
/**
* The EquityAssetType model constructor.
* @property {module:model/EquityAssetType}
*/
EquityAssetType,
/**
* The EquityQuote model constructor.
* @property {module:model/EquityQuote}
*/
EquityQuote,
/**
* The ErrorObject model constructor.
* @property {module:model/ErrorObject}
*/
ErrorObject,
/**
* The Execution model constructor.
* @property {module:model/Execution}
*/
Execution,
/**
* The ExecutionExecutionLegs model constructor.
* @property {module:model/ExecutionExecutionLegs}
*/
ExecutionExecutionLegs,
/**
* The ExpirationDate model constructor.
* @property {module:model/ExpirationDate}
*/
ExpirationDate,
/**
* The FixedIncome model constructor.
* @property {module:model/FixedIncome}
*/
FixedIncome,
/**
* The ForexQuote model constructor.
* @property {module:model/ForexQuote}
*/
ForexQuote,
/**
* The FrequencyType model constructor.
* @property {module:model/FrequencyType}
*/
FrequencyType,
/**
* The Fundamental model constructor.
* @property {module:model/Fundamental}
*/
Fundamental,
/**
* The FundamentalData model constructor.
* @property {module:model/FundamentalData}
*/
FundamentalData,
/**
* The FundamentalFundamental model constructor.
* @property {module:model/FundamentalFundamental}
*/
FundamentalFundamental,
/**
* The FutureOptionsQuote model constructor.
* @property {module:model/FutureOptionsQuote}
*/
FutureOptionsQuote,
/**
* The FutureQuote model constructor.
* @property {module:model/FutureQuote}
*/
FutureQuote,
/**
* The GetOptionChainResponse model constructor.
* @property {module:model/GetOptionChainResponse}
*/
GetOptionChainResponse,
/**
* The GetQuoteResponse model constructor.
* @property {module:model/GetQuoteResponse}
*/
GetQuoteResponse,
/**
* The Hours model constructor.
* @property {module:model/Hours}
*/
Hours,
/**
* The HoursSessionHours model constructor.
* @property {module:model/HoursSessionHours}
*/
HoursSessionHours,
/**
* The IndexQuote model constructor.
* @property {module:model/IndexQuote}
*/
IndexQuote,
/**
* The Instrument model constructor.
* @property {module:model/Instrument}
*/
Instrument,
/**
* The LotMethod model constructor.
* @property {module:model/LotMethod}
*/
LotMethod,
/**
* The MarginAccount model constructor.
* @property {module:model/MarginAccount}
*/
MarginAccount,
/**
* The MarginAccountBalances model constructor.
* @property {module:model/MarginAccountBalances}
*/
MarginAccountBalances,
/**
* The MarginAccountCurrentBalances model constructor.
* @property {module:model/MarginAccountCurrentBalances}
*/
MarginAccountCurrentBalances,
/**
* The MarginAccountInitialBalances model constructor.
* @property {module:model/MarginAccountInitialBalances}
*/
MarginAccountInitialBalances,
/**
* The MarginAccountOrderStrategies model constructor.
* @property {module:model/MarginAccountOrderStrategies}
*/
MarginAccountOrderStrategies,
/**
* The MarginAccountPositions model constructor.
* @property {module:model/MarginAccountPositions}
*/
MarginAccountPositions,
/**
* The Mover model constructor.
* @property {module:model/Mover}
*/
Mover,
/**
* The MutualFund model constructor.
* @property {module:model/MutualFund}
*/
MutualFund,
/**
* The MutualFundQuote model constructor.
* @property {module:model/MutualFundQuote}
*/
MutualFundQuote,
/**
* The OneOfInstrumentSchema model constructor.
* @property {module:model/OneOfInstrumentSchema}
*/
OneOfInstrumentSchema,
/**
* The OneOfSecuritiesAccountSchema model constructor.
* @property {module:model/OneOfSecuritiesAccountSchema}
*/
OneOfSecuritiesAccountSchema,
/**
* The Option model constructor.
* @property {module:model/Option}
*/
Option,
/**
* The OptionChain model constructor.
* @property {module:model/OptionChain}
*/
OptionChain,
/**
* The OptionChainOption model constructor.
* @property {module:model/OptionChainOption}
*/
OptionChainOption,
/**
* The OptionChainOptionOptionDeliverablesList model constructor.
* @property {module:model/OptionChainOptionOptionDeliverablesList}
*/
OptionChainOptionOptionDeliverablesList,
/**
* The OptionChainOptionPutCall model constructor.
* @property {module:model/OptionChainOptionPutCall}
*/
OptionChainOptionPutCall,
/**
* The OptionChainStrategy model constructor.
* @property {module:model/OptionChainStrategy}
*/
OptionChainStrategy,
/**
* The OptionChainUnderlying model constructor.
* @property {module:model/OptionChainUnderlying}
*/
OptionChainUnderlying,
/**
* The OptionDeliverable model constructor.
* @property {module:model/OptionDeliverable}
*/
OptionDeliverable,
/**
* The OptionDeliverableInner model constructor.
* @property {module:model/OptionDeliverableInner}
*/
OptionDeliverableInner,
/**
* The OptionDeliverableInnerAssetType model constructor.
* @property {module:model/OptionDeliverableInnerAssetType}
*/
OptionDeliverableInnerAssetType,
/**
* The OptionQuote model constructor.
* @property {module:model/OptionQuote}
*/
OptionQuote,
/**
* The OrderActivity model constructor.
* @property {module:model/OrderActivity}
*/
OrderActivity,
/**
* The OrderGet model constructor.
* @property {module:model/OrderGet}
*/
OrderGet,
/**
* The OrderGetCancelTime model constructor.
* @property {module:model/OrderGetCancelTime}
*/
OrderGetCancelTime,
/**
* The OrderGetDuration model constructor.
* @property {module:model/OrderGetDuration}
*/
OrderGetDuration,
/**
* The OrderGetInstrument model constructor.
* @property {module:model/OrderGetInstrument}
*/
OrderGetInstrument,
/**
* The OrderGetOrderActivityCollection model constructor.
* @property {module:model/OrderGetOrderActivityCollection}
*/
OrderGetOrderActivityCollection,
/**
* The OrderGetOrderLegCollection model constructor.
* @property {module:model/OrderGetOrderLegCollection}
*/
OrderGetOrderLegCollection,
/**
* The OrderGetOrderType model constructor.
* @property {module:model/OrderGetOrderType}
*/
OrderGetOrderType,
/**
* The OrderGetSession model constructor.
* @property {module:model/OrderGetSession}
*/
OrderGetSession,
/**
* The OrderType model constructor.
* @property {module:model/OrderType}
*/
OrderType,
/**
* The PeriodType model constructor.
* @property {module:model/PeriodType}
*/
PeriodType,
/**
* The Positions model constructor.
* @property {module:model/Positions}
*/
Positions,
/**
* The PositionsInner model constructor.
* @property {module:model/PositionsInner}
*/
PositionsInner,
/**
* The PositionsInnerInstrument model constructor.
* @property {module:model/PositionsInnerInstrument}
*/
PositionsInnerInstrument,
/**
* The PostAccessBody model constructor.
* @property {module:model/PostAccessBody}
*/
PostAccessBody,
/**
* The Preferences model constructor.
* @property {module:model/Preferences}
*/
Preferences,
/**
* The PutCall model constructor.
* @property {module:model/PutCall}
*/
PutCall,
/**
* The SearchInstrument model constructor.
* @property {module:model/SearchInstrument}
*/
SearchInstrument,
/**
* The SearchInstrumentResponse model constructor.
* @property {module:model/SearchInstrumentResponse}
*/
SearchInstrumentResponse,
/**
* The SecuritiesAccount model constructor.
* @property {module:model/SecuritiesAccount}
*/
SecuritiesAccount,
/**
* The Session model constructor.
* @property {module:model/Session}
*/
Session,
/**
* The Strategy model constructor.
* @property {module:model/Strategy}
*/
Strategy,
/**
* The StrikePriceMap model constructor.
* @property {module:model/StrikePriceMap}
*/
StrikePriceMap,
/**
* The SubscriptionKey model constructor.
* @property {module:model/SubscriptionKey}
*/
SubscriptionKey,
/**
* The SubscriptionKeyKeys model constructor.
* @property {module:model/SubscriptionKeyKeys}
*/
SubscriptionKeyKeys,
/**
* The Transaction model constructor.
* @property {module:model/Transaction}
*/
Transaction,
/**
* The TransactionTransactionItem model constructor.
* @property {module:model/TransactionTransactionItem}
*/
TransactionTransactionItem,
/**
* The TransactionTransactionItemInstrument model constructor.
* @property {module:model/TransactionTransactionItemInstrument}
*/
TransactionTransactionItemInstrument,
/**
* The Underlying model constructor.
* @property {module:model/Underlying}
*/
Underlying,
/**
* The UserPrincipal model constructor.
* @property {module:model/UserPrincipal}
*/
UserPrincipal,
/**
* The UserPrincipalAccounts model constructor.
* @property {module:model/UserPrincipalAccounts}
*/
UserPrincipalAccounts,
/**
* The UserPrincipalAuthorizations model constructor.
* @property {module:model/UserPrincipalAuthorizations}
*/
UserPrincipalAuthorizations,
/**
* The UserPrincipalPreferences model constructor.
* @property {module:model/UserPrincipalPreferences}
*/
UserPrincipalPreferences,
/**
* The UserPrincipalPreferencesMutualFundTaxLotMethod model constructor.
* @property {module:model/UserPrincipalPreferencesMutualFundTaxLotMethod}
*/
UserPrincipalPreferencesMutualFundTaxLotMethod,
/**
* The UserPrincipalQuotes model constructor.
* @property {module:model/UserPrincipalQuotes}
*/
UserPrincipalQuotes,
/**
* The UserPrincipalStreamerInfo model constructor.
* @property {module:model/UserPrincipalStreamerInfo}
*/
UserPrincipalStreamerInfo,
/**
* The UserPrincipalStreamerSubscriptionKeys model constructor.
* @property {module:model/UserPrincipalStreamerSubscriptionKeys}
*/
UserPrincipalStreamerSubscriptionKeys,
/**
* The WatchList model constructor.
* @property {module:model/WatchList}
*/
WatchList,
/**
* The WatchListInstrument model constructor.
* @property {module:model/WatchListInstrument}
*/
WatchListInstrument,
/**
* The WatchListRequest model constructor.
* @property {module:model/WatchListRequest}
*/
WatchListRequest,
/**
* The WatchListRequestInstrument model constructor.
* @property {module:model/WatchListRequestInstrument}
*/
WatchListRequestInstrument,
/**
* The WatchListRequestWatchlistItems model constructor.
* @property {module:model/WatchListRequestWatchlistItems}
*/
WatchListRequestWatchlistItems,
/**
* The WatchListResponse model constructor.
* @property {module:model/WatchListResponse}
*/
WatchListResponse,
/**
* The WatchListWatchlistItems model constructor.
* @property {module:model/WatchListWatchlistItems}
*/
WatchListWatchlistItems,
/**
* The AccountsApi service constructor.
* @property {module:api/AccountsApi}
*/
AccountsApi,
/**
* The AuthenticationApi service constructor.
* @property {module:api/AuthenticationApi}
*/
AuthenticationApi,
/**
* The InstrumentsApi service constructor.
* @property {module:api/InstrumentsApi}
*/
InstrumentsApi,
/**
* The MarketHoursApi service constructor.
* @property {module:api/MarketHoursApi}
*/
MarketHoursApi,
/**
* The MoversApi service constructor.
* @property {module:api/MoversApi}
*/
MoversApi,
/**
* The OptionChainsApi service constructor.
* @property {module:api/OptionChainsApi}
*/
OptionChainsApi,
/**
* The OrdersApi service constructor.
* @property {module:api/OrdersApi}
*/
OrdersApi,
/**
* The PriceHistoryApi service constructor.
* @property {module:api/PriceHistoryApi}
*/
PriceHistoryApi,
/**
* The QuotesApi service constructor.
* @property {module:api/QuotesApi}
*/
QuotesApi,
/**
* The SavedOrdersApi service constructor.
* @property {module:api/SavedOrdersApi}
*/
SavedOrdersApi,
/**
* The TransactionsApi service constructor.
* @property {module:api/TransactionsApi}
*/
TransactionsApi,
/**
* The UserInfoPreferencesApi service constructor.
* @property {module:api/UserInfoPreferencesApi}
*/
UserInfoPreferencesApi,
/**
* The WatchlistApi service constructor.
* @property {module:api/WatchlistApi}
*/
WatchlistApi
};