- Joined
- Jan 23, 2015
- Messages
- 1,677
- Likes
- 1,442
- Degree
- 4
So I’ve been struggling lately with how to visualize price data and history in a database.
What I want to do is store different price data on different dates which I can use to plot on a graph.
I’m using Python and JavaScript and will more than likely be using Postgres
My initial thinking was an object so like:
Have I got the right idea? I want to have a full 30 days of previous price data.
What I want to do is store different price data on different dates which I can use to plot on a graph.
I’m using Python and JavaScript and will more than likely be using Postgres
My initial thinking was an object so like:
Code:
{product: “example”, price: {dateOne: “$$$”, dateTwo: “$$$”, dateThree: “$$$”}, currentPrice: “$$”, productUrl: “https://url.com”}
Have I got the right idea? I want to have a full 30 days of previous price data.