Skip to content

Commit ab0dd8a

Browse files
georgemac-labsbuchen
authored andcommitted
Feature: IBFlex extend exchange support
Add mappings for more exchanges to IBFlex importer
1 parent c9f0566 commit ab0dd8a

File tree

1 file changed

+62
-8
lines changed

1 file changed

+62
-8
lines changed

name.abuchen.portfolio/src/name/abuchen/portfolio/datatransfer/ibflex/IBFlexStatementExtractor.java

Lines changed: 62 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,68 @@ public String getLabel()
151151
*/
152152
private void initializeExchangeMappings()
153153
{
154-
exchanges.put("EBS", "SW");
155-
exchanges.put("LSE", "L"); // London Stock Exchange
156-
exchanges.put("SWX", "SW"); // Swiss Exchange (SWX)
157-
exchanges.put("TSE", "TO"); // TSX Venture
158-
exchanges.put("IBIS", "DE"); // XETRA
159-
exchanges.put("TGATE", "DE"); // TradeGate
160-
exchanges.put("SWB", "SG"); // Stuttgart Stock Exchange
161-
exchanges.put("FWB", "F"); // Frankfurt Stock Exchange
154+
// --- US & Major Markets – No Suffix ---
155+
// AMEX, ARCA, BATS, NASDAQ, NYSE
156+
157+
// --- Canada ---
158+
exchanges.put("TSE", "TO"); // Toronto Stock Exchange
159+
exchanges.put("VENTURE", "V"); // TSX Venture Exchange
160+
161+
// --- United Kingdom & Ireland ---
162+
exchanges.put("LSE", "L"); // London Stock Exchange
163+
exchanges.put("LSEIOB1", "IL"); // LSE International Order Book
164+
exchanges.put("ISED", "IR"); // Euronext Dublin (Irish Stock Exchange)
165+
166+
// --- Europe: Euronext Group ---
167+
exchanges.put("AEB", "AS"); // Euronext Amsterdam
168+
exchanges.put("ENEXT.BE", "BR"); // Euronext Brussels
169+
exchanges.put("BVL", "LS"); // Euronext Lisbon
170+
exchanges.put("SBF", "PA"); // Euronext Paris
171+
exchanges.put("BVME", "MI"); // Borsa Italiana (Milan)
172+
173+
// --- Europe: DACH (Germany, Austria, Switzerland) ---
174+
exchanges.put("IBIS", "DE"); // XETRA (Germany)
175+
exchanges.put("TGATE", "DE"); // TradeGate (Germany)
176+
exchanges.put("FWB", "F"); // Frankfurt Stock Exchange
177+
exchanges.put("SWB", "SG"); // Stuttgart Stock Exchange
178+
exchanges.put("EBS", "SW"); // SIX Swiss Exchange
179+
exchanges.put("SWX", "SW"); // SIX Swiss Exchange
180+
exchanges.put("VSE", "VI"); // Vienna Stock Exchange
181+
182+
// --- Europe: Nordic & Baltic ---
183+
exchanges.put("SFB", "ST"); // Nasdaq Stockholm
184+
exchanges.put("OSE", "OL"); // Oslo Stock Exchange
185+
exchanges.put("OMXNO", "OL"); // Nasdaq OMX Nordic (Usually maps to Oslo for Eq)
186+
exchanges.put("CPH", "CO"); // Nasdaq Copenhagen
187+
exchanges.put("HEX", "HE"); // Nasdaq Helsinki
188+
exchanges.put("N.RIGA", "RG"); // Nasdaq Riga
189+
exchanges.put("N.TALLINN", "TL");// Nasdaq Tallinn
190+
exchanges.put("N.VILNIUS", "VS");// Nasdaq Vilnius
191+
192+
// --- Europe: Other ---
193+
exchanges.put("BM", "MC"); // Bolsas y Mercados Españoles (Madrid)
194+
exchanges.put("WSE", "WA"); // Warsaw Stock Exchange
195+
exchanges.put("PRA", "PR"); // Prague Stock Exchange
196+
exchanges.put("BUX", "BD"); // Budapest Stock Exchange
197+
198+
// --- Asia: Greater China & Connect Programs ---
199+
exchanges.put("SEHK", "HK"); // Hong Kong Stock Exchange
200+
exchanges.put("SEHKNTL", "SS"); // Shanghai-HK Connect (Maps to Shanghai)
201+
exchanges.put("SEHKSTAR", "SS"); // Shanghai STAR Market (Maps to Shanghai)
202+
exchanges.put("SEHKSZSE", "SZ"); // Shenzhen-HK Connect (Maps to Shenzhen)
203+
exchanges.put("CHINEXT", "SZ"); // ChiNext (Maps to Shenzhen)
204+
exchanges.put("TWSE", "TW"); // Taiwan Stock Exchange
205+
206+
// --- Asia: Other ---
207+
exchanges.put("TSEJ", "T"); // Tokyo Stock Exchange
208+
exchanges.put("SGX", "SI"); // Singapore Exchange
209+
exchanges.put("NSE", "NS"); // National Stock Exchange of India
210+
211+
// --- Rest of World ---
212+
exchanges.put("ASX", "AX"); // Australian Securities Exchange
213+
exchanges.put("MEXI", "MX"); // Mexican Stock Exchange
214+
exchanges.put("BOVESPA", "SA"); // B3 (Brazil)
215+
exchanges.put("JSE", "JO"); // Johannesburg Stock Exchange (South Africa)
162216
}
163217

164218
/**

0 commit comments

Comments
 (0)