@gviper/alphavantage-api
Version:
TypeScript SDK for Alpha Vantage API with comprehensive type safety and all endpoint support
59 lines • 2.88 kB
JavaScript
;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AlphaVantage = void 0;
__exportStar(require("./client"), exports);
__exportStar(require("./errors"), exports);
__exportStar(require("./endpoints/stocks"), exports);
__exportStar(require("./endpoints/forex"), exports);
__exportStar(require("./endpoints/crypto"), exports);
__exportStar(require("./endpoints/technicals"), exports);
__exportStar(require("./endpoints/fundamental"), exports);
__exportStar(require("./endpoints/economic"), exports);
__exportStar(require("./endpoints/util"), exports);
__exportStar(require("./endpoints/options"), exports);
__exportStar(require("./endpoints/commodities"), exports);
__exportStar(require("./endpoints/intelligence"), exports);
__exportStar(require("./types"), exports);
// Convenience factory function
const client_1 = require("./client");
const stocks_1 = require("./endpoints/stocks");
const forex_1 = require("./endpoints/forex");
const crypto_1 = require("./endpoints/crypto");
const technicals_1 = require("./endpoints/technicals");
const fundamental_1 = require("./endpoints/fundamental");
const economic_1 = require("./endpoints/economic");
const util_1 = require("./endpoints/util");
const options_1 = require("./endpoints/options");
const commodities_1 = require("./endpoints/commodities");
const intelligence_1 = require("./endpoints/intelligence");
class AlphaVantage {
constructor(options) {
this.client = new client_1.AlphaVantageClient(options);
this.stocks = new stocks_1.Stocks(this.client);
this.forex = new forex_1.Forex(this.client);
this.crypto = new crypto_1.Crypto(this.client);
this.technicals = new technicals_1.Technicals(this.client);
this.fundamental = new fundamental_1.Fundamental(this.client);
this.economic = new economic_1.Economic(this.client);
this.util = new util_1.Util(this.client);
this.options = new options_1.Options(this.client);
this.commodities = new commodities_1.Commodities(this.client);
this.intelligence = new intelligence_1.Intelligence(this.client);
}
}
exports.AlphaVantage = AlphaVantage;
//# sourceMappingURL=index.js.map