UNPKG

@broxus/js-core

Version:

MobX-based JavaScript Core library

19 lines (18 loc) 965 B
import { Endpoint } from '../core'; export var CurrenciesOrdering; (function (CurrenciesOrdering) { CurrenciesOrdering["TvlAscending"] = "tvlascending"; CurrenciesOrdering["TvlDescending"] = "tvldescending"; })(CurrenciesOrdering || (CurrenciesOrdering = {})); // eslint-disable-next-line export function useCurrenciesApi(baseUrl = 'https://api.flatqube.io/v1') { return { currencies: new Endpoint('currencies', baseUrl), currenciesUsdtPrices: new Endpoint('currencies_usdt_prices', baseUrl), currency: new Endpoint('currencies/:address([0][:][0-9a-f]{64})', baseUrl), currencyOhlcv: new Endpoint('currencies/ohlcv', baseUrl), currencyPrices: new Endpoint('currencies/:address([0][:][0-9a-f]{64})/prices', baseUrl), currencyTvl: new Endpoint('currencies/:address([0][:][0-9a-f]{64})/tvl', baseUrl), currencyVolume: new Endpoint('currencies/:address([0][:][0-9a-f]{64})/volume', baseUrl), }; }