What is the best way to plot the price AND volume of Bitcoin (or any other currency) in USD for the past week/month/year? Is it a good idea to use CurrencyConvert? Or should I download the data from somewhere else? If so, is there a source that you recommend that updates the prices at least a few times a day?

  • 1
    $\begingroup$ Have you checked out this reference from the Wolfram site: Historical Currency Conversion $\endgroup$
    – kickert
    Jul 24 '18 at 0:20
  • 1
    $\begingroup$ As per the third question: bitcoincharts.com/charts $\endgroup$
    – corey979
    Jul 24 '18 at 0:21
  • $\begingroup$ Thank you kickert and @corey979, I have concluded that for financial analysis bitcoincharts.com and data.bitcoinity.org are the way to go and using the WolframAlpha computable data is very helpful for a quick price analysis. Very helpful. Thank you both. $\endgroup$
    – Miladiouss
    Jul 24 '18 at 1:49
  • $\begingroup$ Did any of the answers satisfied your need? If you have your own, can you share it? There are things to do after your question is answered. While it's a good idea to wait some time as better approaches may come later improving over previous replies and experienced users may point alternatives, caveats or limitations, one weeks is enough wait. Participation is essential for the site, please do your part. $\endgroup$
    – rhermans
    Jul 31 '18 at 20:17
  • $\begingroup$ Sure @rhermans. I used the two comments to answer my own question. But I wasn't able to accept my own answer immediately. Thanks for reminding me. $\endgroup$
    – Miladiouss
    Jul 31 '18 at 23:04

Using WolframAlpha

AS @kickert has mentioned in the comments, one can download the data from WolframAlpha:

endDate = Now;
startDate = DatePlus[endDate, -7];

endDateString = 
  DateString[endDate, {"MonthName", " ", "Day", ", ", "Year"}];
startDateString = 
  DateString[startDate, {"MonthName", " ", "Day", ", ", "Year"}];

rates = TimeSeries[
     "exchange rate of bitcoin to dollar from" <> startDateString <> 
      " to " <> endDateString, {{"Result", 1}, "ComputableData"}]]];

DateListPlot[{rates}, FrameLabel -> Automatic, 
 PlotTheme -> "Detailed", TargetUnits -> "$"]

Using External APIs

However, this method doesn't give the user a lot of freedom over the granularity and doesn't provide other financial markers such as volume. To overcome this, (as mentioned by @corey979 go to:


and adjust the plots as you desire, then download the corresponding data for that plot as a CSV. For instance, The bitcoin price for the past 7 days can be downloaded as such:

Import @ "https://data.bitcoinity.org/export_data.csv?c=e&currency=USD&data_type=price&t=l&timespan=7d"
== BitCoin

will plot the price, so long as you have web access.

  • $\begingroup$ Thank you David, I was trying to create a pretty bitcoin price plot and needed the data and I was wondering what was the easiest way to get it. As discussed in the comments above, I was able to find my answer. $\endgroup$
    – Miladiouss
    Jul 24 '18 at 1:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.