UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

22 lines (17 loc) 569 B
## Get IPO details ```javascript let UpstoxClient = require('upstox-js-sdk'); let defaultClient = UpstoxClient.ApiClient.instance; var OAUTH2 = defaultClient.authentications['OAUTH2']; OAUTH2.accessToken = "{your_access_token}"; let apiInstance = new UpstoxClient.IPOApi(); // id is the IPO slug id returned in the listing response let id = "{ipo_slug_id}"; apiInstance.getIpoDetails(id, (error, data, response) => { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + JSON.stringify(data)); } }); ```