Just read this post and the linked one on RC costs, very interesting. I am planning to launch a game on Hive in 2023 and I have a few questions:
Do you know of a market for direct RC delegations? If not do you know someone planning to build such an app?
Is there an easy way to convert the RC costs shown in this post/those we get from rc_api.get_rc_stats into actual Hive or USD prices? If there isn't an easy way, is someone tracking or publishing daily averages of transaction prices in Hive or USD?
I am interested in posts, comments and custom_jsons only, any answer would be a big help!
Edit- by cost I mean how much equivalent hive power do you need to do a transaction every 5 days.
No. I'm engaged in core code only, not actual use :o)
First of all you have to remember that RC costs returned by
rc_api
are average from last day. In many cases actual cost of particular operation will heavily depend on its content. You can make some estimation based on differences in resource usage of your operation in comparison to resource usage of average operation, but it will still be only an estimate. That aside, there is a way to recalculate RC cost into HP. RC mana has the same "scale" as VESTS, therefore you can use price of VESTS to calculate HP equivalent. Maybe there is a simplier way, but right now I can only think of use ofdatabase_api.get_dynamic_global_properties
. It returns plenty of data, includingtotal_vesting_shares
andtotal_vesting_fund_hive
. Those two values form a price of VESTS. The calculation would be something like the following:HP_equivalent = RC_cost * total_vesting_fund_hive / total_vesting_shares
. HP equivalent is then expressed in HIVE, so you can use price of HIVE to calculate USD (there are many potential sources of that price to use: hived has feed price from witnesses and market price from internal market, but you can use price from any exchange). The prices I've mentioned are accessible withdatabase_api.get_feed_history
undercurrent_median_history
andmarket_median_history
respectively.thank you!
Recently I had to look into the code related to internal prices and I've noticed that part of the information I gave you was incorrect. The price from internal market is available, but it is not the
market_median_history
. Internal market can be observed withmarket_history_api
, in particular latest price is inmarket_history_api.get_ticker
inlatest
field. Funnily enough it was me who namedmarket_median_history
in such a deceitful way.market_median_history
is always the same ascurrent_median_history
with exception of one special situation. When HBD debt hard limit is reached (when HBD in circulation, excluding DHF balance, is more than 30% of virtual HIVE supply),current_median_history
price is artificially changed to the upside (for the purpose of internal calculations HIVE is artificially worth more than what witnesses report from external markets) whilemarket_median_history
is the uncorrected version of that price.Thank you for getting back to me!