UNPKG

@gviper/alphavantage-api

Version:

TypeScript SDK for Alpha Vantage API with comprehensive type safety and all endpoint support

36 lines 1.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Util = void 0; class Util { constructor(client) { this.client = client; } /** * Returns the best-matching symbols and market information based on keywords of your choice. * * @param params - Parameters including search keywords * @returns Promise resolving to symbol search results * @example https://www.alphavantage.co/query?function=SYMBOL_SEARCH&keywords=tesco&apikey=demo */ async symbolSearch(params) { return this.client.request({ function: 'SYMBOL_SEARCH', ...params, }); } /** * Returns the current market status (open vs. closed) of major trading venues for equities, forex, and cryptocurrencies around the world. * * @param params - Optional parameters for market status * @returns Promise resolving to market status data * @example https://www.alphavantage.co/query?function=MARKET_STATUS&apikey=demo */ async marketStatus(params = {}) { return this.client.request({ function: 'MARKET_STATUS', ...params, }); } } exports.Util = Util; //# sourceMappingURL=util.js.map