Find top X S&P500 companies
- signalworks
- Posts: 65
- Joined: 06 Oct 2013
- Location: Germany.Solingen
- Has thanked: 23 times
- Been thanked: 2 times
- Contact:
Find top X S&P500 companies
I would like to identify the top 10 S&P500 companies (by market capitalization) and trade them by script. Is it possible to select according to the market capitalization criterion? If yes, would it be possible to access it by code to trade a change in top 10 composition? (e.g. one share out, the new one in the portfolio). Thanks!
- TJ
- Posts: 7744
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2224 times
Re: Find top X S&P500 companies
Who is your dataprovider?
Do you know if your dataprovider supplies such a piece of information in a data field?
Do you know if your dataprovider supplies such a piece of information in a data field?
- signalworks
- Posts: 65
- Joined: 06 Oct 2013
- Location: Germany.Solingen
- Has thanked: 23 times
- Been thanked: 2 times
- Contact:
Re: Find top X S&P500 companies
Hello TJ,
I use the TWS coupled with MC. Only which field and where is this possibly in MC?
Thanks!
I use the TWS coupled with MC. Only which field and where is this possibly in MC?
Thanks!
- signalworks
- Posts: 65
- Joined: 06 Oct 2013
- Location: Germany.Solingen
- Has thanked: 23 times
- Been thanked: 2 times
- Contact:
- rrams
- Posts: 128
- Joined: 10 Feb 2011
- Location: USA
- Has thanked: 7 times
- Been thanked: 70 times
- Contact:
Re: Find top X S&P500 companies
Hello,
Unfortunately, Interactive Brokers does not supply lists of stock symbols by exchange or index. You can download this information from several other sources such as https://www.barchart.com/stocks/indices ... erDir=desc. After you import the symbol list into QuoteManager, you could programmatically parse the csv file for changes to the market cap. It is not going to change often.
Unfortunately, Interactive Brokers does not supply lists of stock symbols by exchange or index. You can download this information from several other sources such as https://www.barchart.com/stocks/indices ... erDir=desc. After you import the symbol list into QuoteManager, you could programmatically parse the csv file for changes to the market cap. It is not going to change often.