pick Your Exchanges
The preliminary model of the witness rate feed tool I published a few days in the past pulled the contemporary STEEM charge from CoinMarketCap.com, that is first-class because it offers a USD price for STEEM based on an average across all of the exchanges on which it's listed.
I found out that it also includes the STEEM/KRW pair indexed on UpBit which always trades at a pretty enormous top class over pairs on different exchanges. This makes the charge posted by my feed tool continually a piece higher than what most other witnesses are publishing.
i'm not going to mention whether it's right or wrong to apply the STEEM/KRW pair from UpBit while publishing your price feed - that is up to every witness to determine for themselves - but the tools need to as a minimum offer unique options.
So i've updated my witness rate feed tool at https://github.com/MattyIce/pricefeed to permit witnesses to select from Bittrex, Poloniex, Binance or all the above, in the event that they do not want to apply the default of CoinMarketCap.com.
To select which exchanges to use, set the new "exchanges" assets in the config.json report like so:
"exchanges": ["bittrex", "poloniex", "binance"]
In the instance above, the device will pull the modern STEEM rate from all three exchanges indexed and publish the common price between the three. if you just want to use one alternate, then simplest upload that one to the listing. it's going to pull charges from anything exchanges are indexed inside the "exchanges" array and put up the average rate.
If the "exchanges" property is null or empty then it'll default again to the usage of CoinMarketCap.com's average rate.
replace commands
For the ones of you already strolling the preceding version of the fee feed device, you may just run the following instructions to pull and run the cutting-edge replace (inside the 'pricefeed' listing):
$ git pull
Edit config.json and add the "exchanges" property with the listing of exchanges you would like to apply, after which restart the program the usage of:
$ pm2 restart feed
charge Calculation info
to feature a touch more element for individuals who are involved, CoinMarketCap.com is very simple because it gives a price API for every coin it lists in USD. So it is one call, take hold of the charge, and you're accomplished. the other exchanges are a chunk greater involved for the reason that they do not submit prices for STEEM immediately in USD.
For Bittrex the tool will pull the STEEM rate in BTC and then pull the BTC rate in USD and multiply the two to get the modern STEEM fee in USD.
For Binance and Poloniex, they do no longer change whatever in USD so for the ones I used the BTC-USDT pair as a proxy for the USD fee of Bitcoin and then elevated by using the STEEM/BTC price to get the USD rate of STEEM.
If anybody is aware of a higher manner of doing this, please let me recognize!
thanks on your assist!
As usually I need to thank anyone who has supported my paintings. it might no longer be feasible without you! with any luck this tool will help other Steem witnesses run a strong and reliable charge feed that does not require a great deal maintenance, and now additionally provide extra alternatives to pick out which trade or set of exchanges offer the most correct pricing for STEEM.
@davibes, I always try to support who contribute to open source project, upvote you.