Latest version
Released: Photoline 19 50 – professional level image effects processor.
Python currencies
Project description
Usd/aud 1.401 +0.006 usd/cad 1.315 +0.001 usd/gbp 0.768 -0.003 usd/nzd 1.503 +0.002 aud/nzd 1.072 -0.004 usd/aud 1.401 +0.006 usd/cad 1.315 +0.001 usd/gbp 0.768 -0.
A python module for currencies. The module compiles a dictionary ofcurrency objects containing information useful in financial analysis.Not all currencies in the world are supported yet. You are welcome tojoin and add more.
- List of different currencies in the world. Table includes: currency code, country, currency, the name of the currency as well as symbol. The list also includes: bitcoin, gold, silver and etc. ISO 4217 Currency Codes.
- Solve your math problems using our free math solver with step-by-step solutions. Our math solver supports basic math, pre-algebra, algebra, trigonometry, calculus and more.
- Adds currency and many other things to help create an economy in minecraft Our records show that you have outstanding author rewards points. Please confirm your latest payment information and redeem your points balance via the Author Reward Store.
- AUDUSD: -2.1% (+2.1%). EURUSD: -3.8% (+3.8%). GBPUSD: -1.4% (+1.4%). NZDUSD: -3.5% (+3.5%). USDCAD: 2.6% USDCHF: 1.7% USDJPY: 3.9%. USD Strength = 19%. We invert positive or negative values when the USD is the quote of a pair, for base pairs the value remains unchanged.
Package: | |
---|---|
CI: | |
Dowloads: | https://pypi.org/project/ccy/ |
Source: | https://github.com/quantmind/ccy |
- Currency object
- Installation
Currency object
To use it:
a currency object has the following properties:
- code: the ISO 4217 code.
- twoletterscode: two letter code (can't remeber the ISO number). Very useful for financial data providers such as Bloomberg.
- default_country: the default ISO 3166-1 alpha-2 country code for the currency.
- isonumber: the ISO 4217 number.
- name: the name of the currency.
- order: default ordering in currency pairs (more of this below).
- rounding: number of decimal places
Currency Crosses
You can create currency pairs by using the currency_pair function:
Some shortcuts:
Note, the Swiss franc cross is represented as ‘USD/CHF', while the Aussie Dollarand Euro crosses are represented with the USD as denominator.This is the market convention which is handled by the order propertyof a currency object.
Country information
To use it:
Not all the country codes are standard ISO 3166-1 alpha-2.There is a function for adding extra pseudo-countries:
Set a new country with code ‘EU', currency ‘EUR' named ‘Eurozone'.This pseudo country is set in the library already.
Countries
Country information is obtained via the pytz package which is strictrequirement for ccy:
It knows about the 18 eurozone countries (European countries which share theeuro as common currency):
eurozone is tuple of country ISO codes:
Date and Periods
The module is shipped with a date module for manipulating time periods andconverting dates between different formats. The period function can be usedto create Period instances:
Installation
This library works for Python 2.6 and higher, including Python 3.In addition, it requires:
- pytz for Countries information.
- dateutils for date calculations
Install using pip:
or from source:
Project details
Release historyRelease notifications | RSS feed
1.2.0
1.1.0
1.0.0
0.7.0
0.6.1
0.6.0
0.5.1
0.5.0
0.4.1
0.4.0
Currencies 2 4 2 0 3
0.3.9
Currencies 2 4 2 0t
0.3.8
0.3.7
0.3.5
0.3.4
0.3.3
0.3.2 I39 1 6 2.
0.3
0.2
0.1.2 Oddworld abes oddysee remastered.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size ccy-1.2.0-py2.py3-none-any.whl (16.3 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes |
Filename, size ccy-1.2.0.tar.gz (31.8 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for ccy-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest |
---|---|
SHA256 | d1a9170e64bec84848e9d38c6482228fbfb2e7560ccb611546752250eeadede7 |
MD5 | 7f71c6bd31f0305f2d6a1ecb3159cd41 |
BLAKE2-256 | 76b7c7603ac6e61a65fb79f1236bdb77c192842f98277602b396b76f86452082 |
Hashes for ccy-1.2.0.tar.gz
Algorithm | Hash digest |
---|---|
SHA256 | 266204eef340f9b00a95cd10e4134b0116b313a6a2385641a77c784a29c8002d |
MD5 | b0c87067ff5f6e4f466c22d6c348223a |
BLAKE2-256 | 7f2c87047f154d1149a04b02cf3e1c73cad55f9ca141f19a2d8c921e60f91049 |