create account

USD/CNY price in the past 7 days: 2019-08-06 by python-dev

View this thread on: hive.blogpeakd.comecency.com
· @python-dev ·
$0.12
USD/CNY price in the past 7 days: 2019-08-06
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/BllYBnw.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-08-06
categorypython
json_metadata"{"tags": ["python", "currency"]}"
created2019-08-06 19:40:36
last_update2019-08-06 19:40:36
depth0
children0
last_payout2019-08-13 19:40:36
cashout_time1969-12-31 23:59:59
total_payout_value0.092 HBD
curator_payout_value0.024 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-08-06"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id89,222,185
net_rshares365,269,231,634
author_curate_reward""
vote details (20)