UNPKG

degiro-api

Version:

Unofficial DeGiro API for Javascript. Buy and sell in the stock market. See your portfolio and much more

14 lines 703 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.generateReportURIFromID = void 0; // Importamos enumerados de URLs var enums_1 = require("../enums"); var BASE_REPORT_DOWNLOAD_URI = enums_1.DEGIRO_API_PATHS.BASE_REPORT_DOWNLOAD_URI; /** * Generate a download URL to the report with the `id` identifier * @param id Report id to generate download URL */ exports.generateReportURIFromID = function (reportId, accountData, accountConfig) { return "" + accountConfig.data.paUrl + BASE_REPORT_DOWNLOAD_URI + reportId + "?sessionId=" + accountConfig.data.sessionId + "&intAccount=" + accountData.data.intAccount; }; //# sourceMappingURL=generateReportURIFromID.js.map