API Documentation DH-Boss


Realtime Dollar To INR Price Other Currency Price Check Api - DHBOSS API

Realtime Dollar To INR Price Other Currency Price Check Api - Obtain real-time, accurate and reliable currency exchange rate data for hundreds of worldwide currencies, updated as often as every 60 seconds. 200+ Currencies From here you can know how much is the value of dollar in Indian currency and you can also know the value of any type of currency. Currency exchange APIs retrieve current and historical rates from various currency exchanges and financial information sources - docs.dhboss.com


GET/POST : CURRENCY_EXCHANGE

What is needed to use this API and how it will work is described below -
Your Api Key : Get API In Profile & eKYC

Input Parameters Detail
Name Type Description Mandatory
from_name String {Enter Value} Yes
to_name String {Enter Value} Yes
apikeyfill String {Enter Value} Yes

Output Parameters Detail
Name Type Description
code integer 200
status string success
response.0.rate double 83.2505
response.0.source string USD
response.0.target string INR
response.0.time string 2023-10-30T12:21:46+0000






Call API URL
https://api.dhboss.com/apicall/currency_exchange/
API Call Request Parameters
from_name=value&to_name=value&apikeyfill=value                                                   
API Call Example Request
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.dhboss.com/apicall/currency_exchange/',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS => 'apikeyfill=apicode&from_name=USD&to_name=INR',
 
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
?>
API Hit Example Response
{
  "code": 200,
  "status": "success",
  "response": [
    {
      "rate": 83.2505,
      "source": "USD",
      "target": "INR",
      "time": "2023-10-30T12:21:46+0000"
    }
  ]
}