Skip to content

Commit 94a58be

Browse files
committed
Added 5 exchanges to YahooFinance.
1 parent 5e8a150 commit 94a58be

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

src/main/java/org/ikankechil/eod3/sources/YahooFinance.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* YahooFinance.java v0.8 15 December 2013 8:28:07 PM
33
*
4-
* Copyright © 2013-2016 Daniel Kuan. All rights reserved.
4+
* Copyright 2013-2016 Daniel Kuan. All rights reserved.
55
*/
66
package org.ikankechil.eod3.sources;
77

@@ -69,13 +69,18 @@ public class YahooFinance extends Source {
6969
private static final String CO = ".CO";
7070
private static final String IC = ".IC";
7171
private static final String ME = ".ME";
72+
private static final String RG = ".RG";
73+
private static final String TL = ".TL";
74+
private static final String VS = ".VS";
7275
private static final String PR = ".PR";
7376
private static final String TA = ".TA";
7477
private static final String CA = ".CA";
78+
private static final String QA = ".QA";
7579
private static final String SA = ".SA";
7680
private static final String BA = ".BA";
7781
private static final String SN = ".SN";
7882
private static final String MX = ".MX";
83+
private static final String CR = ".CR";
7984

8085
private static final Logger logger = LoggerFactory.getLogger(YahooFinance.class);
8186

@@ -108,6 +113,9 @@ public YahooFinance() {
108113
exchanges.put(KFB, CO);
109114
exchanges.put(ICEX, IC);
110115
exchanges.put(MOEX, ME);
116+
exchanges.put(RSE, RG);
117+
exchanges.put(TALSE, TL);
118+
exchanges.put(VSE, VS);
111119
exchanges.put(PX, PR);
112120
exchanges.put(SGX, SI);
113121
exchanges.put(HKSE, HK);
@@ -124,10 +132,12 @@ public YahooFinance() {
124132
exchanges.put(NZX, NZ);
125133
exchanges.put(TASE, TA);
126134
exchanges.put(EGX, CA);
135+
exchanges.put(QSE, QA);
127136
exchanges.put(BOVESPA, SA);
128137
exchanges.put(BCBA, BA);
129138
exchanges.put(BCS, SN);
130139
exchanges.put(BMV, MX);
140+
exchanges.put(BVC, CR);
131141

132142
// build URL using Yahoo! Finance API
133143
// http://ichart.finance.yahoo.com/table.csv?s=<Stock Symbol>

src/test/java/org/ikankechil/eod3/sources/YahooFinanceTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* YahooFinanceTest.java v0.7 4 March 2014 5:59:06 PM
33
*
4-
* Copyright © 2013-2016 Daniel Kuan. All rights reserved.
4+
* Copyright 2013-2016 Daniel Kuan. All rights reserved.
55
*/
66
package org.ikankechil.eod3.sources;
77

@@ -67,6 +67,9 @@ public YahooFinanceTest() {
6767
exchanges.put(KFB, ".CO");
6868
exchanges.put(ICEX, ".IC");
6969
exchanges.put(MOEX, ".ME");
70+
exchanges.put(RSE, ".RG");
71+
exchanges.put(TALSE, ".TL");
72+
exchanges.put(VSE, ".VS");
7073
exchanges.put(PX, ".PR");
7174
exchanges.put(SGX, ".SI");
7275
exchanges.put(HKSE, ".HK");
@@ -83,10 +86,12 @@ public YahooFinanceTest() {
8386
exchanges.put(NZX, ".NZ");
8487
exchanges.put(TASE, ".TA");
8588
exchanges.put(EGX, ".CA");
89+
exchanges.put(QSE, ".QA");
8690
exchanges.put(BOVESPA, ".SA");
8791
exchanges.put(BCBA, ".BA");
8892
exchanges.put(BCS, ".SN");
8993
exchanges.put(BMV, ".MX");
94+
exchanges.put(BVC, ".CR");
9095

9196
originalLines.addAll(Arrays.asList("Date,Open,High,Low,Close,Volume,Adj Close",
9297
"2015-12-04,34.11,35.03,34.00,34.94,24484400,34.94",

0 commit comments

Comments
 (0)