Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Current Bitcoin price import from website
Forum Updated to NodeBB v4.3 + New Features

Current Bitcoin price import from website

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 986 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shajko
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Shajko
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by JKSH
        #3

        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 and QJsonObject to extract the "last" value.

        Search the Qt documentation for details on how to use these classes and functions.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        1
        • MRenM Offline
          MRenM Offline
          MRen
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved