You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**code*: the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) three letters codee.
41
-
**twoletterscode*: two letter crg.
27
+
**code*: the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) three letters code.
28
+
**twoletterscode*: two letter code.
42
29
**default_country*: the default [ISO 3166-1 alpha_2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code for the currency.
43
30
**isonumber*: the ISO 4217 number.
44
31
**name*: the name of the currency.
45
32
**order*: default ordering in currency pairs (more of this below).
46
33
**rounding*: number of decimal places
47
34
48
-
+++
49
-
50
35
## Currency Crosses
51
36
37
+
You can create currency pairs by using the `currency_pair` function:
52
38
53
-
You can create currency pairs by using the ``currency_pair`` functn::
54
-
55
-
```{code-cell} ipython3
39
+
```python
56
40
c = ccy.currency_pair("eurusd")
57
41
c
58
42
```
59
43
60
-
```{code-cell} ipython3
44
+
```python
61
45
c.mkt()
62
46
```
63
47
64
-
```{code-cell} ipython3
48
+
```python
65
49
c = ccy.currency_pair("chfusd")
66
-
c
67
-
```
68
-
69
-
```{code-cell} ipython3
70
50
c.mkt() # market convention pair
71
51
```
72
52
73
53
## cross & crossover
74
54
75
55
Some shortcuts:
76
56
77
-
```{code-cell} ipython3
57
+
```python
78
58
ccy.cross("aud")
79
59
```
80
60
81
-
```{code-cell} ipython3
61
+
```python
82
62
ccy.crossover('eur')
83
63
```
84
64
85
-
```{code-cell} ipython3
65
+
```python
86
66
ccy.crossover('chf')
87
67
```
88
68
89
-
```{code-cell} ipython3
69
+
```python
90
70
ccy.crossover('aud')
91
71
```
92
72
93
73
Note, the Swiss franc cross is represented as 'USD/CHF', while the Aussie Dollar and Euro crosses are represented with the USD as denominator. This is the market convention which is handled by the order property of a currency object.
94
74
95
-
+++
96
-
97
75
## Eurozone
98
76
99
77
The euro area, commonly called the eurozone (EZ), is a currency union of 20 member states of the European Union (EU) that have adopted the euro (€) as their primary currency and sole legal tender, and have thus fully implemented EMU policies.
0 commit comments