Current Bitcoin price import from website
Unsolved
General and Desktop
-
Hi,
my question today is, how ich can import a value from a (API) website like this
https://www.bitstamp.net/api/v2/ticker/btceur/
i just need the value by "last".Thanks for help
-
or better from this API
https://blockchain.info/tobtc?currency=EUR&value=500
there is just one value and the value in the link i can change with a variable -
Hi @Shajko, you can use
QNetworkAccessManager::get()
to get data from a website (or any source that uses HTTP).@Shajko said in Current Bitcoin price import from website:
https://www.bitstamp.net/api/v2/ticker/btceur/
i just need the value by "last".That's a JSON object, so use
QJsonDocument
andQJsonObject
to extract the "last" value.Search the Qt documentation for details on how to use these classes and functions.