Currency Exchange Rater API

API Endpoint Specifications

  • Endpoint Path: /api/1/currency-exchange-rater
  • Type of Data: JSON & 20/minute
  • Data Source: Currency Exchange Rate
  • Request Limit: 500 request/month
  • Script & Integration: Code to integrate with cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript
Currency Exchange Rater API Endpoint Basic Info

API Endpoint Path

required

Real Time Currency Checker API

api/1/currency


Call Method

Required

GET

Type of Data Return

JSON

Output structured JSON data on real time currency


Available API Arguments & Parameters

token

required

BUYFROMLO API token. Free and paid subscription APIs are both available: /api/1/currency, and accessible to on-site APP on /app/1/currency-exchange-rater as well

hostingCurrency

required

Input an currency shortcode



Real Time Currency Checker API

api/1/currency


Code Integration and Response

Python Code Sample


import requests

apiendpoint = "https://api.buyfromlo.com/api/1/currency-exchange-rater?"

## Required Arguments & Parameters ##
token = "your buyfromlo token"
hostingCurrency = ""

## Optional ##
treasuryperiod = ""

data="hostingCurrency=" + hostingCurrency
headers={"Authorization": token}

## Call the api ##
response = requests.get(apiendpoint + data, headers=headers)
print(response.status_code)
print(response.json())
                        

JSON Response Sample


{
    "Currency Code, such as USD, HKD, CNY": " " (float)
}