upstox-js-sdk
Version:
The official Node Js client for communicating with the Upstox API
94 lines (80 loc) • 5.11 kB
JavaScript
/*
* Upstox Developer API
* Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to <a href=\"http://account.upstox.com/developer/apps\" target=\"_blank\">account.upstox.com/developer/apps</a>.</br> If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues.
*
* OpenAPI spec version: v2
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 3.0.46
*
* 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.UpstoxClient);
}
}(this, function(expect, UpstoxClient) {
'use strict';
var instance;
describe('(package)', function() {
describe('OAuthClientExceptionCauseStackTrace', function() {
beforeEach(function() {
instance = new UpstoxClient.OAuthClientExceptionCauseStackTrace();
});
it('should create an instance of OAuthClientExceptionCauseStackTrace', function() {
// TODO: update the code to test OAuthClientExceptionCauseStackTrace
expect(instance).to.be.a(UpstoxClient.OAuthClientExceptionCauseStackTrace);
});
it('should have the property classLoaderName (base name: "classLoaderName")', function() {
// TODO: update the code to test the property classLoaderName
expect(instance).to.have.property('classLoaderName');
// expect(instance.classLoaderName).to.be(expectedValueLiteral);
});
it('should have the property moduleName (base name: "moduleName")', function() {
// TODO: update the code to test the property moduleName
expect(instance).to.have.property('moduleName');
// expect(instance.moduleName).to.be(expectedValueLiteral);
});
it('should have the property moduleVersion (base name: "moduleVersion")', function() {
// TODO: update the code to test the property moduleVersion
expect(instance).to.have.property('moduleVersion');
// expect(instance.moduleVersion).to.be(expectedValueLiteral);
});
it('should have the property methodName (base name: "methodName")', function() {
// TODO: update the code to test the property methodName
expect(instance).to.have.property('methodName');
// expect(instance.methodName).to.be(expectedValueLiteral);
});
it('should have the property fileName (base name: "fileName")', function() {
// TODO: update the code to test the property fileName
expect(instance).to.have.property('fileName');
// expect(instance.fileName).to.be(expectedValueLiteral);
});
it('should have the property lineNumber (base name: "lineNumber")', function() {
// TODO: update the code to test the property lineNumber
expect(instance).to.have.property('lineNumber');
// expect(instance.lineNumber).to.be(expectedValueLiteral);
});
it('should have the property className (base name: "className")', function() {
// TODO: update the code to test the property className
expect(instance).to.have.property('className');
// expect(instance.className).to.be(expectedValueLiteral);
});
it('should have the property nativeMethod (base name: "nativeMethod")', function() {
// TODO: update the code to test the property nativeMethod
expect(instance).to.have.property('nativeMethod');
// expect(instance.nativeMethod).to.be(expectedValueLiteral);
});
});
});
}));