USD/CNY price in the past 7 days: 2019-02-07 by python-dev

View this thread on steempeak.com
· @python-dev ·
$0.13
USD/CNY price in the past 7 days: 2019-02-07
China is now the second largest economy in the word.

Due to the recenty trade war with US. Chinese economy is expect to have hard landing, and CNY has greate devalue poential.

This daily post is trying to give updates of USD/CNY rate.

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

Currency data were collected using a currency python API with the follinde code:
~~~
def collect_currency_data():
    c = CurrencyRates()
    # price_list = c.get_rates('USD')   # you can directly call get_rates('USD')
    USD_CNY = c.get_rate('USD', 'CNY')
    currency_history_hour= json.load(open('currency_history_hour.json'))
    currency_history_hour.update({str(datetime.utcnow())[:-7]:{
                                      'USD_CNY':USD_CNY
                                      }
                                      })
    with open('currency_history_hour.json', 'w') as fp:
        json.dump(currency_history_hour,fp, indent=4,default=str)

~~~
👍  , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id69,860,712
authorpython-dev
permlinkusdcny-price-in-the-past-7-days-2019-02-07
categorypython
json_metadata{"tags":["python","currency"]}
created2019-02-07 19:40:39
last_update2019-02-07 19:40:39
depth0
children0
net_rshares279,245,947,776
last_payout2019-02-14 19:40:39
cashout_time1969-12-31 23:59:59
total_payout_value0.099 SBD
curator_payout_value0.028 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length934
author_reputation5,194,641,198,313
root_title"USD/CNY price in the past 7 days: 2019-02-07"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (22)