cyberFund / cyber.fund

:red_circle: Original version of the site where blockchains grow
https://cyber.fund
30 stars 16 forks source link

Group market data point info by system, not by timestamp #26

Closed deltaidea closed 9 years ago

deltaidea commented 9 years ago

Currently data is saved as-is, which is:

{
    "timestamp": 1426600802,
    "markets": [{...}, {...}]
},
...

Should be instead:

{
    "name": "Bitcoin",
    "points": [{"timestamp": 1426600802, ...}, {...}]
},
...
mastercyb commented 9 years ago

What about: { "name": "Bitcoin", "timestamp": "1426600802", "source": "CoinMarketCap", "metrics": [{"CapUSD": 4029877654, ...}, {...}] }, ...

deltaidea commented 9 years ago
{
    "name": "Bitcoin",
    "timestamp": 1426600802,
    "source": "CoinMarketCap",
    "metrics": {
        "marketCap": {
            "usd": 4020831962.15,
            ...
        },
        ...
    }
},
...
mastercyb commented 9 years ago

Good