@gitchrisqueen/tdameritrade-api-js-client
Version:
TD Ameritrade API integration for node.js
502 lines (435 loc) • 13.8 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 Equity from './model/Equity';
import EquityAssetType from './model/EquityAssetType';
import Execution from './model/Execution';
import ExecutionExecutionLegs from './model/ExecutionExecutionLegs';
import FixedIncome from './model/FixedIncome';
import FrequencyType from './model/FrequencyType';
import Fundamental from './model/Fundamental';
import FundamentalData from './model/FundamentalData';
import FundamentalFundamental from './model/FundamentalFundamental';
import Hours from './model/Hours';
import HoursSessionHours from './model/HoursSessionHours';
import Instrument from './model/Instrument';
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 OneOfInstrumentSchema from './model/OneOfInstrumentSchema';
import OneOfSecuritiesAccountSchema from './model/OneOfSecuritiesAccountSchema';
import Option from './model/Option';
import OptionOptionDeliverables from './model/OptionOptionDeliverables';
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 SearchInstrument from './model/SearchInstrument';
import SearchInstrumentResponse from './model/SearchInstrumentResponse';
import SecuritiesAccount from './model/SecuritiesAccount';
import Session from './model/Session';
import AccountsApi from './api/AccountsApi';
import AuthenticationApi from './api/AuthenticationApi';
import MarketHoursApi from './api/MarketHoursApi';
import MoversApi from './api/MoversApi';
import OrdersApi from './api/OrdersApi';
import PriceHistoryApi from './api/PriceHistoryApi';
import SavedOrdersApi from './api/SavedOrdersApi';
import SearchInstrumentsApi from './api/SearchInstrumentsApi';
/**
* 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 Equity model constructor.
* @property {module:model/Equity}
*/
Equity,
/**
* The EquityAssetType model constructor.
* @property {module:model/EquityAssetType}
*/
EquityAssetType,
/**
* The Execution model constructor.
* @property {module:model/Execution}
*/
Execution,
/**
* The ExecutionExecutionLegs model constructor.
* @property {module:model/ExecutionExecutionLegs}
*/
ExecutionExecutionLegs,
/**
* The FixedIncome model constructor.
* @property {module:model/FixedIncome}
*/
FixedIncome,
/**
* 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 Hours model constructor.
* @property {module:model/Hours}
*/
Hours,
/**
* The HoursSessionHours model constructor.
* @property {module:model/HoursSessionHours}
*/
HoursSessionHours,
/**
* The Instrument model constructor.
* @property {module:model/Instrument}
*/
Instrument,
/**
* 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 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 OptionOptionDeliverables model constructor.
* @property {module:model/OptionOptionDeliverables}
*/
OptionOptionDeliverables,
/**
* 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 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 AccountsApi service constructor.
* @property {module:api/AccountsApi}
*/
AccountsApi,
/**
* The AuthenticationApi service constructor.
* @property {module:api/AuthenticationApi}
*/
AuthenticationApi,
/**
* The MarketHoursApi service constructor.
* @property {module:api/MarketHoursApi}
*/
MarketHoursApi,
/**
* The MoversApi service constructor.
* @property {module:api/MoversApi}
*/
MoversApi,
/**
* The OrdersApi service constructor.
* @property {module:api/OrdersApi}
*/
OrdersApi,
/**
* The PriceHistoryApi service constructor.
* @property {module:api/PriceHistoryApi}
*/
PriceHistoryApi,
/**
* The SavedOrdersApi service constructor.
* @property {module:api/SavedOrdersApi}
*/
SavedOrdersApi,
/**
* The SearchInstrumentsApi service constructor.
* @property {module:api/SearchInstrumentsApi}
*/
SearchInstrumentsApi
};