tweak: Consolidate the extra field as distinct from the quality indicators field. Replace tabs with spaces.
This commit is contained in:
parent
884cfb2463
commit
9159af7ece
|
@ -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
|
||||
}
|
||||
})
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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"){
|
||||
|
|
Loading…
Reference in New Issue
Block a user