Skip to content

MrNkolima/currencyapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

currencyapi

The API for money exchange for Major currency in the world and I've add the TRA market currency.

  • Written in full python

How to import?

  import currencyapi 

How to access the currency pairs?

To access the major currencies:

     currency= currency.major() 
  • This will return the following dictionary *

      currency= {
                "EUR/USD": {"BUY": buying_price, "SELL": selling_price},
                "USD/JPY": {"BUY": buying_price, "SELL": selling_price},
                "GPD/USD": {"BUY": buying_price, "SELL": selling_price},
                "USD/CHF": {"BUY": buying_price, "SELL": selling_price},
     }
    
  • E.g to access EUR/USD buying price

       currency=currency.major()
       pair=currency["EUR/USD"]["BUY"]
    

To access the currency based in Tanzania:

        currency=currency.tra()
  • E.g The currency pairs for Tanzania country:

    Tanzania currency dictionary Tanzania currency dictionary

Developed by Isack Philiph

About

The API for money exchange for Major currency in the world and I've add the TRA market currency see README

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages