Skip to content

Commit e0e5427

Browse files
authored
Add Vilnius stock exchange (#124)
1 parent a9d885c commit e0e5427

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ http://127.0.0.1:8000/api/v1/openapi.json
7575
| Chicago Mercantile Exchange | CMES | 🇺🇸 USA | https://www.cmegroup.com |
7676
| ICE US | IEPA | 🇺🇸 USA | https://www.theice.com/index |
7777
| Toronto Stock Exchange | XTSE | 🇨🇦 Canada | https://www.tsx.com |
78-
| B3 S.A. - Brasil Bolsa Balcao | BVMF | 🇧🇷 Brazil | https://www.b3.com.br/en_us |
7978
| London Stock Exchange | XLON | 🏴󠁧󠁢󠁥󠁮󠁧󠁿 England | https://www.londonstockexchange.com/home/homepage.htm |
8079
| Euronext Amsterdam | XAMS | 🇳🇱 Netherlands | https://www.euronext.com/en/regulation/amsterdam |
8180
| Euronext Brussels | XBRU | 🇧🇪 Belgium | https://www.euronext.com/en/regulation/brussels |
@@ -88,8 +87,6 @@ http://127.0.0.1:8000/api/v1/openapi.json
8887
| Hamburg Stock Exchange | XHAM | 🇩🇪 Germany | https://www.boerse-hamburg.de |
8988
| Duesseldorf Stock Exchange | XDUS | 🇩🇪 Germany | https://www.boerse-duesseldorf.de |
9089
| SIX Swiss Exchange | XSWX | 🇨🇭 Switzerland | https://www.six-group.com/exchanges/index.html |
91-
| Tokyo Stock Exchange | XTKS | 🇯🇵 Japan | https://www.jpx.co.jp/english |
92-
| Austrialian Securities Exchange | XASX | 🇦🇺 Australia | https://www.asx.com.au |
9390
| Bolsa de Madrid | XMAD | 🇪🇸 Spain | https://www.bolsamadrid.es/ing/aspx/Portada/Portada.aspx |
9491
| Borsa Italiana | XMIL | 🇮🇹 Italy | https://www.borsaitaliana.it/homepage/homepage.en.htm |
9592
| New Zealand Exchange | XNZE | 🇳🇿 New Zealand | https://www.nzx.com |
@@ -100,10 +97,12 @@ http://127.0.0.1:8000/api/v1/openapi.json
10097
| Oslo Stock Exchange | XOSL | 🇳🇴 Norway | https://www.oslobors.no/ob_eng |
10198
| Irish Stock Exchange | XDUB | 🇮🇪 Ireland | https://www.euronext.com/en/markets/dublin |
10299
| Bombay Stock Exchange | XBOM | 🇮🇳 India | https://www.bseindia.com |
100+
| Austrialian Securities Exchange | XASX | 🇦🇺 Australia | https://www.asx.com.au |
103101
| Singapore Exchange | XSES | 🇸🇬 Singapore | https://www.sgx.com |
104102
| Shanghai Stock Exchange | XSHG | 🇨🇳 China | https://english.sse.com.cn |
105103
| Hong Kong Stock Exchange | XHKG | 🇭🇰 Hong Kong | https://www.hkex.com.hk/?sc_lang=en |
106104
| Taiwan Stock Exchange Corp. | XTAI | 🇹🇼 Taiwan | https://www.twse.com.tw/en |
105+
| Tokyo Stock Exchange | XTKS | 🇯🇵 Japan | https://www.jpx.co.jp/english |
107106
| Korea Exchange | XKRX | 🇰🇷 South Korea | https://global.krx.co.kr |
108107
| Malaysia Stock Exchange | XKLS | 🇲🇾 Malaysia | https://www.bursamalaysia.com |
109108
| Philippine Stock Exchange | XPHS | 🇵🇭 Philippines | https://www.pse.com.ph/stockMarket/home.html |
@@ -112,6 +111,7 @@ http://127.0.0.1:8000/api/v1/openapi.json
112111
| Iceland Stock Exchange | XICE | 🇮🇸 Iceland | https://www.nasdaqomxnordic.com |
113112
| Tallinn Stock Exchange | XTAL | 🇪🇪 Estonia | https://nasdaqbaltic.com |
114113
| Riga Stock Exchange | XRIS | 🇱🇻 Latvia | https://nasdaqbaltic.com |
114+
| Vilnius Stock Exchange | XLIT | 🇱🇹 Lithuania | https://nasdaqbaltic.com |
115115
| Poland Stock Exchange | XWAR | 🇵🇱 Poland | https://www.gpw.pl |
116116
| Prague Stock Exchange | XPRA | 🇨🇿 Czech Republic | https://www.pse.cz/en |
117117
| Bucharest Stock Exchange | XBSE | 🇷🇴 Romania | https://www.bvb.ro |
@@ -121,6 +121,7 @@ http://127.0.0.1:8000/api/v1/openapi.json
121121
| Athens Stock Exchange | ASEX | 🇬🇷 Greece | https://www.athexgroup.gr |
122122
| Istanbul Stock Exchange | XIST | 🇹🇷 Turkey | https://www.borsaistanbul.com/en |
123123
| Tel Aviv Stock Exchange | XTAE | 🇮🇱 Israel | https://www.tase.co.il/Eng/Pages/Homepage.aspx |
124+
| B3 S.A. - Brasil Bolsa Balcao | BVMF | 🇧🇷 Brazil | https://www.b3.com.br/en_us |
124125
| Santiago Stock Exchange | XSGO | 🇨🇱 Chile | https://inter.bolsadesantiago.com/sitios/en/Paginas/home.aspx |
125126
| Colombia Securities Exchange | XBOG | 🇨🇴 Colombia | https://www.bvc.com.co/nueva/index_en.html |
126127
| Mexican Stock Exchange | XMEX | 🇲🇽 Mexico | https://www.bmv.com.mx |

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()) == 59
12+
assert len(response.json()) == 60
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()) == 59
36+
assert len(response.json()) == 60
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()) == 59
59+
assert len(response.json()) == 60
6060

6161

6262
def test_hours_one_mic(client):

trading_calendar/exchanges.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def load(self):
509509
},
510510
'XRIS' : {
511511
'mic' : 'XRIS',
512-
'name' : 'Riga stock exchange',
512+
'name' : 'Riga Stock Exchange',
513513
'lei' : '549300YRBS4XYCVIH803',
514514
'url' : 'https://nasdaqbaltic.com',
515515
'city' : 'Riga',
@@ -521,7 +521,22 @@ def load(self):
521521
'currency_code' : 'EUR',
522522
'currency_symbol' : '€',
523523
'dst_transitions' : 'true',
524-
},
524+
},
525+
'XLIT' : {
526+
'mic' : 'XLIT',
527+
'name' : 'Vilnius Stock Exchange',
528+
'lei' : '549300JGFH6L45DLE408',
529+
'url' : 'https://nasdaqbaltic.com',
530+
'city' : 'Vilnius',
531+
'country' : 'Lithuania',
532+
'country_code' : 'LT',
533+
'region' : 'Europe',
534+
'flag' : '🇱🇹',
535+
'currency_name' : "Euro",
536+
'currency_code' : 'EUR',
537+
'currency_symbol' : '€',
538+
'dst_transitions' : 'true',
539+
},
525540
'XMOS' : {
526541
'mic' : 'XMOS',
527542
'name' : 'Moscow Exchange',

0 commit comments

Comments
 (0)