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. Best method to store and use JSON Api data?

Best method to store and use JSON Api data?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 912 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.
  • E Offline
    E Offline
    EStudley
    wrote on last edited by
    #1

    So I'm creating a Bitcoin price watching client. I'm basing prices on the Cryptsy API, which returns market information (what I'll be displaying in QML) in JSON format.

    I want to save the JSON data every 15 minutes for up to 4 hours so I can make basic price charts. Should I just save the market data to a file 16 times? Or should I load each to an SQL database and use queries to access the information?

    Here's the JSON data I'll be accessing: http://pubapi.cryptsy.com/api.php?method=marketdatav2

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What is the volume of the data ? Depending on it you could even just keep it in memory. Anyway, I'd go for a database since it will be easier to access if you need to do some data manipulation.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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