SBD Price Feeds with Automatic Peg Support

in #steem8 years ago

I am in no position to tell anyone how to run their witnesses, I am merely sharing the strategy I employ for mine.

Since the beginning, I have been running highly reactive price feeds updates (update on 1% change treshold, from near real-time volume weighted market prices).

I used to support the peg by manipulating the base, however, marking the peg support via quote is a much more elegant solution, so as of today, I am switching to that.

Calculating the Quote

We can derive the quote by looking at implied SBD/USD spread, and thus determine how much offset is necessary to create a $1 USD to $1 SBD peg.

Calculating the quote using implied price is actually really simple:

quote = 1 / markets.sbd_usd_implied()

You can find a reference implementation for witness price feeds in Python here.

steemtools support

Steemtools now supports setting the quote via quote argument:

tx = Transactions().witness_feed_publish(current_price, witness_name, active_key, quote=quote, sim_mode=False)
print(tx)

To upgrade to latest version (1.3.3), please run:

pip install -U steemtools

Result

Thanks

Big thanks to @thecryptodrive for diligent observation.

img source



Don't miss out on the next post - follow me.
SteemQ | steemtools | steem.li | witness


Sort:  

UV and RS for you as always.

Interesting. Thank you for sharing :) I have noticed that the peg has strengthened quite a bit over the last several days versus where it was a couple weeks ago when Steem was approaching $.10

This post has been ranked within the top 50 most undervalued posts in the second half of Nov 09. We estimate that this post is undervalued by $6.99 as compared to a scenario in which every voter had an equal say.

See the full rankings and details in The Daily Tribune: Nov 09 - Part II. You can also read about some of our methodology, data analysis and technical details in our initial post.

If you are the author and would prefer not to receive these comments, simply reply "Stop" to this comment.

Coin Marketplace

STEEM 0.17
TRX 0.15
JST 0.027
BTC 60654.57
ETH 2343.25
USDT 1.00
SBD 2.48