Documentation of 'org.joone.io.YahooFinanceInputSynapse' Java class
YahooFinanceInputSynapse
org.joone.io

Class YahooFinanceInputSynapse

  • All Implemented Interfaces:
    java.io.Serializable, InputPatternListener, Learnable, LearnableSynapse, NeuralElement, OutputPatternListener, Inspectable, InputSynapse, PlugInListener


    public class YahooFinanceInputSynapse
    extends StreamInputSynapse

    The YahooFinanceInputSynapse provides support for financial data input from financial markets. The synapse contacts YahooFinance services and downloads historical data for the chosen symbol and date range. Finally the data is presented to the network in reverse date order i.e oldest first.

    This synapse provides the following info ..

    Open as column 1

    High as column 2

    Low as column 3

    Close as column 4.

    Volume as column 5.

    Adj.Close as column 6.

    For the particular stock symbol.


    Developer Notes :

    This YahooFinanceInputSynapse uses the following format to extract stock financial information from the Yahoo Network

    .

    http://table.finance.yahoo.com/table.csv?a=8&b=1&c=2002&d=11&e=3&f=2002&s=tsco.l&y=0&g=d&ignore=.csv


    a = From Month 0 - 11

    b = From Day 1-31

    c = From Year XXXX

    d = To Month 0-11

    e = To Day 1-31

    f = To Year XXXX

    s = Symbol

    y = [record] from record to + 200 records

    g=[d] or[m] or [y] - daily or monthly or yearly

    ignore = .csv

    See Also:
    Serialized Form
    • Constructor Detail

      • YahooFinanceInputSynapse

        public YahooFinanceInputSynapse()
        Constructor for the YahooFinanceInputSynapse object
    • Method Detail

      • getSymbol

        public java.lang.String getSymbol()
        Gets the name of the symbol
        Returns:
        The Symbol name
      • getDateStart

        public java.lang.String getDateStart()
        Deprecated. Use getStartDate instead
        Gets year to start data retrieval from.
        Returns:
        The year to start from
      • getDateEnd

        public java.lang.String getDateEnd()
        Deprecated. Use getEndDate instead
        Gets year to end data retrieval from
        Returns:
        The year to end on
      • getPeriod

        public java.lang.String getPeriod()
        Gets the period for data retrieval.
        Returns:
        The month to end on
      • getStockDates

        public java.util.Vector getStockDates()
        Gets the dates associated with each row of data.
      • getStockData

        public java.util.Vector[] getStockData()

        Gets the stock data retrieived by this synapse. Returns the data in a Vector array of length 5.

        In column 0 Open data.

        In column 1 High

        In column 2 Low

        In column 3 Close

        In column 4 Volume

        In column 5 Adj.Close

      • setSymbol

        public void setSymbol(java.lang.String newSymbol)
        Deprecated. Use setEndDate instead
        Sets the name of the database jdbc driver.
        Parameters:
        newSymbol - The new stock symbol to retrieve the data with.
      • setDateStart

        public void setDateStart(java.lang.String newDateStart)
        Deprecated. Use setStartDate instead
        Gets the the data from which data is retrieved.
        Parameters:
        newDataStart - The data from which data is retrieved.
      • setDateEnd

        public void setDateEnd(java.lang.String newDateEnd)
        Gets the the data to which data is retrieved.
        Parameters:
        newDateEnd - The date to which data is retrieved.
      • setPeriod

        public void setPeriod(java.lang.String newPeriod)
        Sets the period with which to retrieve data should be one of "Daily" or "Monthly" or "Yearly".
        Parameters:
        newPeriod - The period with which data is retieved.
      • check

        public java.util.TreeSet check()
        Check that there are no errors or problems with the properties of this YahooFinanceInputSynapse.
        Specified by:
        check in interface NeuralElement
        Overrides:
        check in class StreamInputSynapse
        Returns:
        The TreeSet of errors / problems if any.
        See Also:
        Synapse
      • getStartDate

        public java.util.Date getStartDate()
      • setStartDate

        public void setStartDate(java.util.Date startDate)
      • getEndDate

        public java.util.Date getEndDate()
      • setEndDate

        public void setEndDate(java.util.Date endDate)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.