Steem 市场价和喂价过去7天走势比较: 2019-02-08 by xiguang

View this thread on steempeak.com
· @xiguang ·
$0.10
Steem 市场价和喂价过去7天走势比较: 2019-02-08
Steem 市场价和喂价过去7天内的变化, 报价取样数据为每小时:

![](https://i.imgur.com/bGHAGqH.png)

附上数据采集的python脚本,每小时运行一次脚本,小时数据就会采集到 json文件。
~~~
def collect_data():
    coinmarketcap = Market()
    cont=Converter();
    s = Steem()

    #get steem feed_price
    feed_price = s.get_current_median_history_price()['base']
    feed_price= float(feed_price.split()[0])

    #get steem market_price
    Steem_market_price_USD= float(coinmarketcap.ticker('steem', convert='USD')[0]['price_usd'])

    steemit_data_history_hour.update({str(datetime.utcnow())[:-7]:{
                                      'steem_feed_price':reward_data[0],
                                      'Steem_market_price_USD':Steem_market_price_USD,
                                      }
                                      })
    with open('steemit_data_history_hour.json', 'w') as fp:
        json.dump(steemit_data_history_hour,fp, indent=4,default=str)
~~~
👍  , , , , , , ,
properties (23)
post_id69,888,596
authorxiguang
permlinksteem-7-2019-02-08
categorycn
json_metadata{"tags":["cn",""]}
created2019-02-08 13:40:48
last_update2019-02-08 13:40:48
depth0
children0
net_rshares228,632,885,616
last_payout2019-02-15 13:40:48
cashout_time1969-12-31 23:59:59
total_payout_value0.081 SBD
curator_payout_value0.023 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length910
author_reputation124,292,362,915,131
root_title"Steem 市场价和喂价过去7天走势比较: 2019-02-08"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (8)