Post
Topic
Board Announcements (Altcoins)
Re: [ANN][VOT]: VoteCoin - a new era of anonymous crypto democracy
by
ianj
on 23/01/2018, 10:03:29 UTC
Hi

Before I end up re-inventing the wheel, does anyone know if there's already in existence anywhere that serves up the historic price of VoteCoin/BTC in JSON format - ideally 1 minute intervals maybe going back up to 24 hours?

ta

Iain

Actually, that was much easier than I expected - a few minor hiccups but this is now all working - the output is a fairly simple btc price and time for VOT...

[{"btc":"0.00000320","timestamp":"2018-01-22 21:09:46"},{"btc":"0.00000320","timestamp":"2018-01-22 21:10:17"}]

but the web host is having some issues with PHP so until that's fixed it's not going to be a stable thing


Why don't you pick up coinmarketcap  API and make a request with python?
https://coinmarketcap.com/api/


hmmm - I can't see how I would get historic data from that at the moment (and I doubt it would ever be at the 1 min resolution) - is it possible? Currently I'm using the tradesatosh api to get the current rates and simply save this to a mySQL db. This gives me the scope to setup the data in any format I want using a SQL query, so for example those candle chart things would have 30 min intervals with a time, high, low, open and close value in each row of the dataset

coinmarketcap - You can only scrape the rates historically on daily - they advertise an API SOON but nothing i know of right now