Closed zed-wong closed 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.
interface/src/routes/+layout.ts
Related file: interface/src/lib/components/home/markets/coins.svelte interface/src/routes/(bottomNav)/(market)/market/token/+page.svelte
Done. Time spent: 3 hours Merged PR: https://github.com/Hu-Fi/Mr.Market/pull/119
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