Live Rate Endpoint
Real-time exchange rates using the IpForensics API's live endpoint.
Each request to the currency endpoint consumes 1 token.
Code Snippet
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://ipforensics.net/api/v1/currency/liverate?apikey=IPF-36ae36a6-4a32-4fae-a422-e45e70b0a515-X&source=USD',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var requestOptions = {
method: 'GET',
redirect: 'follow'
};
fetch("https://ipforensics.net/api/v1/currency/liverate?apikey=IPF-36ae36a6-4a32-4fae-a422-e45e70b0a515-X&source=USD", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var axios = require('axios');
var config = {
method: 'get',
url: 'https://ipforensics.net/api/v1/currency/liverate?apikey=IPF-36ae36a6-4a32-4fae-a422-e45e70b0a515-X&source=USD',
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
import requests
url = "https://ipforensics.net/api/v1/currency/liverate?apikey=IPF-36ae36a6-4a32-4fae-a422-e45e70b0a515-X&source=USD"
payload={}
response = requests.request("GET", url, data=payload)
print(response.text)
var client = new RestClient("https://ipforensics.net/api/v1/currency/liverate?apikey=IPF-36ae36a6-4a32-4fae-a422-e45e70b0a515-X&source=USD");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
Sample Response
{
"status": true,
"code": 200,
"message": "Successful",
"meta_data": {
"currency": "usd",
"exchange_rate": {
"1inch": 1.773227,
"aave": 0.014631,
"ada": 2.687421,
"aed": 3.673103,
"afn": 88.000125,
"algo": 3.060917,
"all": 115.74973,
"amd": 395.848438,
"amp": 247.913692,
"ang": 1.801514,
"aoa": 493.753133,
"ar": 0.092725,
"ars": 160.329715,
"atom": 0.081292,
"aud": 1.516909,
"avax": 0.065238,
"awg": 1.8025,
"axs": 0.135837,
"azn": 1.697294,
"bam": 1.965954,
"bat": 3.689068,
"bbd": 2.018335,
"bch": 0.009641,
"bdt": 101.928979,
"bgn": 1.919076,
"bhd": 0.37703,
"bif": 2052.500133,
"bmd": 1,
"bnb": 0.003298,
"bnd": 1.403119,
"bob": 6.907211,
"brl": 5.345499,
"bsd": 0.999568,
"bsv": 0.025774,
"btc": 5.7e-5,
"btcb": 5.7e-5,
"btg": 0.063417,
"btn": 81.73061,
"busd": 0.998183,
"bwp": 13.256809,
"byn": 2.523986,
"byr": 19600.00127,
"bzd": 2.014917,
"cad": 1.33422,
"cake": 0.233308,
"cdf": 2043.999859,
"celo": 1.925193,
"chf": 0.965975,
"chz": 4.388739,
"clf": 0.032416,
"clp": 894.460544,
"cny": 7.187022,
"comp": 0.024142,
"cop": 4802.920311,
"crc": 614.848808,
"cro": 10.374109,
"crv": 1.456911,
"cuc": 1,
"cup": 26.500001,
"cve": 110.301484,
"cvx": 0.237609,
"czk": 23.860099,
"dai": 0.997529,
"dash": 0.026777,
"dcr": 0.045217,
"dfi": 87.570776,
"djf": 177.720027,
"dkk": 7.306597,
"doge": 11.054323,
"dop": 54.401993,
"dot": 0.167572,
"dzd": 139.260968,
"egld": 0.020828,
"egp": 24.398602,
"enj": 2.677104,
"eos": 1.061946,
"ern": 15.000001,
"etb": 52.897946,
"etc": 0.045286,
"eth": 0.000769,
"eur": 0.982105,
"fei": 1.007502,
"fil": 0.21504,
"fjd": 2.271802,
"fkp": 0.856177,
"flow": 0.735976,
"frax": 1.004958,
"ftm": 4.822415,
"ftt": 0.289975,
"gala": 30.869928,
"gbp": 0.857085,
"gel": 2.709864,
"ggp": 0.856177,
"ghs": 14.424982,
"gip": 0.856177,
"gmd": 61.274984,
"gnf": 8700.000569,
"gno": 0.010354,
"grt": 14.255904,
"gt": 0.245189,
"gtq": 7.816814,
"gyd": 209.131222,
"hbar": 19.897113,
"hkd": 7.84095,
"hnl": 24.839716,
"hnt": 0.327531,
"hot": 585.577871,
"hrk": 7.4029,
"ht": 0.158493,
"htg": 134.945678,
"huf": 393.619868,
"icp": 0.231451,
"idr": 15543.051008,
"ils": 3.479251,
"imp": 0.856177,
"inj": 0.550434,
"inr": 80.536555,
"iqd": 1460.000094,
"irr": 42300.00292,
"isk": 145.459933,
"jep": 0.856177,
"jmd": 153.554818,
"jod": 0.708948,
"jpy": 142.078509,
"kava": 0.98418,
"kcs": 0.119072,
"kda": 0.942934,
"kes": 121.850133,
"kgs": 84.217307,
"khr": 4144.498726,
"klay": 5.269374,
"kmf": 487.350381,
"knc": 1.547783,
"kpw": 900.0215,
"krw": 1343.670361,
"ksm": 0.035298,
"kwd": 0.30787,
"kyd": 0.832977,
"kzt": 466.961888,
"lak": 16955.001256,
"lbp": 1523.000133,
"leo": 0.250169,
"link": 0.138017,
"lkr": 368.339044,
"lrc": 3.636158,
"lrd": 153.801847,
"lsl": 17.564982,
"ltc": 0.015824,
"ltl": 2.95274,
"luna": 0.53928,
"lvl": 0.60489,
"lyd": 4.970054,
"mad": 10.815002,
"mana": 1.878526,
"matic": 0.871825,
"mdl": 19.252235,
"mga": 4307.000463,
"mina": 1.66742,
"miota": 4.194722,
"mkd": 60.364988,
"mkr": 0.001137,
"mmk": 2099.103221,
"mnt": 3409.610942,
"mop": 8.080475,
"mro": 356.999851,
"mur": 43.774293,
"mvr": 15.410052,
"mwk": 1024.000358,
"mxn": 19.318351,
"myr": 4.638497,
"mzn": 63.82973,
"nad": 17.565019,
"near": 0.433928,
"neo": 0.139537,
"nexo": 1.202174,
"ngn": 440.630032,
"nio": 36.015041,
"nok": 10.116904,
"npr": 130.768814,
"nzd": 1.66693,
"okb": 0.049163,
"omr": 0.385026,
"one": 1834.965553,
"pab": 0.999568,
"paxg": 0.000571,
"pen": 3.89625,
"pgk": 3.51958,
"php": 57.249495,
"pkr": 221.489704,
"pln": 4.598625,
"pyg": 7164.160065,
"qar": 3.640973,
"qnt": 0.008011,
"qtum": 0.427836,
"ron": 4.791902,
"rsd": 115.204989,
"rub": 60.749974,
"rune": 0.819332,
"rwf": 1051.000068,
"sand": 1.480313,
"sar": 3.759526,
"sbd": 8.230592,
"scr": 14.53378,
"sdg": 568.497946,
"sek": 10.617615,
"sgd": 1.383655,
"shib": 96782.262308,
"shp": 1.377395,
"sle": 17.839369,
"sll": 17820.001378,
"sol": 0.056936,
"sos": 567.999931,
"srd": 29.839503,
"std": 20697.98235,
"stx": 297.182388,
"svc": 8.746218,
"syp": 2511.883526,
"szl": 17.565022,
"thb": 36.119611,
"theta": 0.989575,
"tjs": 10.095846,
"tmt": 3.51,
"tnd": 3.185974,
"top": 2.410698,
"trx": 17.270256,
"try": 18.503703,
"ttd": 6.787191,
"ttt": 61.61349,
"tusd": 0.997671,
"twd": 31.321504,
"tzs": 2332.000101,
"uah": 36.917265,
"ugx": 3778.434751,
"uni": 1182.095862,
"usd": 1,
"usdc": 0.999035,
"usdp": 0.988746,
"usdt": 1.002214,
"uyu": 40.011863,
"uzs": 11205.000609,
"vef": 891369.142103,
"vet": 44.751572,
"vnd": 24867.501611,
"vuv": 122.737404,
"waves": 0.396696,
"wbtc": 5.7e-5,
"wemix": 0.656189,
"wst": 2.7972,
"xaf": 659.339454,
"xag": 0.046302,
"xau": 0.000572,
"xcd": 2.70255,
"xch": 0.031618,
"xdc": 36.421083,
"xdr": 0.774775,
"xec": 31260.673954,
"xem": 28.833465,
"xlm": 10.185521,
"xmr": 0.007477,
"xof": 652.501734,
"xpf": 118.449988,
"xrp": 2.524528,
"xtz": 0.873487,
"yer": 250.250422,
"zar": 17.389562,
"zec": 0.025259,
"zil": 41.221922,
"zmk": 9001.182541,
"zmw": 16.343396,
"zwl": 321.999613
}
}
}
Endpoint
Returns list of all live rate currencies based on the source currency.
GET
https://ipforensics.net/api/v1/currency/liverate?apikey=...&source=USD
Returns response object and a metadata of the request
Query Parameters
{
"status": true,
"code": 200,
"message": "Successful",
"meta_data": {
"currency": "usd",
"exchange_rate": {
"1inch": 1.773227,
"aave": 0.014631,
"ada": 2.687421,
"aed": 3.673103,
"afn": 88.000125,
"algo": 3.060917,
"all": 115.74973,
"amd": 395.848438,
"amp": 247.913692,
"ang": 1.801514,
"aoa": 493.753133,
"ar": 0.092725,
"ars": 160.329715,
"atom": 0.081292,
"aud": 1.516909,
"avax": 0.065238,
"awg": 1.8025,
"axs": 0.135837,
"azn": 1.697294,
"bam": 1.965954,
"bat": 3.689068,
"bbd": 2.018335,
"bch": 0.009641,
"bdt": 101.928979,
"bgn": 1.919076,
"bhd": 0.37703,
"bif": 2052.500133,
"bmd": 1,
"bnb": 0.003298,
"bnd": 1.403119,
"bob": 6.907211,
"brl": 5.345499,
"bsd": 0.999568,
"bsv": 0.025774,
"btc": 5.7e-5,
"btcb": 5.7e-5,
"btg": 0.063417,
"btn": 81.73061,
"busd": 0.998183,
"bwp": 13.256809,
"byn": 2.523986,
"byr": 19600.00127,
"bzd": 2.014917,
"cad": 1.33422,
"cake": 0.233308,
"cdf": 2043.999859,
"celo": 1.925193,
"chf": 0.965975,
"chz": 4.388739,
"clf": 0.032416,
"clp": 894.460544,
"cny": 7.187022,
"comp": 0.024142,
"cop": 4802.920311,
"crc": 614.848808,
"cro": 10.374109,
"crv": 1.456911,
"cuc": 1,
"cup": 26.500001,
"cve": 110.301484,
"cvx": 0.237609,
"czk": 23.860099,
"dai": 0.997529,
"dash": 0.026777,
"dcr": 0.045217,
"dfi": 87.570776,
"djf": 177.720027,
"dkk": 7.306597,
"doge": 11.054323,
"dop": 54.401993,
"dot": 0.167572,
"dzd": 139.260968,
"egld": 0.020828,
"egp": 24.398602,
"enj": 2.677104,
"eos": 1.061946,
"ern": 15.000001,
"etb": 52.897946,
"etc": 0.045286,
"eth": 0.000769,
"eur": 0.982105,
"fei": 1.007502,
"fil": 0.21504,
"fjd": 2.271802,
"fkp": 0.856177,
"flow": 0.735976,
"frax": 1.004958,
"ftm": 4.822415,
"ftt": 0.289975,
"gala": 30.869928,
"gbp": 0.857085,
"gel": 2.709864,
"ggp": 0.856177,
"ghs": 14.424982,
"gip": 0.856177,
"gmd": 61.274984,
"gnf": 8700.000569,
"gno": 0.010354,
"grt": 14.255904,
"gt": 0.245189,
"gtq": 7.816814,
"gyd": 209.131222,
"hbar": 19.897113,
"hkd": 7.84095,
"hnl": 24.839716,
"hnt": 0.327531,
"hot": 585.577871,
"hrk": 7.4029,
"ht": 0.158493,
"htg": 134.945678,
"huf": 393.619868,
"icp": 0.231451,
"idr": 15543.051008,
"ils": 3.479251,
"imp": 0.856177,
"inj": 0.550434,
"inr": 80.536555,
"iqd": 1460.000094,
"irr": 42300.00292,
"isk": 145.459933,
"jep": 0.856177,
"jmd": 153.554818,
"jod": 0.708948,
"jpy": 142.078509,
"kava": 0.98418,
"kcs": 0.119072,
"kda": 0.942934,
"kes": 121.850133,
"kgs": 84.217307,
"khr": 4144.498726,
"klay": 5.269374,
"kmf": 487.350381,
"knc": 1.547783,
"kpw": 900.0215,
"krw": 1343.670361,
"ksm": 0.035298,
"kwd": 0.30787,
"kyd": 0.832977,
"kzt": 466.961888,
"lak": 16955.001256,
"lbp": 1523.000133,
"leo": 0.250169,
"link": 0.138017,
"lkr": 368.339044,
"lrc": 3.636158,
"lrd": 153.801847,
"lsl": 17.564982,
"ltc": 0.015824,
"ltl": 2.95274,
"luna": 0.53928,
"lvl": 0.60489,
"lyd": 4.970054,
"mad": 10.815002,
"mana": 1.878526,
"matic": 0.871825,
"mdl": 19.252235,
"mga": 4307.000463,
"mina": 1.66742,
"miota": 4.194722,
"mkd": 60.364988,
"mkr": 0.001137,
"mmk": 2099.103221,
"mnt": 3409.610942,
"mop": 8.080475,
"mro": 356.999851,
"mur": 43.774293,
"mvr": 15.410052,
"mwk": 1024.000358,
"mxn": 19.318351,
"myr": 4.638497,
"mzn": 63.82973,
"nad": 17.565019,
"near": 0.433928,
"neo": 0.139537,
"nexo": 1.202174,
"ngn": 440.630032,
"nio": 36.015041,
"nok": 10.116904,
"npr": 130.768814,
"nzd": 1.66693,
"okb": 0.049163,
"omr": 0.385026,
"one": 1834.965553,
"pab": 0.999568,
"paxg": 0.000571,
"pen": 3.89625,
"pgk": 3.51958,
"php": 57.249495,
"pkr": 221.489704,
"pln": 4.598625,
"pyg": 7164.160065,
"qar": 3.640973,
"qnt": 0.008011,
"qtum": 0.427836,
"ron": 4.791902,
"rsd": 115.204989,
"rub": 60.749974,
"rune": 0.819332,
"rwf": 1051.000068,
"sand": 1.480313,
"sar": 3.759526,
"sbd": 8.230592,
"scr": 14.53378,
"sdg": 568.497946,
"sek": 10.617615,
"sgd": 1.383655,
"shib": 96782.262308,
"shp": 1.377395,
"sle": 17.839369,
"sll": 17820.001378,
"sol": 0.056936,
"sos": 567.999931,
"srd": 29.839503,
"std": 20697.98235,
"stx": 297.182388,
"svc": 8.746218,
"syp": 2511.883526,
"szl": 17.565022,
"thb": 36.119611,
"theta": 0.989575,
"tjs": 10.095846,
"tmt": 3.51,
"tnd": 3.185974,
"top": 2.410698,
"trx": 17.270256,
"try": 18.503703,
"ttd": 6.787191,
"ttt": 61.61349,
"tusd": 0.997671,
"twd": 31.321504,
"tzs": 2332.000101,
"uah": 36.917265,
"ugx": 3778.434751,
"uni": 1182.095862,
"usd": 1,
"usdc": 0.999035,
"usdp": 0.988746,
"usdt": 1.002214,
"uyu": 40.011863,
"uzs": 11205.000609,
"vef": 891369.142103,
"vet": 44.751572,
"vnd": 24867.501611,
"vuv": 122.737404,
"waves": 0.396696,
"wbtc": 5.7e-5,
"wemix": 0.656189,
"wst": 2.7972,
"xaf": 659.339454,
"xag": 0.046302,
"xau": 0.000572,
"xcd": 2.70255,
"xch": 0.031618,
"xdc": 36.421083,
"xdr": 0.774775,
"xec": 31260.673954,
"xem": 28.833465,
"xlm": 10.185521,
"xmr": 0.007477,
"xof": 652.501734,
"xpf": 118.449988,
"xrp": 2.524528,
"xtz": 0.873487,
"yer": 250.250422,
"zar": 17.389562,
"zec": 0.025259,
"zil": 41.221922,
"zmk": 9001.182541,
"zmw": 16.343396,
"zwl": 321.999613
}
}
}
Last updated