An open API service indexing awesome lists of open source software.

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

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()")
```