Thanks for any suggestions!
Google Sheets has one - and it's incredibly easier than Excel and faster than writing JSON code.
It's the Google Cryptofinance add on.
It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
Option Explicit
Public JSON As Object
Private ie As Object
Sub test()
Call initJson
Dim jsObj As Object
Dim jsArray As Object
Dim x As Long, y As Long
Dim htm As Object
Set htm = CreateObject("htmlFile")
With CreateObject("msxml2.xmlhttp")
.Open "GET", "https://www.bitstamp.net/api/ticker/", False
.send
htm.body.innerhtml = .responsetext
End With
Set jsObj = JSON.Parse(htm.body.innerhtml)
Cells(1, 2) = jsObj.getItem("high")
Cells(2, 2) = jsObj.getItem("last")
Cells(3, 2) = jsObj.getItem("timestamp")
End Sub
Public Sub initJson()
Dim html As String
html = ""
Set ie = CreateObject("InternetExplorer.Application")
With ie
.navigate "about:blank"
Do While .Busy: DoEvents: Loop
Do While .readyState <> 4: DoEvents: Loop
.Visible = False
.document.Write html
.document.Close
End With
' This is the body element, we call it JSON:)
Set JSON = ie.document.getElementById("JSONElem")
End Sub
Public Function closeJSON()
ie.Quit
End Function
Option Explicit
Public JSON As Object
Private ie As Object
Sub test()
Call initJson
Dim jsObj As Object
Dim jsArray As Object
Dim x As Long, y As Long
Dim htm As Object
Set htm = CreateObject("htmlFile")
With CreateObject("msxml2.xmlhttp")
.Open "GET", "https://www.bitstamp.net/api/ticker/", False
.send
htm.body.innerhtml = .responsetext
End With
Set jsObj = JSON.Parse(htm.body.innerhtml)
Cells(1, 2) = jsObj.getItem("high")
Cells(2, 2) = jsObj.getItem("last")
Cells(3, 2) = jsObj.getItem("timestamp")
End Sub
Public Sub initJson()
Dim html As String
html = ""
Set ie = CreateObject("InternetExplorer.Application")
With ie
.navigate "about:blank"
Do While .Busy: DoEvents: Loop
Do While .readyState <> 4: DoEvents: Loop
.Visible = False
.document.Write html
.document.Close
End With
' This is the body element, we call it JSON:)
Set JSON = ie.document.getElementById("JSONElem")
End Sub
Public Function closeJSON()
ie.Quit
End Function