Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: add Vercel KV cache for storing market data #1654

Merged
merged 8 commits into from
Mar 11, 2024
Merged

api: add Vercel KV cache for storing market data #1654

merged 8 commits into from
Mar 11, 2024

Conversation

ns212
Copy link
Contributor

@ns212 ns212 commented Mar 6, 2024

Interbtc UI Pull Request Template

Description

Use Vercel KV to cache globally the price data we retrieve from Diadata/Coingecko. This will resolve the API request limit issue we hit every so often.

Current behaviour (updates)

Please describe the current behaviour that you are modifying

New behaviour

Please describe the behaviour or changes this PR adds

Reproducible testing steps:

curl -i "https://interbtc-ui-interlay-git-api-kv-cache-interlay.vercel.app/marketdata/price?vs_currencies=usd&ids=bitcoin,polkadot,bitcoin,interlay,binancecoin,tbtc,usd-coin,liquid-staking-dot,wrapped-bitcoin,tether,moonbeam,ethereum,dai"

Copy link

vercel bot commented Mar 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
interbtc-ui-interlay ✅ Ready (Inspect) Visit Preview Mar 6, 2024 0:48am
interbtc-ui-interlay-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 6, 2024 0:48am
interbtc-ui-kintsugi ✅ Ready (Inspect) Visit Preview Mar 6, 2024 0:48am
interbtc-ui-kintsugi-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 6, 2024 0:48am

Copy link

github-actions bot commented Mar 6, 2024

Running Lighthouse audit...

