Skip to content

Instantly share code, notes, and snippets.

View Partysun's full-sized avatar
🏠
Working from home

Yura Partysun

🏠
Working from home
View GitHub Profile
curl https://repogen.simplylinux.ch/txt/xenial/gpg_c7e58df0da866b7f3ed1724fe8aa9f707d97bbaa.txt | sudo tee /etc/apt/gpg_keys.txt
@Partysun
Partysun / how-to-download-csv-data-from-sanbase.ipynb
Created November 2, 2020 13:57
How to download csv data from Sanbase.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Partysun
Partysun / san_multiple_assets_metrics.py
Created August 31, 2021 12:16
It's a sample which is demonstrating how to call many assets and many metrics in a single API call.
import san
from san.graphql import execute_gql
import pandas as pd
san.ApiConfig.api_key = "Your API key"
res = execute_gql("""{ prices: getMetric(metric: "price_usd") {
timeseriesDataPerSlug(
from: "utc_now-1d"
to:"utc_now"