Library to fetch and parse realtime Forex quotes and convert currencies
Switch branches/tags
Nothing to show
Clone or download
Latest commit 8c80b25 Aug 8, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist Initial commit Sep 3, 2017
python_forex_quotes.egg-info Initial commit Sep 3, 2017
.gitignore Added main file to the root directroy and updated .gitignore May 25, 2018
ForexDataClient.py added py2 functionality back too. Aug 4, 2018
LICENSE.md Rename LICENSE to LICENSE.md Jan 20, 2018
README.md Update README.md Jan 20, 2018
example.py Update example.py Jan 14, 2018
setup.py Initial commit Sep 3, 2017

README.md

python_forex_quotes

python_forex_quotes is a Python Library for fetching realtime forex quotes

Table of Contents

Requirements

Installation

pip install python_forex_quotes

Usage

Instantiate the client

import python_forex_quotes

#You can get an API key for free at 1forge.com
client = python_forex_quotes.ForexDataClient('YOUR_API_KEY')

Get the list of available symbols:

import python_forex_quotes
client = python_forex_quotes.ForexDataClient('YOUR_API_KEY')

print client.getSymbols()

Get quotes for specified symbols:

import python_forex_quotes
client = python_forex_quotes.ForexDataClient('YOUR_API_KEY')

print client.getQuotes(['EURUSD', 'GBPJPY'])

Convert from one currency to another:

import python_forex_quotes
client = python_forex_quotes.ForexDataClient('YOUR_API_KEY')

print client.convert('EUR', 'USD', 100)

Check if the market is open:

import python_forex_quotes
client = python_forex_quotes.ForexDataClient('YOUR_API_KEY')

if client.marketIsOpen() == True:
    print "Market is open!"

Check your usage / quota limit:

import python_forex_quotes
client = python_forex_quotes.ForexDataClient('YOUR_API_KEY')

print client.quota()

Contributing

Thank you for considering contributing! Any issues, bug fixes, suggestions, improvements or help in any other way is always appreciated. Please feel free to open an issue or create a pull request.

Support and Contact

Please contact me at contact@1forge.com if you have any questions or requests.

License and Terms

This library is provided without warranty under the MIT license.