Skip to content

Commit ae8d170

Browse files
authored
Add Zagreb stock exchange (#134)
1 parent 77038d0 commit ae8d170

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ http://127.0.0.1:8000/api/v1/openapi.json
116116
| Poland Stock Exchange | XWAR | 🇵🇱 Poland | https://www.gpw.pl |
117117
| Prague Stock Exchange | XPRA | 🇨🇿 Czech Republic | https://www.pse.cz/en |
118118
| Bucharest Stock Exchange | XBSE | 🇷🇴 Romania | https://www.bvb.ro |
119+
| Zagreb Stock Exchange | XZAG | 🇭🇷 Croatia | https://www.zse.hr/en |
119120
| Budapest Stock Exchange | XBUD | 🇭🇺 Hungary | https://bse.hu |
120121
| Moscow Exchange | XMOS | 🇷🇺 Russia | https://www.moex.com/en |
121122
| Astana International Exchange | AIXK | 🇰🇿 Kazakhstan | https://www.aix.kz |

tests/test_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def test_api_version(client):
99
def test_markets_all(client):
1010
response = client.get("/api/v1/markets")
1111
assert response.status_code == 200
12-
assert len(response.json()) == 62
12+
assert len(response.json()) == 63
1313

1414

1515
def test_markets_one_mic(client):
@@ -33,7 +33,7 @@ def test_status_all(client):
3333
response = client.get("/api/v1/markets/status")
3434
assert response.status_code == 200
3535
print(response.json())
36-
assert len(response.json()) == 62
36+
assert len(response.json()) == 63
3737

3838

3939
def test_status_one_mic(client):
@@ -56,7 +56,7 @@ def test_status_bad_mic(client):
5656
def test_hours_all(client):
5757
response = client.get("/api/v1/markets/hours?start=2024-07-03&end=2024-07-03")
5858
assert response.status_code == 200
59-
assert len(response.json()) == 62
59+
assert len(response.json()) == 63
6060

6161

6262
def test_hours_one_mic(client):

trading_calendar/exchanges.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,23 @@ def load(self):
664664
'currency_code' : 'RON',
665665
'currency_symbol' : 'lei',
666666
'dst_transitions' : 'true',
667-
},
667+
},
668+
'XZAG' : {
669+
'mic' : 'XZAG',
670+
'name' : 'Zagreb Stock Exchange',
671+
'acronym' : None,
672+
'lei' : '7478000050A040C0D041',
673+
'url' : 'https://www.zse.hr/en',
674+
'city' : 'Zagreb',
675+
'country' : 'Croatia',
676+
'country_code' : 'HR',
677+
'region' : 'Europe',
678+
'flag' : '🇭🇷',
679+
'currency_name' : "Euro",
680+
'currency_code' : 'EUR',
681+
'currency_symbol' : '€',
682+
'dst_transitions' : 'true',
683+
},
668684
'ASEX' : {
669685
'mic' : 'ASEX',
670686
'name' : 'Athens Stock Exchange',

0 commit comments

Comments
 (0)