create account

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

View this thread on: hive.blogpeakd.comecency.com
· @python-dev ·
$0.07
USD/CNY price in the past 7 days: 2019-10-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/XweuycW.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)
authorpython-dev
permlinkusdcny-price-in-the-past-7-days-2019-10-07
categorypython
json_metadata"{"tags": ["python", "currency"]}"
created2019-10-07 19:40:36
last_update2019-10-07 19:40:36
depth0
children0
last_payout2019-10-14 19:40:36
cashout_time1969-12-31 23:59:59
total_payout_value0.033 HBD
curator_payout_value0.032 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length934
author_reputation5,457,648,648,750
root_title"USD/CNY price in the past 7 days: 2019-10-07"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id91,327,003
net_rshares350,728,911,041
author_curate_reward""
vote details (6)