Search code examples
coinbase-api

Coinbase Historic Spot Price at Date-Time


The coinbase API allows you to specify a date when making a request to https://api.coinbase.com/v2/prices/BTC-USD/spot. The API states the date should be formatted as YYYY-MM-DD. Is it possible to receive the historic price up to a specific hour (Ex: price from 1 hour ago)? I see this done on their ios app but it appears they may not be providing this data via the API.

Thanks for all the help!


Solution

  • Doubtful, Spot price normally means the price "right now". It does say you can use YYYY-MM-DD (UTC), but doesn't specify a time.

    Check out this similar thread: Get bitcoin historical data