<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Inidan Forex Rates from RBI]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7401&amp;type=atom" />
	<updated>2022-06-24T09:16:58Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7401</id>
		<entry>
			<title type="html"><![CDATA[Re: Inidan Forex Rates from RBI]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41210#p41210" />
			<content type="html"><![CDATA[<p>How do you even use these links? I&#039;m new to this, and so far, these topics don&#039;t make sense to me. I would like to learn more about it.</p>]]></content>
			<author>
				<name><![CDATA[Labadung]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=46705</uri>
			</author>
			<updated>2022-06-24T09:16:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41210#p41210</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inidan Forex Rates from RBI]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31511#p31511" />
			<content type="html"><![CDATA[<p>Adding following 2 Code Components in gl/includes/db/gl_db_rates.inc Worked</p><p>at Line 163<br /></p><div class="codebox"><pre><code>elseif ($provider == &#039;CCA&#039;) //free.currencyconverterapi.com
    {
        $filename = &quot;/api/v5/convert?q={$curr_b}_{$curr_a}&amp;compact=y&quot;;
        $site = &quot;free.currencyconverterapi.com&quot;;
        $proto = &#039;https://&#039;;

    }</code></pre></div><p>and at Line 240</p><div class="codebox"><pre><code>    elseif ($provider == &#039;CCA&#039;)
    {
        $rates = json_decode($contents, true);
        $val = $rates[$curr_b.&#039;_&#039;.$curr_a][&#039;val&#039;];
      }</code></pre></div><p>and It works for all currencies without fail</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2018-04-24T18:11:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31511#p31511</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inidan Forex Rates from RBI]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31495#p31495" />
			<content type="html"><![CDATA[<p>@boxygen: the json output can be parsed into an array and then manipulated.</p><p>If some currency pairs are one way only quotients exceeding 4 digits of zeroes in the decimal places then an intermediate exchange rate can be used in the division in reverse.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-04-23T14:45:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31495#p31495</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inidan Forex Rates from RBI]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31489#p31489" />
			<content type="html"><![CDATA[<p>I have not tested the code. But it might work for you.</p><div class="codebox"><pre><code>$url = &#039;https://free.currencyconverterapi.com/api/v5/convert?q=PHP_PKR&amp;compact=y;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([]));
$response = curl_exec($ch); 

$res = json_decode($response); 

print_r($res); 

echo $res[&#039;PHP_PKR&#039;]-&gt;val; //this one i am not sure. it may be two dimensional array. So check with it by using print_r</code></pre></div>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2018-04-23T13:25:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31489#p31489</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inidan Forex Rates from RBI]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31487#p31487" />
			<content type="html"><![CDATA[<p>https://free.currencyconverterapi.com/api/v5/convert?q=PHP_PKR&amp;compact=y</p><p>This Gives Results. Can anyone suggest the Code for this</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2018-04-23T12:32:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31487#p31487</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inidan Forex Rates from RBI]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31486#p31486" />
			<content type="html"><![CDATA[<p>Is there any solution for PKR as base currency?</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2018-04-23T12:24:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31486#p31486</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Inidan Forex Rates from RBI]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31121#p31121" />
			<content type="html"><![CDATA[<p>@joe: Kindly add RBI into the list of forex providers as appropriate using the list from <a href="https://github.com/apmuthu/phpprojects/commit/123e15014e500cf62dcccd775a321b2a3ceeaa14">my function</a>.</p><p>At the moment, YAHOO does not provide Forex for FA.<br /><strong>Link:</strong> http://203.84.220.151/d/quotes.csv?s=INRLKR=X&amp;f=sl1d1t1ba&amp;e=.csv</p><p>ECB provides Forex rates for:<br /></p><div class="codebox"><pre><code>AUD
BGN
BRL
CAD
CHF
CNY
CZK
DKK
GBP
HKD
HRK
HUF
IDR
ILS
INR
ISK
JPY
KRW
MXN
MYR
NOK
NZD
PHP
PLN
RON
RUB
SEK
SGD
THB
TRY
USD
ZAR</code></pre></div><p><strong>Link:</strong> http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml</p><p>GOOGLE works for some currencies and the list of valid currencies differs between access locations.<br /><strong>Link:</strong> http://finance.google.com/finance/converter?a=1&amp;from=LKR&amp;to=INR</p><p>BLOOMBERG has issues with some currencies like LKR.<br /></p><div class="quotebox"><blockquote><p>https://www.bloomberg.com/quote/LKRINR:CUR</p><p>The search for <strong>LKRINR:CUR</strong> produced no matches. Try the symbol search.</p><p>Many symbols available on the Bloomberg Professional Service are not available on Bloomberg.com. To learn more about the Bloomberg Professional Service...</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-03-15T17:14:39Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31121#p31121</id>
		</entry>
</feed>
