@gitchrisqueen/tdameritrade-api-js-client
Version:
TD Ameritrade API integration for node.js
113 lines (96 loc) • 4.38 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.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', '../../src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.GitChrisQueen_TDA_JS);
}
}(this, function(expect, GitChrisQueen_TDA_JS) {
'use strict';
var instance;
beforeEach(function() {
instance = new GitChrisQueen_TDA_JS.PositionsInner();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('PositionsInner', function() {
it('should create an instance of PositionsInner', function() {
// uncomment below and update the code to test PositionsInner
//var instane = new GitChrisQueen_TDA_JS.PositionsInner();
//expect(instance).to.be.a(GitChrisQueen_TDA_JS.PositionsInner);
});
it('should have the property shortQuantity (base name: "shortQuantity")', function() {
// uncomment below and update the code to test the property shortQuantity
//var instane = new GitChrisQueen_TDA_JS.PositionsInner();
//expect(instance).to.be();
});
it('should have the property averagePrice (base name: "averagePrice")', function() {
// uncomment below and update the code to test the property averagePrice
//var instane = new GitChrisQueen_TDA_JS.PositionsInner();
//expect(instance).to.be();
});
it('should have the property currentDayProfitLoss (base name: "currentDayProfitLoss")', function() {
// uncomment below and update the code to test the property currentDayProfitLoss
//var instane = new GitChrisQueen_TDA_JS.PositionsInner();
//expect(instance).to.be();
});
it('should have the property currentDayProfitLossPercentage (base name: "currentDayProfitLossPercentage")', function() {
// uncomment below and update the code to test the property currentDayProfitLossPercentage
//var instane = new GitChrisQueen_TDA_JS.PositionsInner();
//expect(instance).to.be();
});
it('should have the property longQuantity (base name: "longQuantity")', function() {
// uncomment below and update the code to test the property longQuantity
//var instane = new GitChrisQueen_TDA_JS.PositionsInner();
//expect(instance).to.be();
});
it('should have the property settledLongQuantity (base name: "settledLongQuantity")', function() {
// uncomment below and update the code to test the property settledLongQuantity
//var instane = new GitChrisQueen_TDA_JS.PositionsInner();
//expect(instance).to.be();
});
it('should have the property settledShortQuantity (base name: "settledShortQuantity")', function() {
// uncomment below and update the code to test the property settledShortQuantity
//var instane = new GitChrisQueen_TDA_JS.PositionsInner();
//expect(instance).to.be();
});
it('should have the property agedQuantity (base name: "agedQuantity")', function() {
// uncomment below and update the code to test the property agedQuantity
//var instane = new GitChrisQueen_TDA_JS.PositionsInner();
//expect(instance).to.be();
});
it('should have the property instrument (base name: "instrument")', function() {
// uncomment below and update the code to test the property instrument
//var instane = new GitChrisQueen_TDA_JS.PositionsInner();
//expect(instance).to.be();
});
});
}));