https://github.com/aitjcize/crypto-quote-server
Provides Google Sheets with Crypto price and wallet balance
https://github.com/aitjcize/crypto-quote-server
blockchain crypto cryptocurrency ethereum polkadot terra-luna wallet
Last synced: 5 months ago
JSON representation
Provides Google Sheets with Crypto price and wallet balance
- Host: GitHub
- URL: https://github.com/aitjcize/crypto-quote-server
- Owner: aitjcize
- Created: 2022-01-07T08:42:36.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-19T08:58:59.000Z (almost 2 years ago)
- Last Synced: 2025-01-27T04:31:48.268Z (over 1 year ago)
- Topics: blockchain, crypto, cryptocurrency, ethereum, polkadot, terra-luna, wallet
- Language: Rust
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Google Sheets Crypto Server
===========================
Provides Google Sheets with Crypto price and wallet balance.
* Provides crypto price with data from Coingecko.
* Provides wallet balance query from various blockchains.
Usage
-----
Host the server somewhere (e.g. GCP, AWS).
Get Coin/Token Price:
```
=IMPORTXML("https://YOUR_SERVER_HOST/quote?ids=bitcion,ethereum,anchorust", "//Quotes/price/text()")
```
Get Wallet Balance:
```
=IMPORTXML("https://YOUR_SERVER_HOST/wallet_balance?chain_id=&address=", "//WalletBalance/text()")
```
Supported Chain ID:
* ethereum
* polygon
* avalanche
* bsc
* polkadot
* terra
Get Wallet ERC20 Token Balance:
```
=IMPORTXML("https://YOUR_SERVER_HOST/wallet_balance?chain_id=&token=&address=", "//WalletBalance/text()")
```
Additional Notes for Terra
--------------------------
To get terra native coin balance, set `token=COIN`, current `COIN` supports:
* LUNA
* UST
e.g.
```
=IMPORTXML("https://YOUR_SERVER_HOST/wallet_balance?chain_id=terra&token=LUNA&address=terra107q76k5uu3atgwz695vdcfee5qz9ukyz3jj0cs", "//WalletBalance/text()")
```