API for montly and weekly averages

4

Bitcoinwisdom shows in their charts lines for weekly and montly averages. Are these numbers somewhere available in an API? If so, one could setup an automated strategy for trading BTC based on this data.

Theo

Posted 2017-01-13T18:23:52.987

Reputation: 41

You can get the price data using the API of the exchange you want to trade at. You can then do any calculations based on that data and place orders.Tanmay 2018-01-19T17:23:08.070

Answers

1

I have not heard about an API that would return averages per se. But there are APIs that will provide you with a historical price data which you can use to calculate averages on your own.

One example would be CoinDesk, but I am pretty sure there are more. They have a JSON endpoint that will return closing prices for a given period (1 month by default). Examples:

Default (one months period): https://api.coindesk.com/v1/bpi/historical/close.json

Custom date range: https://api.coindesk.com/v1/bpi/historical/close.json?start=2018-01-01&end=2018-07-01

slashrsm

Posted 2017-01-13T18:23:52.987

Reputation: 11