@ns212 ns212 merged commit dd617e5 into master Mar 11, 2024
9 of 10 checks passed
@ns212 ns212 deleted the api-kv-cache branch March 11, 2024 09:32
tomjeatt added a commit that referenced this pull request Mar 19, 2024
* master:
  chore: release v2.41.10
  HDX and BNC icons (#1655)
  api: add Vercel KV cache for storing market data (#1654)
tomjeatt added a commit that referenced this pull request Mar 19, 2024
* master:
  chore: release v2.41.10
  HDX and BNC icons (#1655)
  api: add Vercel KV cache for storing market data (#1654)
tomjeatt added a commit that referenced this pull request Apr 5, 2024
* master: (238 commits)
  chore: release v2.41.12
  api: improve cache-control headers (#1659)
  chore: release v2.41.11
  chore: release v2.41.10
  HDX and BNC icons (#1655)
  api: add Vercel KV cache for storing market data (#1654)
  Tom/bridge 0.5.1 (#1651)
  chore: release v2.41.9
  chore: bump bridge (#1648)
  chore: release v2.41.8
  hotfix: XCM polkadot/kintsugi max transferable balance (#1645)
  Revert "[release] Interlay 2.41.7 (#1639)" (#1641)
  [release] Interlay 2.41.7 (#1639)
  chore: release v2.41.7
  fix: chart counter enum and lower value for collateral (#1638)
  chore: release v2.41.6
  refactor: line chart config (#1635)
  chore: release v2.41.5
  chore: bump bridge (#1631)
  chore: release v2.41.4
  ...

# Conflicts:
#	package.json
tomjeatt added a commit that referenced this pull request Apr 5, 2024
* master: (238 commits)
  chore: release v2.41.12
  api: improve cache-control headers (#1659)
  chore: release v2.41.11
  chore: release v2.41.10
  HDX and BNC icons (#1655)
  api: add Vercel KV cache for storing market data (#1654)
  Tom/bridge 0.5.1 (#1651)
  chore: release v2.41.9
  chore: bump bridge (#1648)
  chore: release v2.41.8
  hotfix: XCM polkadot/kintsugi max transferable balance (#1645)
  Revert "[release] Interlay 2.41.7 (#1639)" (#1641)
  [release] Interlay 2.41.7 (#1639)
  chore: release v2.41.7
  fix: chart counter enum and lower value for collateral (#1638)
  chore: release v2.41.6
  refactor: line chart config (#1635)
  chore: release v2.41.5
  chore: bump bridge (#1631)
  chore: release v2.41.4
  ...

# Conflicts:
#	package.json
tomjeatt added a commit that referenced this pull request Jul 9, 2024
* master: (241 commits)
  chore: release v2.41.13
  chore: bump bridge and add new dependency (#1664)
  Fixed a small dashboard display issue (#1658)
  chore: release v2.41.12
  api: improve cache-control headers (#1659)
  chore: release v2.41.11
  chore: release v2.41.10
  HDX and BNC icons (#1655)
  api: add Vercel KV cache for storing market data (#1654)
  Tom/bridge 0.5.1 (#1651)
  chore: release v2.41.9
  chore: bump bridge (#1648)
  chore: release v2.41.8
  hotfix: XCM polkadot/kintsugi max transferable balance (#1645)
  Revert "[release] Interlay 2.41.7 (#1639)" (#1641)
  [release] Interlay 2.41.7 (#1639)
  chore: release v2.41.7
  fix: chart counter enum and lower value for collateral (#1638)
  chore: release v2.41.6
  refactor: line chart config (#1635)
  ...

# Conflicts:
#	package.json
#	src/services/fetchers/cumulative-vault-collateral-volumes-fetcher.ts
#	yarn.lock
tomjeatt added a commit that referenced this pull request Jul 9, 2024
* master: (241 commits)
  chore: release v2.41.13
  chore: bump bridge and add new dependency (#1664)
  Fixed a small dashboard display issue (#1658)
  chore: release v2.41.12
  api: improve cache-control headers (#1659)
  chore: release v2.41.11
  chore: release v2.41.10
  HDX and BNC icons (#1655)
  api: add Vercel KV cache for storing market data (#1654)
  Tom/bridge 0.5.1 (#1651)
  chore: release v2.41.9
  chore: bump bridge (#1648)
  chore: release v2.41.8
  hotfix: XCM polkadot/kintsugi max transferable balance (#1645)
  Revert "[release] Interlay 2.41.7 (#1639)" (#1641)
  [release] Interlay 2.41.7 (#1639)
  chore: release v2.41.7
  fix: chart counter enum and lower value for collateral (#1638)
  chore: release v2.41.6
  refactor: line chart config (#1635)
  ...

# Conflicts:
#	package.json
#	src/services/fetchers/cumulative-vault-collateral-volumes-fetcher.ts
#	yarn.lock
tomjeatt added a commit that referenced this pull request Oct 9, 2024
* master: (246 commits)
  chore: release v2.41.14
  chore: update XCM nodes (#1672)
  Cherry pick: api: add phala-network to the pricefeed (#1668) (#1670)
  chore: Update xcm-endpoints.ts (#1669)
  exclude USDC.wh from foreign assets (#1643)
  chore: release v2.41.13
  chore: bump bridge and add new dependency (#1664)
  Fixed a small dashboard display issue (#1658)
  chore: release v2.41.12
  api: improve cache-control headers (#1659)
  chore: release v2.41.11
  chore: release v2.41.10
  HDX and BNC icons (#1655)
  api: add Vercel KV cache for storing market data (#1654)
  Tom/bridge 0.5.1 (#1651)
  chore: release v2.41.9
  chore: bump bridge (#1648)
  chore: release v2.41.8
  hotfix: XCM polkadot/kintsugi max transferable balance (#1645)
  Revert "[release] Interlay 2.41.7 (#1639)" (#1641)
  ...

# Conflicts:
#	api/market_data.js
#	package.json
#	src/hooks/api/use-get-currencies.tsx
#	src/hooks/api/xcm/xcm-endpoints.ts
#	yarn.lock
tomjeatt added a commit that referenced this pull request Oct 9, 2024
* master: (246 commits)
  chore: release v2.41.14
  chore: update XCM nodes (#1672)
  Cherry pick: api: add phala-network to the pricefeed (#1668) (#1670)
  chore: Update xcm-endpoints.ts (#1669)
  exclude USDC.wh from foreign assets (#1643)
  chore: release v2.41.13
  chore: bump bridge and add new dependency (#1664)
  Fixed a small dashboard display issue (#1658)
  chore: release v2.41.12
  api: improve cache-control headers (#1659)
  chore: release v2.41.11
  chore: release v2.41.10
  HDX and BNC icons (#1655)
  api: add Vercel KV cache for storing market data (#1654)
  Tom/bridge 0.5.1 (#1651)
  chore: release v2.41.9
  chore: bump bridge (#1648)
  chore: release v2.41.8
  hotfix: XCM polkadot/kintsugi max transferable balance (#1645)
  Revert "[release] Interlay 2.41.7 (#1639)" (#1641)
  ...

# Conflicts:
#	package.json
#	src/hooks/api/use-get-currencies.tsx
#	src/hooks/api/xcm/xcm-endpoints.ts
#	yarn.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants