purplelion on Nostr: I'm loving Satonomics, keep up with the great work! I have one feature request that I ...
I'm loving Satonomics, keep up with the great work!
I have one feature request that I think could be really useful and save some bandwidth:
It would be cool if there was an endpoint to request many presets at once, to avoid doing one request per preset. For example:
https://api.satonomics.xyz/last?preset=price&preset=market-cap&preset=realized-pricewould return a JSON response with the latest price, market capitalization and realized price
```
{
"price": <price>,
"market-cap": <market-cap>,
"realized-price": <realized-price>
}
```
Perhaps one for date and one for height would make sense too.
Published at
2024-06-29 00:04:28Event JSON
{
"id": "cff1fb0d391648f49ce4a95c591400d0631f02ced17b7599da03f959243d28ae",
"pubkey": "dc62988f8aec64adbf2bf01a375669f231bbd7027f16ca507f7e3581f3540b7c",
"created_at": 1719619468,
"kind": 1,
"tags": [
[
"e",
"805a14901f7fdafbf4ae4d05ea11e81cb7020abb50cbe3c1a816f3cbd242a6bd",
"",
"root"
],
[
"p",
"9751bdc4d12ff6e4cc6b61b102f71e445ef245bc830bf40af6566a6a246137c6"
]
],
"content": "I'm loving Satonomics, keep up with the great work!\n\nI have one feature request that I think could be really useful and save some bandwidth:\n\nIt would be cool if there was an endpoint to request many presets at once, to avoid doing one request per preset. For example:\n\nhttps://api.satonomics.xyz/last?preset=price\u0026preset=market-cap\u0026preset=realized-price\n\nwould return a JSON response with the latest price, market capitalization and realized price\n\n```\n{\n \"price\": \u003cprice\u003e,\n \"market-cap\": \u003cmarket-cap\u003e,\n \"realized-price\": \u003crealized-price\u003e\n}\n```\n\nPerhaps one for date and one for height would make sense too.",
"sig": "4699ed23d8df2c06974c8dc93b41a6b16b95e403e889684721aa4f9b43bade1fdb08ff2956bd8bafb0f63871317eafd274cdf1af713bf1fe09a3143bef730bad"
}