@mistswapdex/mist-data
v0.0.1mist-data
This is a collection of utilities to query MistSwap data from smartBCH. This data has been indexed by the Graph via the subgraph the MistSwap team maintains.
Supported Queries
The below all return a Promise that resolves with the requested results.
sushi.priceUSD({¹})
Gets USD price of Mist.sushi.priceETH({¹})
Gets ETH price of Mist.blocks.latestBlock()
Gets the latest block.blocks.getBlock({¹})
Gets data for the specified block.charts.factory()
Gets data for the MistSwap factory broken down daily + weekly.charts.tokenHourly({token_address, startTime?})
Gets data for specified token broken down hourly.charts.tokenDaily({token_address})
Gets data for specified token broken down daily.charts.pairHourly({pair_address, startTime?})
Gets data for specified pair broken down hourly.charts.pairDaily({pair_address})
Gets data for specified pair broken down daily.exchange.token({¹, token_address})
Gets data for specified token.exchange.token24h({¹, token_address})
Gets 24h data for specified token.exchange.tokenHourData({², token_address})
Gets hourly data for specified token.exchange.tokenDayData({², token_address})
Gets daily data for specified token.exchange.tokens({¹})
Gets data for all tokens.exchange.tokens24h({¹})
Gets 24h data for all tokens.exchange.pair({¹, pair_address})
Gets data for specified pair.exchange.pair24h({¹, pair_address})
Gets 24h data for specified pair.exchange.pairHourData({², pair_address})
Gets hourly data for specified pair.exchange.pairDayData({{², pair_address})
Gets daily data for specified pair.exchange.pairs({¹, [pair_addresses]?})
Gets data for all / specified pairs.exchange.pairs24h({¹})
Gets 24h data for all pairs.exchange.ethPrice({¹})
Gets USD price of ETH.exchange.ethPriceHourly({²})
Gets USD price of ETH broken down hourly.exchange.factory({¹})
Gets all data for the MistSwap factory.exchange.dayData({²})
Gets data for the MistSwap factory broken down by day.exchange.twentyFourHourData({¹})
Gets 24h data for the MistSwap factory.