Skip to content

Commit

Permalink
Add coingecko fallback to getTokenFiatPrice (#1587)
Browse files Browse the repository at this point in the history
* Add coingecko generation script

* Add coingecko fallback to getTokenFiatPrice
  • Loading branch information
DannyDelott authored Oct 18, 2024
1 parent 31dbce8 commit eb25e3c
Show file tree
Hide file tree
Showing 5 changed files with 22,123 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/hyperdrive-trading/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"serve": "vite preview",
"test": "vitest run",
"test:watch": "vitest --reporter=verbose",
"gen:coingecko": "bash ./scripts/generate-coingecko.sh",
"typecheck": "tsc --project tsconfig.json --noEmit",
"gen:version": "bash ./scripts/generate-version.sh",
"gen:walletconnect": "bash ./scripts/generate-walletconnect.sh"
Expand Down
3 changes: 3 additions & 0 deletions apps/hyperdrive-trading/scripts/generate-coingecko.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

curl -X GET "https://api.coingecko.com/api/v3/coins/list" -H "accept: application/json" > src/token/coin-gecko.json
Loading

0 comments on commit eb25e3c

Please sign in to comment.