Wikidata:Property proposal/common exchange code
Jump to navigation
Jump to search
common exchange code
[edit]Originally proposed at Wikidata:Property proposal/Authority control
Withdrawn
Description | common code of a stock exchange, as used by Google and CrunchBase |
---|---|
Data type | External identifier |
Domain | stock exchange (Q11691) |
Allowed values | [A-Z]+ |
Example 1 | Nasdaq (Q82059) -> NASDAQ (eg see NASDAQ:BIDU) |
Example 2 | Nasdaq Stockholm AB (Q1019992) -> STO (eg see STO:THULE) |
Example 3 | London Stock Exchange (Q171240) -> LON, LSE (eg see LON:TAST, LSE:TAST) |
Example 4 | New York Stock Exchange (Q13677) -> NYSE (eg see NYSE:WLK) |
Example 5 | NYSE American (Q846626) -> NYSEMKT, AMEX (eg see ym-biosciences |
Example 6 | Toronto Stock Exchange (Q818723) -> TSX, TSE (eg see TSX:Y) |
Example 7 | TSX Venture Exchange (Q7671764) -> CVE (eg see CVE:WELL) |
Example 8 | Shenzhen Stock Exchange (Q517750) -> SHE (eg see SHE:300017) |
Source | could not find official source |
Planned use | link CB stock tickers to WD exchanges |
Number of IDs in source | 100 from CB |
Expected completeness | eventually complete (Q21873974) |
See also | Wikidata:Property_proposal/MIC |
Motivation
[edit]Notified participants of WikiProject Companies
Exchanges are known by various codes. Knowing their codes is crucial for linking company tickers to exchanges.
This proposal is for the "common" code used often (eg NYSE, NASDAQ, etc)
- I don't know an official source for these codes.
- They are used eg by Google and CrunchBase; the examples above are to Google ticker info
- Only in the case of NYSEMKT (AMEX) I couldn't find the Google code
- I would appreciate comment from someone who knows what codes are used on other sites, eg Yahoo Finance
- These codes are often but not always given as altLabels of stock exchange (Q11691): https://w.wiki/Bo6 returns 160 (whereas the exchanges are over 1000)
- It's important to avoid ambiguity which is present in altLabels, eg ASE is Athens Stock Exchange (Q755341) or Amman Stock Exchange (Q2122308), BSE is Bahrain Bourse (Q1972649) or Baku Stock Exchange (Q2480956), etc
- Most are uppercase (though CB uses lowercase), but eg Luxembourg Stock Exchange (Q74662) has only "LuxSE"
--Vladimir Alexiev (talk) 12:49, 10 November 2019 (UTC)
Discussion
[edit]Notified participants of WikiProject Companies
- @Vladimir Alexiev: Hi - in principle this seems like a good idea, but it's a little concerning that there's no standard source for this. Can you describe a scenario or two where you think this will be useful? It's the combination of exchange and stock ticker that is needed to create a link, so it would need to be some sort of external application I guess? ArthurPSmith (talk) 18:51, 18 November 2019 (UTC)
- CB for example has a combination of exchange code and stock ticker. To turn this to WD "exchange" statements, we need to map codes to exchanges --Vladimir Alexiev (talk) 23:37, 20 November 2019 (UTC)
- @Vladimir Alexiev: Sorry I'm not quite following. Could you maybe put together an example on test.wikidata or with Sandbox items and properties of what it is you would like to see and do with this? ArthurPSmith (talk) 00:00, 24 November 2019 (UTC)
- A couple of more concerns: 100 uses is on the rather low side for a property. Also it doesn't really qualify as an external identifier when there are multiple values for the same exchange (3 of your 8 examples); it should probably be string valued, especially as there's no useful formatter URL for these. I think the best approach here would probably be to use an existing property like short name (P1813) maybe with a qualifier to indicate it is used by CrunchBase, or pointing to an item for "common exchange code" if that's a standard name. ArthurPSmith (talk) 00:07, 24 November 2019 (UTC)
- Hi @ArthurPSmith: I would like to connect exchanges to their codes, so that I can make links from WD stock exchange (P414) to Google Finance and CrunchBase.
- Despite the presence of a standard (MIC market code (P7534)), it seems to be used by Refinitiv only, and every other financial info provider uses their own code. Eg for Shenzhen Stock Exchange (Q517750) ISO MIC is "XSHE", Google & CB use "SHE", and Yahoo uses "SZ".
- The ticker formatting URLs are also different, eg Wangsu Science & Technology (Q30944755) is listed at https://www.google.com/search?q=SHE%3A300017 and https://finance.yahoo.com/quote/300017.SZ
- "100 is too little": still, that can link about 40-50k public companies in CB to their exchange!
- As MIC market code (P7534) shows, there are about 1902 markets on 1085 exchanges. Google probably doesn't have codes about all these 1085 exchanges, but I believe it would have for at least 800. In time, we or other people will add them.
- About the modeling: given that each financial info provider uses his own exchange code, I think we should have one prop "exchange code" with qualifier "used by". MIC market code (P7534) is already created as a separate prop, but it's a standard, has over a thousand, so it deserves that special status.
- Cheers! --Vladimir Alexiev (talk) 17:45, 25 November 2019 (UTC)
- I think you can do all of the above with the existing property short name (P1813), except maybe we need a new "used by" qualifier"? Anyway, short name (P1813) seems designed for this sort of purpose. ArthurPSmith (talk) 20:07, 25 November 2019 (UTC)
- This would work, but let's see what others say --Vladimir Alexiev (talk) 11:30, 26 November 2019 (UTC)
- I think you can do all of the above with the existing property short name (P1813), except maybe we need a new "used by" qualifier"? Anyway, short name (P1813) seems designed for this sort of purpose. ArthurPSmith (talk) 20:07, 25 November 2019 (UTC)
- Using short name (P1813) looks sensible to me − Pintoch (talk) 11:45, 26 November 2019 (UTC)
- I think the short name (P1813) of 'Apple Inc.' should be 'Apple'. There are many cases where companies usually aren't called with their full name but with a short name like that and that's distinct from their exchange code like AAPL. Exchange codes seem like abbrevations that are something different then short names. ChristianKl ❪✉❫ 13:27, 26 November 2019 (UTC)
- There are different "short names" used for different purposes, it was never intended as a single-valued property, and if you look at the English aliases which include "acronym" and "abbreviation" those seem perfectly appropriate. In addition, in this case we are talking not about individual companies but about the EXCHANGES which are almost universally known by abbreviations like NYSE, AMEX, etc. ArthurPSmith (talk) 15:34, 27 November 2019 (UTC)
- I think the short name (P1813) of 'Apple Inc.' should be 'Apple'. There are many cases where companies usually aren't called with their full name but with a short name like that and that's distinct from their exchange code like AAPL. Exchange codes seem like abbrevations that are something different then short names. ChristianKl ❪✉❫ 13:27, 26 November 2019 (UTC)
- Let's use code (P3295) with qualifier used by (P1535):
- "code" is used for VIAF component props, eg: Union List of Artist Names ID (P245) has quality: VIAF component; code (P3295) "JPG"
- New York Stock Exchange (Q13677) code (P3295) "NYSE" used by (P1535) Google Finance (Q1198691), Crunchbase (Q10846831)
- London Stock Exchange (Q171240) code (P3295) "LON" used by (P1535) Google Finance (Q1198691), Crunchbase (Q10846831); code (P3295) "LSE" used by (P1535) Google Finance (Q1198691)
- Do you agree?
Unless others say otherwise, then I'm withdrawing this proposal --Vladimir Alexiev (talk) 11:56, 29 November 2019 (UTC)
- Using code (P3295) seems fine to me also. ArthurPSmith (talk) 18:21, 2 December 2019 (UTC)
Closing as withdrawn --99of9 (talk) 00:08, 15 January 2020 (UTC)