UNPKG

@gitchrisqueen/tdameritrade-api-js-client

Version:
100 lines (85 loc) 2.62 kB
/** * 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'; /** * The WatchListRequestInstrument model module. * @module model/WatchListRequestInstrument * @version 0.1.4 */ export default class WatchListRequestInstrument { /** * Constructs a new <code>WatchListRequestInstrument</code>. * @alias module:model/WatchListRequestInstrument * @class */ constructor() { } /** * Constructs a <code>WatchListRequestInstrument</code> from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:model/WatchListRequestInstrument} obj Optional instance to populate. * @return {module:model/WatchListRequestInstrument} The populated <code>WatchListRequestInstrument</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new WatchListRequestInstrument(); if (data.hasOwnProperty('symbol')) { obj['symbol'] = ApiClient.convertToType(data['symbol'], 'String'); } if (data.hasOwnProperty('assetType')) { obj['assetType'] = ApiClient.convertToType(data['assetType'], 'String'); } } return obj; } /** * @member {String} symbol */ 'symbol' = undefined; /** * @member {module:model/WatchListRequestInstrument.AssetTypeEnum} assetType */ 'assetType' = undefined; /** * Allowed values for the <code>assetType</code> property. * @enum {String} * @readonly */ static AssetTypeEnum = { /** * value: "EQUITY" * @const */ "EQUITY": "EQUITY", /** * value: "OPTION" * @const */ "OPTION": "OPTION", /** * value: "MUTUAL_FUND" * @const */ "MUTUAL_FUND": "MUTUAL_FUND", /** * value: "FIXED_INCOME" * @const */ "FIXED_INCOME": "FIXED_INCOME", /** * value: "INDEX" * @const */ "INDEX": "INDEX" }; }