How to get the volume of Bitcoin in python API?

How to get the volume of Bitcoin in python API?

Best Answer

  • Alex Putkov.1
    Alex Putkov.1 ✭✭✭✭✭
    Answer ✓

    @thomas.kwong

    RIC BTC= represents composite quote for Bitcoin. In other words it's a quote aggregated from multiple contributors and trading venues. While a composite quote provides the best representation of asset's price, it cannot provide meaningful representation of trading volume. The only way to get a meaningful representation of trading volume is to take the RIC that represents a quote from a specific trading value, e.g. BTC=BTSP for Bitcoin traded on Bitstamp crypto exchange. Try

    ek.get_timeseries('BTC=BTSP')

    or

    rdp.get_historical_price_summaries('BTC=BTSP',
    fields=['TRDPRC_1','ACVOL_UNS'])

Answers