Hu-Fi / Mr.Market

Mr. Market is the exchange oracle of HuFi, and a CeFi crypto bot on Mixin Messenger
https://mr-market-one.vercel.app
GNU Affero General Public License v3.0
1 stars 6 forks source link

Add fetching periodically for market page and home page #74

Closed zed-wong closed 3 months ago

zed-wong commented 3 months ago

We need to fetch the market data from our api periodically to keep them up to date. The interval could be 5 or 10 seconds.

We loaded market data in interface/src/routes/+layout.ts initially, and show them in home page and market page.

Related file: interface/src/lib/components/home/markets/coins.svelte interface/src/routes/(bottomNav)/(market)/market/token/+page.svelte

piotrswierzy commented 3 months ago

Done. Time spent: 3 hours Merged PR: https://github.com/Hu-Fi/Mr.Market/pull/119