Yahoo Finance Api - NYSE/AMEX listed

Discussion in 'App Development' started by gaihosa, May 10, 2016.

  1. gaihosa

    gaihosa

    I have found that using the yahoo chart api via a http request (either in code, a web browser or using wget) it will not accept stock symbols from the NYSE/AMEX listing that are Preferred, Preferred Class “A”*, Class “A”*, etc. Not sure where else to post this. This link shows the Security Categorization and Suffixes of hich I have tried adding all the the symbol with no luck. http://www.nasdaqtrader.com/trader.aspx?id=CQSsymbolconvention

    These are the urls I have been trying to work with.

    http://chartapi.finance.yahoo.com/instrument/1.0/ABR/chartdata;type=quote;range=1y/csv

    http://ichart.finance.yahoo.com/table.csv?s=ABR&a=05&b=01&c=2015&d=05&e=01&f=2016&g=d&ignore=.csv

    ABR has four listings:


    ABR|ArborRealtyTrustCommonStock|NYSE-AMEX
    ABR$A|ArborRealtyTrustPreferredSeriesA|NYSE-AMEX
    ABR$B|ArborRealtyTrustCumulativeRedeemablePreferredSeriesB|NYSE-AMEX
    ABR$C|ArborRealtyTrustCumulativeRedeemablePreferredSeriesC|NYSE-AMEX

    Interesting enough, all work in the finance.yahoo.com website.

    I my code I am using C++ and Curl.
     
  2. Occam

    Occam

    The Yahoo symbology for preferred's for your examples is:

    ABR-PA
    ABR-PB
    ABR-PC

    As an aside, the Yahoo symbology does have the potential for ambiguity/inconsistency; but for these three cases, the symbology is unambiguous (within reason).

    If only everyone could have agreed on a uniform symbology 20 years ago, this mess would not exist. :rolleyes:
     
  3. gaihosa

    gaihosa