Git Product home page Git Product logo

cryptodata's Introduction

cryptodata google sheet plugin

what is it

a lighter and free alternative to the excellent CryptoFinance google sheet plugin to get all crypto data from the also excellent CoinPaprika API.

how does it work

it pulls all tickers data into a single sheet (to ensure a fair use of the API), then a CRYPTODATA("symbol"; "data") function allows you to pull specific data for ay coin.

how to install

  • open your favorite crypto spreadsheet, and create an empty sheet named data
  • go to the menu Tools > Script Editor
  • paste the content of the file cryptodata.gs into the editor, then save
  • go back to your spreadsheet, refresh the page
  • you should now have a menu item called CryptoData. Click on it, then click on Update
  • you can now use the plugin anywhere like this : =CRYPTODATA("ETH"; "btc_price")

โ— do not use the data sheet, it's used by the script, create a new one if you want to use the script data

how to use

get data for a specific coin :

=CRYPTODATA("ETH"; "btc_price") (you can discover the available data in the data sheet)

get historical data for a specific coin :

=CRYPTODATAHISTORY("<coin>"; "<date>"; "<type of data>"; "<quote>") with params being :

  • coin : a single coin ticket like "ETH" or "BTC" or "XMR"
  • date : something like "2018-02-20"
  • type of data : can be "price", "volume_24h" or "market_cap"
  • quote : optional, defaults to usd, but can be set to "usd" or "btc"
get global data :

=CRYPTODATAGLOBAL("bitcoin_dominance_percentage")

see all available properties here : https://api.coinpaprika.com/#tag/Global/paths/~1global/get

troubleshooting

-> You might need to change the ; in the formula by ,

update data

  • first, click on the menu item CryptoData, then click on Update (will refresh raw data)
  • to refresh your calls in other sheets, the best way i found is adding a dummy reference in the formula like this :

=CRYPTODATA("ETH", "btc_price", $A$1)

and updating the $A$1 cell with whatever data.

Another way to find data with better performance (but poor readability) :

=INDEX(data!$A$1:$ZZ; MATCH("ETH"; data!$C$1:$C; 0); MATCH("btc_price"; data!$A$1:$1; 0))

limitations

  • can give you data in USD/BTC/ETH (according to what CoinPaprika is providing)
  • won't give you any specific exchange data
  • should respect CoinPaprika API fair use since it pull all data in one API call (rate limit is 10 reqs/s), but since request come from google's servers, i can't guarantee the fair use
  • for now CoinPaprika's API is free, i can't guarantee it won't change
  • performances might not be great, but it does the job (remember, it's free)

improve it

  • i'm welcoming issues, forks and PR, feel free to do better than what i did and if you do, share it !

show some love

BTC : 389avCg3HYBBqnBX8S2PB2mvXPfGKx3cm4

LTC : LbaaxtsCeB9rt4EiXtFYwkZC9TnZtsvExt

cryptodata's People

Contributors

any1one avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.