tweak: Consolidate the extra field as distinct from the quality indicators field. Replace tabs with spaces.

This commit is contained in:
NunoSempere 2022-01-12 14:03:31 +01:00
parent 884cfb2463
commit 9159af7ece
6 changed files with 95 additions and 89 deletions

View File

@ -54,6 +54,8 @@ async function processPredictions(predictions) {
"volume7Days": prediction.volume7Days,
"volume24Hours": prediction.volume24Hours,
"pool": prediction.pool, // normally liquidity, but I don't actually want to show it.
},
"extra": {
"isResolved": prediction.isResolved
}
})

View File

@ -114,13 +114,15 @@ export async function metaculus() {
"timestamp": new Date().toISOString(),
"qualityindicators": {
"numforecasts": Number(result.number_of_predictions),
"stars": calculateStars("Metaculus", ({ numforecasts: result.number_of_predictions }))
},
"extra": {
"resolution_data": {
"publish_time": result.publish_time,
"resolution": result.resolution,
"close_time": result.close_time,
"resolve_time": result.resolve_time
},
"stars": calculateStars("Metaculus", ({ numforecasts: result.number_of_predictions }))
}
}
//"status": result.status,
//"publish_time": result.publish_time,

View File

@ -117,9 +117,11 @@ async function fetch_all() {
"liquidity": liquidity.toFixed(2),
"tradevolume": tradevolume.toFixed(2),
"stars": calculateStars("Polymarket", ({ liquidity, option: options[0], volume: tradevolume}))
},
"extra": {
"address": info.address
}
/*
address: info.address
*/
})
if(info.category != "Sports"){