Comparing version 0.3.3 to 0.4.0
import { CurrencyTickerInterval, ICurrenciesTickerOptions, IRawCurrencyTicker } from "./api/currencies_ticker"; | ||
import { ExchangeMarketTickerInterval, IExchangeMarketsTickerOptions, IRawExchangeMarketTicker } from "./api/exchange_markets_ticker"; | ||
import { ExchangeTickerInterval, IExchangesTickerOptions, IRawExchangeTicker } from "./api/exchanges_ticker"; | ||
import { IntervalEnum } from "./constants"; | ||
export { IRawCurrencyTicker, IRawExchangeTicker, CurrencyTickerInterval, ExchangeTickerInterval }; | ||
export { IRawCurrencyTicker, IRawExchangeTicker, IRawExchangeMarketTicker, CurrencyTickerInterval, ExchangeTickerInterval, ExchangeMarketTickerInterval }; | ||
export { IntervalEnum }; | ||
@@ -21,3 +22,4 @@ export interface INomics { | ||
exchangesTicker(options?: IExchangesTickerOptions): Promise<IRawExchangeTicker[]>; | ||
exchangeMarketsTicker(options?: IExchangeMarketsTickerOptions): Promise<IRawExchangeMarketTicker[]>; | ||
} | ||
export default Nomics; |
@@ -7,2 +7,3 @@ "use strict"; | ||
var currencies_ticker_1 = __importDefault(require("./api/currencies_ticker")); | ||
var exchange_markets_ticker_1 = __importDefault(require("./api/exchange_markets_ticker")); | ||
var exchanges_ticker_1 = __importDefault(require("./api/exchanges_ticker")); | ||
@@ -38,2 +39,5 @@ var constants_1 = require("./constants"); | ||
}; | ||
Nomics.prototype.exchangeMarketsTicker = function (options) { | ||
return exchange_markets_ticker_1.default(this.apiKey, options); | ||
}; | ||
Nomics.baseUrl = constants_1.API_BASE; | ||
@@ -40,0 +44,0 @@ return Nomics; |
{ | ||
"name": "nomics", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -6,2 +6,7 @@ import currenciesTicker, { | ||
} from "./api/currencies_ticker"; | ||
import exchangeMarketsTicker, { | ||
ExchangeMarketTickerInterval, | ||
IExchangeMarketsTickerOptions, | ||
IRawExchangeMarketTicker | ||
} from "./api/exchange_markets_ticker"; | ||
import exchangesTicker, { | ||
@@ -18,4 +23,6 @@ ExchangeTickerInterval, | ||
IRawExchangeTicker, | ||
IRawExchangeMarketTicker, | ||
CurrencyTickerInterval, | ||
ExchangeTickerInterval | ||
ExchangeTickerInterval, | ||
ExchangeMarketTickerInterval | ||
}; | ||
@@ -66,4 +73,8 @@ export { IntervalEnum }; | ||
} | ||
public exchangeMarketsTicker(options?: IExchangeMarketsTickerOptions) { | ||
return exchangeMarketsTicker(this.apiKey, options); | ||
} | ||
} | ||
export default Nomics; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49726
44
1025