isaka-james / currencyapi

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

currencyapi

since 21 Feb,2024

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

About

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

License:Apache License 2.0


Languages

Language:Python 100.0%