<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>currency Archives - Tech Antidote</title>
	<atom:link href="https://techantidote.com/tag/currency/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>‎ &#124; LINUX &#124; Tech &#124; Security &#124;</description>
	<lastBuildDate>Sun, 25 Mar 2018 14:14:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>

<image>
	<url>https://techantidote.com/wp-content/uploads/2016/02/cropped-google-plus-profile-picture-32x32.png</url>
	<title>currency Archives - Tech Antidote</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">106369530</site>	<item>
		<title>How to get real time currency exchange rates in your Linux terminal</title>
		<link>https://techantidote.com/how-to-get-real-time-currency-exchange-rates-in-your-linux-terminal/</link>
					<comments>https://techantidote.com/how-to-get-real-time-currency-exchange-rates-in-your-linux-terminal/#comments</comments>
		
		<dc:creator><![CDATA[]]></dc:creator>
		<pubDate>Sun, 25 Mar 2018 14:12:53 +0000</pubDate>
				<category><![CDATA[Linux / Redhat]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[currency]]></category>
		<category><![CDATA[exchange rates]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[openexchangerates]]></category>
		<guid isPermaLink="false">http://techantidote.com/?p=2539</guid>

					<description><![CDATA[<p>This a tutorial on how to get real time currency exchange rates directly from your Linux terminal (+ lots of screenshots). Requirements: -A computer (  *facepalm* 😛 ) -Any Linux/Windows machine with curl installed. -Free account with openexchangerates.org We will be using the &#8220;curl&#8221; utility to perform the API requests which usually comes pre-installed in &#8230; <a href="https://techantidote.com/how-to-get-real-time-currency-exchange-rates-in-your-linux-terminal/" class="more-link">Continue reading <span class="screen-reader-text">How to get real time currency exchange rates in your Linux terminal</span> <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://techantidote.com/how-to-get-real-time-currency-exchange-rates-in-your-linux-terminal/">How to get real time currency exchange rates in your Linux terminal</a> appeared first on <a href="https://techantidote.com">Tech Antidote</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This a tutorial on how to get real time currency exchange rates directly from your Linux terminal (+ lots of screenshots).</p>
<p><strong><span style="text-decoration: underline; color: #3366ff;">Requirements:</span></strong></p>
<p>-A computer (  *facepalm* <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f61b.png" alt="😛" class="wp-smiley" style="height: 1em; max-height: 1em;" /> )<br />
-Any Linux/Windows machine with curl installed.<br />
-Free account with openexchangerates.org</p>
<p>We will be using the &#8220;curl&#8221; utility to perform the API requests which usually comes pre-installed in most Linux systems.</p>
<p>In case, yours does not have it installed, you can install it using the following:</p>
<p>[You can run &#8220;<strong>apt install curl</strong>&#8221; for Ubuntu based systems, or &#8220;<strong>yum install curl</strong>&#8221; for RHEL/CentOS/Fedora based systems or &#8220;<strong>dnf install curl</strong>&#8221; for newer Fedora systems.]</p>
<p><span style="text-decoration: underline;"><strong><span style="color: #3366ff; text-decoration: underline;">Step 1</span></strong></span><b>: </b>Sign up for a free account in openexchange. You can use the below link:</p>
<p><a href="https://openexchangerates.org/signup/free" target="_blank" rel="noopener">https://openexchangerates.org/signup/free</a></p>
<p><img fetchpriority="high" decoding="async" data-attachment-id="2544" data-permalink="https://techantidote.com/how-to-get-real-time-currency-exchange-rates-in-your-linux-terminal/choose-free-plan/" data-orig-file="https://techantidote.com/wp-content/uploads/2018/03/choose-free-plan.png" data-orig-size="1187,279" data-comments-opened="1" data-image-title="Create free account for openexchangerates" data-image-description="" data-image-caption="" data-large-file="https://techantidote.com/wp-content/uploads/2018/03/choose-free-plan-1024x241.png" class="alignnone size-full wp-image-2544" src="http://techantidote.com/wp-content/uploads/2018/03/choose-free-plan.png" alt="" width="1187" height="279" srcset="https://techantidote.com/wp-content/uploads/2018/03/choose-free-plan.png 1187w, https://techantidote.com/wp-content/uploads/2018/03/choose-free-plan-300x71.png 300w, https://techantidote.com/wp-content/uploads/2018/03/choose-free-plan-768x181.png 768w, https://techantidote.com/wp-content/uploads/2018/03/choose-free-plan-1024x241.png 1024w" sizes="(max-width: 1187px) 100vw, 1187px" /></p>
<p>I would suggest to create an account with a new password that you have never used before.</p>
<p><b>[Note</b>: The free account has restrictions but should be sufficient to get latest conversion rates with base currency set as USD. With the free account we cannot change the base currency. This means with the free account you can translate 1USD to any other currency. I will create a different tutorial describing another method to get ]</p>
<p><span style="color: #3366ff;"><b><span style="text-decoration: underline;">Step 2</span>:</b> <span style="color: #000000;">Get your APP ID</span></span></p>
<p>-Once you sign up for the account, you would receive an email with a verification email which will have your “APP ID”. Below is a screenshot:</p>
<p><img decoding="async" data-attachment-id="2545" data-permalink="https://techantidote.com/how-to-get-real-time-currency-exchange-rates-in-your-linux-terminal/get-api-key/" data-orig-file="https://techantidote.com/wp-content/uploads/2018/03/get-api-key.png" data-orig-size="1113,421" data-comments-opened="1" data-image-title="get-api-key" data-image-description="" data-image-caption="" data-large-file="https://techantidote.com/wp-content/uploads/2018/03/get-api-key-1024x387.png" class="alignnone size-full wp-image-2545" src="http://techantidote.com/wp-content/uploads/2018/03/get-api-key.png" alt="APP ID for currency conversion" width="1113" height="421" srcset="https://techantidote.com/wp-content/uploads/2018/03/get-api-key.png 1113w, https://techantidote.com/wp-content/uploads/2018/03/get-api-key-300x113.png 300w, https://techantidote.com/wp-content/uploads/2018/03/get-api-key-768x291.png 768w, https://techantidote.com/wp-content/uploads/2018/03/get-api-key-1024x387.png 1024w" sizes="(max-width: 1113px) 100vw, 1113px" /></p>
<p><b>You would need to get this ID when performing the API call.</b></p>
<p>-Alternatively, once you have signed up you get your API key once you login to your account. Below is a screenshot:</p>
<p><img decoding="async" data-attachment-id="2546" data-permalink="https://techantidote.com/how-to-get-real-time-currency-exchange-rates-in-your-linux-terminal/app-id-from-account/" data-orig-file="https://techantidote.com/wp-content/uploads/2018/03/app-id-from-account.png" data-orig-size="1690,406" data-comments-opened="1" data-image-title="app-id-from-account" data-image-description="" data-image-caption="" data-large-file="https://techantidote.com/wp-content/uploads/2018/03/app-id-from-account-1024x246.png" class="alignnone wp-image-2546 size-full" src="http://techantidote.com/wp-content/uploads/2018/03/app-id-from-account.png" alt="API ID / API key from account to be used for getting currency exchange rates" width="1690" height="406" srcset="https://techantidote.com/wp-content/uploads/2018/03/app-id-from-account.png 1690w, https://techantidote.com/wp-content/uploads/2018/03/app-id-from-account-300x72.png 300w, https://techantidote.com/wp-content/uploads/2018/03/app-id-from-account-768x185.png 768w, https://techantidote.com/wp-content/uploads/2018/03/app-id-from-account-1024x246.png 1024w" sizes="(max-width: 1690px) 100vw, 1690px" /></p>
<p><span style="color: #3366ff;"><strong><span style="text-decoration: underline;">Step 3</span>:</strong><span style="color: #000000;"> Get exchange rates:</span></span></p>
<p>-Open your terminal and run the following command:</p>
<blockquote><p><strong>curl -X GET https://openexchangerates.org/api/latest.json?app_id=<span style="color: #ff0000;">enteryourAPIKEYhere</span></strong></p></blockquote>
<p>Enter your app ID after &#8220;=&#8221;. For example, if your APP ID is 1234, them you would run the following:</p>
<blockquote><p><strong>curl -X GET https://openexchangerates.org/api/latest.json?app_id=<span style="color: #ff0000;">1234</span></strong></p></blockquote>
<p>Below is a sample output which displays the different currencies and its conversion values.</p>
<p><img loading="lazy" decoding="async" data-attachment-id="2547" data-permalink="https://techantidote.com/how-to-get-real-time-currency-exchange-rates-in-your-linux-terminal/curl-output/" data-orig-file="https://techantidote.com/wp-content/uploads/2018/03/curl-output.png" data-orig-size="932,577" data-comments-opened="1" data-image-title="curl output" data-image-description="" data-image-caption="" data-large-file="https://techantidote.com/wp-content/uploads/2018/03/curl-output.png" class="alignnone wp-image-2547 size-full" src="http://techantidote.com/wp-content/uploads/2018/03/curl-output.png" alt="currency exchange rates in Linux terminal using API" width="932" height="577" srcset="https://techantidote.com/wp-content/uploads/2018/03/curl-output.png 932w, https://techantidote.com/wp-content/uploads/2018/03/curl-output-300x186.png 300w, https://techantidote.com/wp-content/uploads/2018/03/curl-output-768x475.png 768w" sizes="auto, (max-width: 932px) 100vw, 932px" /></p>
<p>You would notice the output is in JSON format which has values in keypairs. (For example: the &#8220;currency name&#8221;:  &#8220;value&#8221;.)</p>
<p>The data that is pulled is in realtime and it also displays the &#8220;timestamp&#8221; for which the currency converstions are in linux EPOC time.</p>
<p><span style="text-decoration: underline;"><span style="color: #3366ff; text-decoration: underline;"><strong>Additional Information:</strong></span></span></p>
<p>To know the current EPOC time in your system, you can command &#8220;<strong>date +%s</strong>&#8221; in your terminal. This is the number of seconds since 1970-01-01 00:00:00 UTC.</p>
<p>For simplicity, If you are looking to convert USD to a particular currency, you can simply grep the output with the currency you need to convert to.</p>
<p><strong>For example</strong>: If you convert 1 USD to INR, you can simply grep the currency name to filter out the output.</p>
<blockquote><p><strong>curl -s -X GET https://openexchangerates.org/api/latest.json?app_id=<span style="color: #000000;">1234</span></strong> | <strong>grep <span style="color: #ff0000;">INR</span></strong></p></blockquote>
<p>Below is a screenshot of the outputs.</p>
<p><img loading="lazy" decoding="async" data-attachment-id="2553" data-permalink="https://techantidote.com/how-to-get-real-time-currency-exchange-rates-in-your-linux-terminal/filtered-exchange-rates/" data-orig-file="https://techantidote.com/wp-content/uploads/2018/03/Filtered-exchange-rates.png" data-orig-size="1061,82" data-comments-opened="1" data-image-title="Filtered exchange rates" data-image-description="" data-image-caption="" data-large-file="https://techantidote.com/wp-content/uploads/2018/03/Filtered-exchange-rates-1024x79.png" class="alignnone wp-image-2553 size-full" src="http://techantidote.com/wp-content/uploads/2018/03/Filtered-exchange-rates.png" alt="Output for filtered currency rates in Linux terminal. USD to INR and USD CAD currency exchange rates example outputs." width="1061" height="82" srcset="https://techantidote.com/wp-content/uploads/2018/03/Filtered-exchange-rates.png 1061w, https://techantidote.com/wp-content/uploads/2018/03/Filtered-exchange-rates-300x23.png 300w, https://techantidote.com/wp-content/uploads/2018/03/Filtered-exchange-rates-768x59.png 768w, https://techantidote.com/wp-content/uploads/2018/03/Filtered-exchange-rates-1024x79.png 1024w" sizes="auto, (max-width: 1061px) 100vw, 1061px" /></p>
<p>&nbsp;</p>
<p><span style="color: #3366ff;"><strong>Thats it folks!</strong> </span><span style="color: #3366ff;"><strong>Hope this helps! If you liked this tutorial, leave a comment down below and follow to get future updates ! <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></strong></span></p>
<p>The post <a href="https://techantidote.com/how-to-get-real-time-currency-exchange-rates-in-your-linux-terminal/">How to get real time currency exchange rates in your Linux terminal</a> appeared first on <a href="https://techantidote.com">Tech Antidote</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techantidote.com/how-to-get-real-time-currency-exchange-rates-in-your-linux-terminal/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2539</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: techantidote.com @ 2026-10-23 02:42:07 by W3 Total Cache
-->