create account

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

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @someguy123/steemfeed-js-a-nodejs-price-feed-for-witneses

· @furion · (edited)
$0.03
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](https://steemit.com/steemtools/@furion/ann-steemtools-a-high-level-python-library-for-steem) 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...
👍  , , , ,
properties (23)
authorfurion
permlinkre-someguy123-steemfeed-js-a-nodejs-price-feed-for-witneses-20160916t215436225z
categorywitness-category
json_metadata{"tags":["witness-category"],"links":["https://steemit.com/steemtools/@furion/ann-steemtools-a-high-level-python-library-for-steem"]}
created2016-09-16 21:54:36
last_update2016-09-16 21:56:54
depth1
children0
last_payout2016-10-17 23:20:15
cashout_time1969-12-31 23:59:59
total_payout_value0.030 HBD
curator_payout_value0.002 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length842
author_reputation116,503,940,714,958
root_title"Steemfeed-JS - A NodeJS price feed for witneses"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,270,712
net_rshares131,951,745,939
author_curate_reward""
vote details (5)