Transmitter update: Introducing publish_feed command (using private signing keys)

in #utopian-io6 years ago (edited)


Repository: https://github.com/emre/transmitter

Transmitter is a CLI tool for STEEM blockchain witnesses. It quickly allows you to enable/disable your witness or set some properties for the new witness_set_properties call introduced in Hard Fork 20. - announcement post

Transmitter got a brand new command, publish_feed, to publish STEEM's market price to the blockchain. (with v0.1.3)

After HF20, it's possible to feed this data with witness_set_properties operation. I have used that option instead of broadcasting a feed_publish operation since using witness signing keys instead of the active key is better and safer.

Before trying out that feature, make sure you have upgraded the app.

$ pip install transmitter --upgrade

Add WITNESS_ACCOUNT and SIGNING_KEY fields to the ~/.transmitter.config.json.

Example:

{
        "WITNESS_ACCOUNT": "emrebeyler",
        "SIGNING_KEY": "5...."
}

To update the feed:

$ transmitter publish_feed --markets poloniex,bittrex,binance


Shiny CLI apps, we need more of them!

How does it work?


  • It gets the average price of the markets you choose. Currently, only 3 markets (Poloniex, Bittrex, Binance) are supported.

  • You can select markets with the --markets x,y,z syntax.

  • It's possible to set price bias by using --peg_multiplier. Passing --peg_multiplier 2 will give you 1 / 2 on quote field. (%100 price bias.)

  • For the markets don't have a direct BTC/USD pair, I have used USDT alternatives.

Pull Requests


https://github.com/emre/transmitter/pull/3

Roadmap


  • Adding more market adapters
  • Auto exclude market price on some conditions. (Ex: Price pump in a locked market.)
  • Periodical call support. (Currently, if you need to execute it, you need to set a crontab entry, or use other schedulers.)

I will continue to develop transmitter to make it a great toolkit for witness operations. Let me know if you see any problem or have any feature ideas on project's issues page.

Sort:  

Thanks for the contribution, @emrebeyler! Cool to see you can now use witness signing keys (didn't even know that was a thing) instead of an active key with Transmitter.

Can't really give any feedback about the code as it's great as always. Keep up the great work you're doing for the blockchain!


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? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

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

Hi @emrebeyler!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @emrebeyler!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Haver another happy year, !BEER

Loading...

Coin Marketplace

STEEM 0.29
TRX 0.11
JST 0.031
BTC 68921.34
ETH 3929.09
USDT 1.00
SBD 3.62