On a percentage basis, which assets in a given asset class had the largest move since the prior time period?
*Endpoint: https://generate-text-mrwwgrktvq-ue.a.run.app/top3-movers-in-class
Description: Reports up to 3 asset IDs in a given asset class that had the largest percentage gains from the prior recorded value.
Call structure:
curl -XPOST -d '
"post_body:"{
{
"metric_df": [
{
"value": 12,
"time":"2020-12-19",
"asset_id": "Ben Simmons",
"name":"points",
"asset_class":"the Sixers",
},
{
"value": 21,
"time":"2020-12-19",
"asset_id": "Tobias Harris",
"name":"points",
"asset_class":"the Sixers",
},
{
"value": 29,
"time":"2020-12-17",
"asset_id": "Tobias Harris",
"name": "points",
"asset_class":"the Sixers",
},
{
"value": 14,
"time":"2020-12-17",
"asset_id": "Ben Simmons",
"name": "points",
"asset_class":"the Sixers",
}
],
"key": ["api_token_here"]
}
}' 'https://generate-text-mrwwgrktvq-ue.a.run.app/streak-sentence'
Sample API Response
Over the prior 2 days, Ben Simmons, Tobias Harris and Joel Embiid made the biggest moves in terms of percentage change in points.