Skip to content

Commit

Permalink
modified env
Browse files Browse the repository at this point in the history
  • Loading branch information
coolfire1231 committed Jun 4, 2021
1 parent dca3d82 commit b057650
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ URL: https://theforexapi.com/api/latest?base=USD
```
URL https://theforexapi.com/api/2008-12-10
{"base":"EUR","date":"2008-12-10","rates":{"AUD":3.2406,"BRL":1.6295,"CAD":8.8708,"CNY":10.0171,"CYP":25.9,"CZK":7.4499,"DKK":15.6466,"EEK":0.87325,"GBP":263.75,"HKD":14185.19,"HRK":36.0941,"HUF":3.4528,"INR":1790.76,"ISK":9.1285,"JPY":1.9558,"KRW":17.4681,"LTL":0.7092,"MTL":3.9566,"MXN":4.6724,"MYR":2.3696,"NOK":7.1923,"NZD":62.47,"PHP":1.9393,"ROL":3.878,"RON":10.567,"SGD":45.748,"SIT":30.189,"SKK":1.5587,"TRL":2.028,"TRY":1.9665,"USD":119.77}}
{"rates":{"USD":"1.2925","JPY":"119.77","BGN":"1.9558","CZK":"25.9","DKK":"7.4499","EEK":"15.6466","GBP":"0.87325","HUF":"263.75","LTL":"3.4528","LVL":"0.7092","PLN":"3.9566","RON":"3.878","SEK":"10.567","SKK":"30.189","CHF":"1.5587","NOK":"9.1285","HRK":"7.1923","RUB":"36.0941","TRY":"2.028","AUD":"1.9665","BRL":"3.2406","CAD":"1.6295","CNY":"8.8708","HKD":"10.0171","IDR":"14185.19","KRW":"1790.76","MXN":"17.4681","MYR":"4.6724","NZD":"2.3696","PHP":"62.47","SGD":"1.9393","THB":"45.748","ZAR":"13.1916"},"date":"2008-12-10","base":"EUR"}
```

* Get Rates using base and symbol
Expand Down
1 change: 0 additions & 1 deletion first.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def calculate_new_base(new_base, new_row):
new_row['base'] = 'EUR'

print(new_row)
break
for k in new_row['rates'].keys():
if k not in ('date', 'base'):
calculate_new_base(k, new_row)
Expand Down

0 comments on commit b057650

Please sign in to comment.