Announcement

Collapse
No announcement yet.

Help with Hooks1->XMLGetFundamentalData() and XDividend date

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with Hooks1->XMLGetFundamentalData() and XDividend date

    I am using the function XMLGetFundamentalData() but I am not able to get a return value for the XDividend date. Below I have added the list of items that should be returned as seen in the help file. #19 is the Dividend Date. I am not able to get a return value for anythning past #8 (ftfEPS, 8, Earnings per share). When I request #19 it returns only the 52 week high and low. When I request #225 (all) it returns #1 through #8. Do you have any advice for using this function to get the items past #8?


    ReturnValue = Hooks1->XMLGetFundamentalData((BSTR)sSymbol, 255, 0 ); //All
    ReturnValue = Hooks1->XMLGetFundamentalData((BSTR)sSymbol, 19, 0 ); //Dividend Date



    XMLGetFundamentalData(<symbol>, <fundamentalTypeFlag>) returns: <XML>

    Desc: Retrieves fundamental data for the symbol requested in XML format.

    fundamentalTypeFlags

    Constant Value Description
    ftf52HDATE 1 52-week high date
    ftf52LDATE 2 52-week low date
    ftf52WHIGH 3 52-week high
    ftf52WLOW 4 52-week low
    ftfCUSIP 5 Cusip number
    ftfDIVIDEND 6 Dividend
    ftfDIVINT 7 Dividend interval
    ftfEPS 8 Earnings per share
    ftfLISTEXG 9 Listed exchange
    ftfMCAP 10 Market capitalization
    ftfNAME 11 Company name
    ftfNAV 12 Net asset value
    ftfOPENINT 14 Number of outstanding issues (futures only)
    ftfPE 15 Price/earnings ratio
    ftfSHARES 16 Shares outstanding
    ftfSIC 17 Standard Industrial Classifications Index (Sector)
    ftfUPCRES 18 UPC Restricted (Boolean)
    ftfXDATE 19 Dividend date
    ftfYIELD 20 Yield
    ftfALL 255 All fundamental data

  • #2
    I got this working. Sorry for posting such a simple question. I have to call this function using the type library constant like below. Now it works.


    FD1 = Hooks1->XMLGetFundamentalData( sSymbol, __MIDL___MIDL_itf_winsig_0000_0012::ftfALL, 0 ); //All
    FD2 = Hooks1->XMLGetFundamentalData( sSymbol, __MIDL___MIDL_itf_winsig_0000_0012::ftfYIELD, 0 ); //Dividend Date

    Thanks

    Comment

    Working...
    X