Uses Flipside ShroomDK to create a Query Token to access Flipside Crypto
data. The query token is kept `ttl` hours and available for no-additional cost reads up to `mam` minutes (i.e., cached to the same exact result).
allowing for pagination and multiple requests before expending more daily request uses.
list of `token` and `cached` use `token` in `get_query_from_token()`
Arguments
query
Flipside Crypto Snowflake SQL compatible query as a string.
api_key
Flipside Crypto ShroomDK API Key
ttl
time-to-live (in hours) to keep query results available. Default 1 hour.
mam
max-age-minutes, lifespan of cache. set to 0 to always re-execute. Default 10 minutes.
data_source
Where data is sourced, including specific computation warehouse. Default "snowflake-default". Non default data sources may require registration of api_key to allowlist.
data_provider
Who provides data, Default "flipside". Non default data providers may require registration of api_key to allowlist.
api_url
default to https://api-v2.flipsidecrypto.xyz/json-rpc but upgradeable for user.