Core Functions

Get started with Cryptosheets core custom functions to pull dynamic, customized data into your worksheet with highly flexible formulas.

Example 1

  1. Browse through the functions below
  2. Start with our custom functions templates by clicking the templates button in the ribbon

img

  1. Learn how to use our quick start auto templates in the help center

Unified Functions


The parameters and query functions allow users universal access to all data providers available in Cryptosheets

QUERY =CS.QUERY()

Query function to pull any endpoint from any available provider

Parameters

  • provider [string] Data provider, ex. Cryptunit.
  • endpoint [string] Data endpoint of provider, ex. 'earnings-auto'.
  • parameters
  • args

PARAMETERS =CS.PARAMETERS()

Function to pull all possible parameters by provider and endpoint

Parameters

  • provider [string] Data provider, ex. Cryptunit.
  • endpoint [string] Data endpoint of provider, ex. 'earnings-auto'.
  • args

Core Functions


The core functions are designed to pull in specific, large data sets including market and on chain data

EXRATE =CS.EXRATE()

Get (streaming) exchange rate between pair of requested assets at specific or current time.

Parameters

  • base [string] Requested exchange rate base asset identifier. Ex. "BTC"
  • quote [string] Requested exchange rate quote asset identifier. Ex. "USD"
  • refresh [number] Update frequency in seconds. Ex. 5 = 5 seconds. Default refresh rate is 15 minutes.

PRICE =CS.PRICE()

Get the current price of any cryptocurrency in any other currency that you need.

Parameters

  • base [string] The cryptocurrency symbol of interest.
  • quote [string] Cryptocurrency symbol to convert into

ORDERBOOKS =CS.ORDERBOOKS()

Get two sided bid and ask order book data, also known as books or passive level 2 data.

Parameters

  • base [string][41] The cryptocurrency symbol of interest
  • quote [string][41] Symbol of asset or currency to convert into
  • exchange [string][41] Name of exchange
  • type [string][41] Type of price ie spot or futures
  • timeStart [string][41]? Timeseries starting time in ISO 8601
  • timeEnd [string][41]? Timeseries ending time in ISO 8601
  • limitLevels [string][41]? Maximum amount of levels from each side of the book to include in response (optional)
  • args

OHLCV =CS.OHLCV()

Get the historical open, high, low, close and volume of any cryptocurrency in any other currency that you need over a wide range of resolutions (intervals).

Parameters

  • base [string] The cryptocurrency symbol of interest
  • quote [string] Symbol of asset or currency to convert into
  • exchange [string] Name of exchange
  • type [string] Type of price ie spot or futures
  • period [string] The time period for each candle aka the resolution
  • timeStart [string] Timeseries starting time in ISO 8601
  • timeEnd [string] Timeseries ending time in ISO 8601
  • args

TRADES =CS.TRADES()

Get historical transactions from specific symbol, returned in time ascending order.

Parameters

  • base [string] The cryptocurrency symbol of interest
  • quote [string] Symbol of asset or currency to convert into
  • exchange [string] Name of exchange
  • type [string] Type of price ie spot or futures
  • timeStart [string] Timeseries starting time in ISO 8601
  • timeEnd [string] Timeseries ending time in ISO 8601
  • args

TA =CS.TA()

Calculating ROI using CS.TA

You can easily calculate multi period returns for any supported pair and exchange by using the =CS.TA function

Examples:

Return over Specific Period Available periods are: 1, 5, 7, 10, 30, 50, 100, 180, 200, 365

=CS.TA("BTC","USD",,{"Fields","change1,change10,change30,change180"})

Multi-Period Returns

=CS.TA("BTC","USD")

[kraken](https://res.cloudinary.com/cryptosheets/image/upload/cryptosheets-docs/excel/functions/csta-btc-usd.png)

Exchange Specific Multi-Period Returns

=CS.TA("BTC","USD","Kraken")

[kraken](https://res.cloudinary.com/cryptosheets/image/upload/cryptosheets-docs/excel/functions/csta.png)

Exchange Comparison Multi-Period Returns You can specify multiple exchanges as comma seperated names to return a comparison table.

TIP: use =CS.QUERY("Cryptosheets","Exchanges") to quickly retrieve a list of over 280+ supported exchanges as of February 2020)

=CS.TA("BTC","USD","Kraken,Bittrex,Gemini,Coinbase")

[multi-exchange](https://res.cloudinary.com/cryptosheets/image/upload/cryptosheets-docs/excel/functions/csta-multi-exchange.png) This example uses TRANSPOSE() to wrap the Cryptosheets function and return a pivoted version of the dataset for display purposes only, the CS.TA function along with any other functions can be used with or without TRANSPOSE

ATH =CS.ATH()

Supported Exchanges

  • Use =CS.QUERY("Cryptosheets","Exchanges") to quickly retrieve a list of over 280+ supported exchanges as of February 2020

Click on each custom function above to visit its dedicated support and resources page.

  • The goal is to keep our custom functions as easy and natural for users to remember and use. That means they are designed to be broadly useable with hundreds of different provider/endpoint combinations.
  • Future releases will include additional custom functions for more advanced use cases as well as additional tools and universal parameters. Stay up to date with our latest by visiting our roadmap and joining our mailing list.

Troubleshooting


  1. Check your syntax for =CS.PARAMETERS() carefully, different functions for the same data may have slightly different required syntax
  2. Check the required arguments for =CS.PARAMETERS() vs the optional arguments
  3. Check your data & API quotas and limits
  4. Check your formulas carefully
  5. Check your relative references (=CS.PARAMETERS("CryptUnit", "earnings-auto") vs. =CS.PARAMETERS("A1", "B1"))
  6. Use Excel's error checking tools
  7. Check Excel's help sections: https://support.office.com/en-us/article/function-arguments-65b29fb5-ec7b-4c0b-a54b-a67923571519
  8. Find additional troubleshooting resources and tips here
  9. Error Response Codes Reference

See more troubleshooting tips & tricks here

Formula Syntax Error:

Example Error

Login error:

Example Error

Tips & Tricks

Pull up the full Excel function argument dialog box

  • Begin typing the function into any cell (for example =CS.QUERY) then press cntrl + A and it will open the popup dialog window
  • Use the formatDates argument in custom functions to save significant time and effort reformatting and converting datetime data and columns read the article here

Additional Resources

For Microsoft Excel

For Googlesheets


Find Fields

(Coming soon, please check back)