https://github.com/scripttiger/forex
A simple tool to quickly scrape and format current foreign exchange rates from Google. Provides an optional REST API to more easily integrate with tools such as the Microsoft Excel `QueryTables` function.
https://github.com/scripttiger/forex
foreign-exchange foreign-exchange-rates forex
Last synced: 5 months ago
JSON representation
A simple tool to quickly scrape and format current foreign exchange rates from Google. Provides an optional REST API to more easily integrate with tools such as the Microsoft Excel `QueryTables` function.
- Host: GitHub
- URL: https://github.com/scripttiger/forex
- Owner: ScriptTiger
- License: mit
- Created: 2023-08-01T08:09:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-15T03:41:14.000Z (about 1 year ago)
- Last Synced: 2025-01-15T05:54:07.419Z (about 1 year ago)
- Topics: foreign-exchange, foreign-exchange-rates, forex
- Language: Go
- Homepage: https://scripttiger.github.io/more/
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://docs.google.com/forms/d/e/1FAIpQLSfBEe5B_zo69OBk19l3hzvBmz3cOV6ol1ufjh0ER1q3-xd2Rg/viewform)
# forex
A simple tool to quickly scrape and format current foreign exchange rates from Google. Provides an optional REST API to more easily integrate with tools such as the Microsoft Excel `QueryTables` function.
Usage: `forex [options...]`
Argument | Description
--------------------------|-----------------------------------------------------------------------------------------------------
`[-base] ` | Base currency
`[-quote] ` | Quote currency
`-idecimal ` | Input decimal separator
`-ithousands `| Input thousands seperator
`-odecimal ` | Output decimal separator
`-othousands `| Output thousands seperator
`-rest ` | Start REST API on given socket
**This tool scrapes from a standard Google web search, and as such will get flagged as "unusual traffic" if it is used cyclically in rapid succession. The intent of this tool is for personal use only, to simply aid with certain one-off daily tasks, and should not be used in place of non-free Google API access.**
If `idecimal` and `ithousands` separators are not defined, a dot (".") will be assumed for decimal separators and a comma (",") will be assumed for thousands separators. If `odecimal` and `othousands` separators are not defined, a dot (".") will be used for decimal separators and no thousands separator will be used.
If `rest` API is defined, all other arguments are ignored.
# More About ScriptTiger
For more ScriptTiger scripts and goodies, check out ScriptTiger's GitHub Pages website:
https://scripttiger.github.io/