santiment / sanpy

Santiment API Python Client
MIT License
94 stars 29 forks source link

Add ohlcv query #24

Closed tspenov closed 6 years ago

tspenov commented 6 years ago
ohlcv = san.get(
    "ohlcv/santiment",
    from_date="2018-06-01",
    to_date="2018-06-05",
    interval="1d"
)

Example result:

                           openPriceUsd  closePriceUsd   volume     marketcap
datetime
2018-06-01 00:00:00+00:00       1.24380        1.27668   852857  7.736268e+07
2018-06-02 00:00:00+00:00       1.26136        1.30779  1242520  7.864724e+07
2018-06-03 00:00:00+00:00       1.28270        1.28357  1032910  7.844339e+07
2018-06-04 00:00:00+00:00       1.23276        1.24910   617451  7.604326e+07