Closed IvanIvanoff closed 1 year ago
get.py
query_constants.py
utils.py
get_many
timeseriesDataPerSlug
san.get_many
>>> import san >>> san.get_many("daily_active_addresses", slugs=['ethereum', 'bitcoin', 'uniswap'], from_date='2022-02-02', to_date='2022-02-05') datetime bitcoin ethereum uniswap 2022-02-02 00:00:00+00:00 970442.0 509158.0 759.0 2022-02-03 00:00:00+00:00 928382.0 486902.0 922.0 2022-02-04 00:00:00+00:00 883889.0 527781.0 936.0 2022-02-05 00:00:00+00:00 956375.0 596015.0 974.0
AsyncBatch
from san import AsyncBatch batch = AsyncBatch() batch.get( "daily_active_addresses", slug="santiment", from_date="2018-06-01", to_date="2018-06-05", interval="1d" ) batch.get_many( "daily_active_addresses", slugs=["bitcoin", "ethereum"], from_date="2018-06-01", to_date="2018-06-05", interval="1d" ) [daa, daa_many] = batch.execute(max_workers=10)
Changes
get.py
to separate filesquery_constants.py
andutils.py
get_many
method that uses thetimeseriesDataPerSlug
getMetric's field internally.Add
san.get_many
function:Add
get_many
method to theAsyncBatch
class: