@c0ff33a I have a hive-engine token price oracle working and pushed to GitHub. I'll do documentation later, but here are the basics. LMK if you need any help.
"oracles": [
{ "type": "hiveengineorderbook", "params": { "tokens": [ "DEC", "BEE", "WORKERBEE" ]}}
]
Generates these facts:
hemDEC_price
, hemDEC_bid
, hemDEC_ask
,
hemBEE_price
, hemBEE_bid
, hemDEC_ask
,
hemWORKERBEE_price
, hemWORKERBEE_bid
, hemWORKERBEE_ask
The pricing is in SWAP.HIVE. You can approximate that in USD by multiplying it with the HIVEUSD price from the Coingecko oracle. The format of the generated fact names is: hem[tokenname]_price
. There's also _bid
and _ask
if you'd prefer those - probably more useful than _price
in thinly traded or widely spread markets.
Happy New Year.