@gitchrisqueen/tdameritrade-api-js-client
Version:
TD Ameritrade API integration for node.js
239 lines (200 loc) • 11.4 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
*
* Swagger Codegen version: 2.4.14
*
* 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;
describe('(package)', function() {
describe('MarginAccountBalances', function() {
beforeEach(function() {
instance = new GitChrisQueen_TDA_JS.MarginAccountBalances();
});
it('should create an instance of MarginAccountBalances', function() {
// TODO: update the code to test MarginAccountBalances
expect(instance).to.be.a(GitChrisQueen_TDA_JS.MarginAccountBalances);
});
it('should have the property accruedInterest (base name: "accruedInterest")', function() {
// TODO: update the code to test the property accruedInterest
expect(instance).to.have.property('accruedInterest');
// expect(instance.accruedInterest).to.be(expectedValueLiteral);
});
it('should have the property availableFunds (base name: "availableFunds")', function() {
// TODO: update the code to test the property availableFunds
expect(instance).to.have.property('availableFunds');
// expect(instance.availableFunds).to.be(expectedValueLiteral);
});
it('should have the property availableFundsNonMarginableTrade (base name: "availableFundsNonMarginableTrade")', function() {
// TODO: update the code to test the property availableFundsNonMarginableTrade
expect(instance).to.have.property('availableFundsNonMarginableTrade');
// expect(instance.availableFundsNonMarginableTrade).to.be(expectedValueLiteral);
});
it('should have the property bondValue (base name: "bondValue")', function() {
// TODO: update the code to test the property bondValue
expect(instance).to.have.property('bondValue');
// expect(instance.bondValue).to.be(expectedValueLiteral);
});
it('should have the property buyingPower (base name: "buyingPower")', function() {
// TODO: update the code to test the property buyingPower
expect(instance).to.have.property('buyingPower');
// expect(instance.buyingPower).to.be(expectedValueLiteral);
});
it('should have the property buyingPowerNonMarginableTrade (base name: "buyingPowerNonMarginableTrade")', function() {
// TODO: update the code to test the property buyingPowerNonMarginableTrade
expect(instance).to.have.property('buyingPowerNonMarginableTrade');
// expect(instance.buyingPowerNonMarginableTrade).to.be(expectedValueLiteral);
});
it('should have the property cashBalance (base name: "cashBalance")', function() {
// TODO: update the code to test the property cashBalance
expect(instance).to.have.property('cashBalance');
// expect(instance.cashBalance).to.be(expectedValueLiteral);
});
it('should have the property cashReceipts (base name: "cashReceipts")', function() {
// TODO: update the code to test the property cashReceipts
expect(instance).to.have.property('cashReceipts');
// expect(instance.cashReceipts).to.be(expectedValueLiteral);
});
it('should have the property dayTradingBuyingPower (base name: "dayTradingBuyingPower")', function() {
// TODO: update the code to test the property dayTradingBuyingPower
expect(instance).to.have.property('dayTradingBuyingPower');
// expect(instance.dayTradingBuyingPower).to.be(expectedValueLiteral);
});
it('should have the property dayTradingBuyingPowerCall (base name: "dayTradingBuyingPowerCall")', function() {
// TODO: update the code to test the property dayTradingBuyingPowerCall
expect(instance).to.have.property('dayTradingBuyingPowerCall');
// expect(instance.dayTradingBuyingPowerCall).to.be(expectedValueLiteral);
});
it('should have the property equity (base name: "equity")', function() {
// TODO: update the code to test the property equity
expect(instance).to.have.property('equity');
// expect(instance.equity).to.be(expectedValueLiteral);
});
it('should have the property equityPercentage (base name: "equityPercentage")', function() {
// TODO: update the code to test the property equityPercentage
expect(instance).to.have.property('equityPercentage');
// expect(instance.equityPercentage).to.be(expectedValueLiteral);
});
it('should have the property isInCall (base name: "isInCall")', function() {
// TODO: update the code to test the property isInCall
expect(instance).to.have.property('isInCall');
// expect(instance.isInCall).to.be(expectedValueLiteral);
});
it('should have the property liquidationValue (base name: "liquidationValue")', function() {
// TODO: update the code to test the property liquidationValue
expect(instance).to.have.property('liquidationValue');
// expect(instance.liquidationValue).to.be(expectedValueLiteral);
});
it('should have the property longMarginValue (base name: "longMarginValue")', function() {
// TODO: update the code to test the property longMarginValue
expect(instance).to.have.property('longMarginValue');
// expect(instance.longMarginValue).to.be(expectedValueLiteral);
});
it('should have the property longMarketValue (base name: "longMarketValue")', function() {
// TODO: update the code to test the property longMarketValue
expect(instance).to.have.property('longMarketValue');
// expect(instance.longMarketValue).to.be(expectedValueLiteral);
});
it('should have the property longOptionMarketValue (base name: "longOptionMarketValue")', function() {
// TODO: update the code to test the property longOptionMarketValue
expect(instance).to.have.property('longOptionMarketValue');
// expect(instance.longOptionMarketValue).to.be(expectedValueLiteral);
});
it('should have the property maintenanceCall (base name: "maintenanceCall")', function() {
// TODO: update the code to test the property maintenanceCall
expect(instance).to.have.property('maintenanceCall');
// expect(instance.maintenanceCall).to.be(expectedValueLiteral);
});
it('should have the property maintenanceRequirement (base name: "maintenanceRequirement")', function() {
// TODO: update the code to test the property maintenanceRequirement
expect(instance).to.have.property('maintenanceRequirement');
// expect(instance.maintenanceRequirement).to.be(expectedValueLiteral);
});
it('should have the property marginBalance (base name: "marginBalance")', function() {
// TODO: update the code to test the property marginBalance
expect(instance).to.have.property('marginBalance');
// expect(instance.marginBalance).to.be(expectedValueLiteral);
});
it('should have the property moneyMarketFund (base name: "moneyMarketFund")', function() {
// TODO: update the code to test the property moneyMarketFund
expect(instance).to.have.property('moneyMarketFund');
// expect(instance.moneyMarketFund).to.be(expectedValueLiteral);
});
it('should have the property mutualFundValue (base name: "mutualFundValue")', function() {
// TODO: update the code to test the property mutualFundValue
expect(instance).to.have.property('mutualFundValue');
// expect(instance.mutualFundValue).to.be(expectedValueLiteral);
});
it('should have the property optionBuyingPower (base name: "optionBuyingPower")', function() {
// TODO: update the code to test the property optionBuyingPower
expect(instance).to.have.property('optionBuyingPower');
// expect(instance.optionBuyingPower).to.be(expectedValueLiteral);
});
it('should have the property pendingDeposits (base name: "pendingDeposits")', function() {
// TODO: update the code to test the property pendingDeposits
expect(instance).to.have.property('pendingDeposits');
// expect(instance.pendingDeposits).to.be(expectedValueLiteral);
});
it('should have the property regTCall (base name: "regTCall")', function() {
// TODO: update the code to test the property regTCall
expect(instance).to.have.property('regTCall');
// expect(instance.regTCall).to.be(expectedValueLiteral);
});
it('should have the property savings (base name: "savings")', function() {
// TODO: update the code to test the property savings
expect(instance).to.have.property('savings');
// expect(instance.savings).to.be(expectedValueLiteral);
});
it('should have the property shortBalance (base name: "shortBalance")', function() {
// TODO: update the code to test the property shortBalance
expect(instance).to.have.property('shortBalance');
// expect(instance.shortBalance).to.be(expectedValueLiteral);
});
it('should have the property shortMarginValue (base name: "shortMarginValue")', function() {
// TODO: update the code to test the property shortMarginValue
expect(instance).to.have.property('shortMarginValue');
// expect(instance.shortMarginValue).to.be(expectedValueLiteral);
});
it('should have the property shortMarketValue (base name: "shortMarketValue")', function() {
// TODO: update the code to test the property shortMarketValue
expect(instance).to.have.property('shortMarketValue');
// expect(instance.shortMarketValue).to.be(expectedValueLiteral);
});
it('should have the property shortOptionMarketValue (base name: "shortOptionMarketValue")', function() {
// TODO: update the code to test the property shortOptionMarketValue
expect(instance).to.have.property('shortOptionMarketValue');
// expect(instance.shortOptionMarketValue).to.be(expectedValueLiteral);
});
it('should have the property sma (base name: "sma")', function() {
// TODO: update the code to test the property sma
expect(instance).to.have.property('sma');
// expect(instance.sma).to.be(expectedValueLiteral);
});
it('should have the property stockBuyingPower (base name: "stockBuyingPower")', function() {
// TODO: update the code to test the property stockBuyingPower
expect(instance).to.have.property('stockBuyingPower');
// expect(instance.stockBuyingPower).to.be(expectedValueLiteral);
});
});
});
}));