You are viewing a single comment's thread from:

RE: Steemfeed-JS - A NodeJS price feed for witneses

in #witness-category8 years ago (edited)

I have fixed the feed publishing, and tested against the latest development version of piston.

Will be releasing it in a new module in steemtools next week. For anyone interested, the updated method looks a bit something like this:

    def witness_publish_feed(self, steem_usd_price, witness_name, wif, sim_mode=True):
        op = Feed_publish(
            **{"publisher": witness_name,
               "exchange_rate": {
                   "base": "%s SBD" % steem_usd_price,
                   "quote": "1.000 STEEM"
               }}
        )
        tx = self.steem.constructTx(op, wif)
        if sim_mode:
            return tx
        return self.steem.broadcast(tx)

I have some other witness related goodies in works as well...

Coin Marketplace

STEEM 0.18
TRX 0.13
JST 0.028
BTC 57142.21
ETH 2984.63
USDT 1.00
SBD 2.25