UNPKG

stocksim

Version:

a simple stock market simulator

18 lines 578 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Crypto = void 0; const BaseService_1 = require("./BaseService"); class Crypto extends BaseService_1.BaseService { constructor(symbol) { super(); this._symbol = symbol.toUpperCase(); } async CurrentPrice() { return Number((await this.iex.crypto(this._symbol + "usd").quote()).latestPrice); } async FullQuote() { return this.iex.crypto(this._symbol).quote(); } } exports.Crypto = Crypto; //# sourceMappingURL=Crypto.js.map