You are viewing a single comment's thread from:

RE: Steem-Price-Feed | Script for Witness Price Feed Update using Coin Gecko Web Socket and API

in #utopian-io5 years ago (edited)

Looks great @coingecko!

It seems like you're doing frequent updates every time the price is changed. This looks like a little bit overkill since the markets are not that volatile.

Blockchain uses these publish_feed transactions by getting a median in 3.5 days. So, broadcasting a 0.001 change in the price with 2 minute intervals doesn't change much in the practice.

For example, let's check these updates:

Screen Shot 2019-02-05 at 10.54.51 AM.png

You have almost broadcasted the same price four times in seven minutes.

Also, since witnesses use these tools on the servers, it's always a better practice to use signing key to broadcast prices. (It's possible after HF20) Which is more secure in comparison storing an active key.


Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Sort:  

We are currently running older version of the script, the new version added SENSITIVITY

SENSITIVITY=0.000 # Sensitivity for the price update. (Float) [default: 0.000]

which will only update price when it passes a certain threshold

to solve this issue, will update the script once the holiday is over.

it's always a better practice to use signing key to broadcast prices.

true, will take note of that on the next version.

Thank you for your review, @emrebeyler! Keep up the good work!

Coin Marketplace

STEEM 0.18
TRX 0.14
JST 0.030
BTC 58665.81
ETH 3153.57
USDT 1.00
SBD 2.44