How To Check Stock Quotes With Yahoo Finance

How to bee a billionaire in 20 months by trading options the


Posted on 27 April 2012 | 6:03 pm

UPDATE – Revised my rules, click here to goto new updated blog on this challenge!
HOW TO BECOME A BILLIONAIRE IN 20 MONTHS BY TRADING STOCK OPTIONS:

FIRST THE RULES: 

RULE #1 – YOUR MONTHLY CASH HAS TO EARN 100% COMPOUNDED FOR 20 MONTHS
RULE #2 – YOUR STOCK OPTION PRICE EQUAL OR LESS THAN $2  BUT NOT LESS THAN $.50
RULE #3 – YOUR STOCK PRICE HAS TO BE VOLATILE ENOUGH TO MOVE $2-3 IN 1 DAY.
RULE #4 – YOU CAN ONLY DO 1 TRADE A MONTH FOR THE 20 MONTHS AND YOUR 1 TRADE HAS TO MAKE 100% (TOTAL OF 20 TRADES).
RULE #5 – YOU CAN NOT ADD MONEY TO YOUR BEGINNING CASH BALANCE YOU ARE TRADING TO EARN 100% ON.
RULE #6 – YOU CAN NOT BE IN AN OPTION TRADE MORE THAN 4 BUSINESS TRADING DAYS.
RULE #7 – IF YOU ARE WRONG AND YOUR OPTION TRADE TURNS NEGATIVE AND WITHIN THE 4 DAYS YOU ARE INCORRECT ABOUT WHICH    DIRECTION THE TRADE WENT THEN YOU HAVE TO START BACK AT MONTH 1 AGAIN.
RULE #8 – YOU CAN TRADE CALL OR PUT OPTIONS AS LONG AS 100% IS MADE.
RULE #9 – EXTRACT MONEY TO PAY TAXES AFTER MONTH 10.
RULE #10 - IF YOU MAKE IT TO MONTH 20 YOU ARE AN EXTRAORDINARY PERSON WITH SUPERIOR DISCIPLINE AND TALENT.  I MIGHT ALSO INCLUDE YOU ARE 100% CRAZY.

IF YOU HAVE BETTER RULES PLEASE COMMENT THEM IN BELOW AND LET ME KNOW IF YOU ARE UP FOR THE CHALLENGE OR ONE SIMULAR.

I’M STARTING DEC 2006, LETS SEE HOW FAR I PERSONALLY GET!

DEC 06 MONTH 1: $3,000
JAN 07 MONTH 2:  $6,000
FEB 07 MONTH 3: $12,000
MAR 07 MONTH 4: $24,000
—————————–> made it to $44,000 by Feb 2007 starting with $1000
APR 07 MONTH 5: $48,000
MAY 07 MONTH 6: $96,000
JUN 07 MONTH 7: $192,000
JUL 07 MONTH 8: $384,000
AUG 07 MONTH 9: $768,000
SEP 07 MONTH 10: $1,536,000
OCT 07 MONTH 11: $3,072,000
NOV 07 MONTH 12: $6,144,000
DEC 07 MONTH 13: $12,288,000
JAN 08 MONTH 14: $24,576,000
FEB 08 MONTH 15: $49,152,000
MAR 08 MONTH 16: $98,304,000
APR 08 MONTH 17: $196,608,000
MAY 08 MONTH 18: $393,216,000
JUN 08 MONTH 19: $786,432,000
JUL 08 MONTH 20: $1,572,864,000

CONTINUE FOR 11 MORE MONTHS TO BECOME A TRILLIONAIRE

DO YOU HAVE WHAT IT TAKES?  DO YOU LIKE THE CHALLENGE?

Here are some positive articles on becoming a millionaire and then billionaire:

http://financeninja.wordpress.com/2007/01/14/how-to-become-a-millionaire-in-10-months-updated/

http://www.themoneytimes.com/articles/20070721/how_to_become_a_billionaire-id-106849.html

http://www.fool.com/investing/small-cap/2007/07/21/how-to-become-a-billionaire.aspx

http://www.businesslyceum.com/BAM.html?id=SarahSilva

http://ezinearticles.com/?The-Easiest-Way-To-Become-a-Billionaire&id=82914

http://search.yahoo.com/search?p=how+to+become+a+billionaire&fr=yfp-t-501&toggle=1&cop=mss&ei=UTF-8

40.664828 -73.956555

Like this:

Be the first to like this post.

. Bookmark the

.


actionwoot Groovy code to grab stock quotes from Yahoo Finance


Posted on 5 September 2011 | 4:36 pm

I'm working on a new website that will do analysis on stocks and was thinking about developing it using Groovy.  I'm still in the early stages and wanted to find a way to grab stock quotes from the web.  I found some nice python code written by Corey Goldberg and basically converted it to Groovy.  His code basically allows you to grab stock quotes from Yahoo Finance, given that you know it's ticker symbol.  It took me an hour or so to convert.  Seeing how useful it is, I decided this code would be pretty nice for other people to use ( if they're using Groovy ). 

Java 1.5
Apache HttpClient jars ( you'll need commons-codec-1.3.jar, commons.httpclient-3.1.jar and commons-logging-1.1.1.jar)

I'm pretty new to Groovy so please feel free to give comments, criticisms, whatever.

/**
 *
 */
package groovy

import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.methods.GetMethod

/**
 * @author actionjax
 *
 * Credit goes to Corey Goldberg for creating ystockquote. 
 * This code below is basically a port of the same code to Groovy.
 *
 * Copyright (c) 2007-2008, Corey Goldberg (corey@goldb.org)
 *
 * license: GNU LGPL
 *     
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This is the "YahooStockQuoteInterface" module.
 *
 * This module provides a Groovy API for retrieving stock data from Yahoo Finance.
 *
 * sample usage:
 * >>> import ystockquote
 * >>> print ystockquote.get_price('GOOG')
 * 529.46
 * 
 */
public class YahooStockQuoteInterface {

    private static __request(symbol, stat) {
        String url = "http://finance.yahoo.com/d/quotes.csv?s=$symbol&f=$stat"
        HttpClient client = new HttpClient()
        GetMethod get = new GetMethod(url)
        client.executeMethod(get)
        return get.getResponseBodyAsString().toString().replaceAll("\"","")
    }

    static get_all(symbol) {
        """
        Get all available quote data for the given ticker symbol.
       
        Returns a dictionary.
        """
        def values = __request(symbol, 'l1c1va2xj1b4j4dyekjm3m4rr5p5p6s7').split(',')
        def data = [:]
        data['price'] = values[0]
        data['change'] = values[1]
        data['volume'] = values[2]
        data['avg_daily_volume'] = values[3]
        data['stock_exchange'] = values[4]
        data['market_cap'] = values[5]
        data['book_value'] = values[6]
        data['ebitda'] = values[7]
        data['dividend_per_share'] = values[8]
        data['dividend_yield'] = values[9]
        data['earnings_per_share'] = values[10]
        data['52_week_high'] = values[11]
        data['52_week_low'] = values[12]
        data['50day_moving_avg'] = values[13]
        data['200day_moving_avg'] = values[14]
        data['price_earnings_ratio'] = values[15]
        data['price_earnings_growth_ratio'] = values[16]
        data['price_sales_ratio'] = values[17]
        data['price_book_ratio'] = values[18]
        data['short_ratio'] = values[19]
        return data
    }
       
    static get_price(symbol) {
        return __request(symbol, 'l1')
    }

    static get_change(symbol) {
        return __request(symbol, 'c1')
    }
       
    static get_volume(symbol) {
        return __request(symbol, 'v')
    }

    static get_avg_daily_volume(symbol) {
        return __request(symbol, 'a2')
    }
       
    static get_stock_exchange(symbol) {
        return __request(symbol, 'x')
    }
       
    static get_market_cap(symbol) {
        return __request(symbol, 'j1')
    }
      
    static get_book_value(symbol) {
        return __request(symbol, 'b4')
    }

    static get_ebitda(symbol) {
        return __request(symbol, 'j4')
    }
       
    static get_dividend_per_share(symbol) {
        return __request(symbol, 'd')
    }

    static get_dividend_yield(symbol) {
        return __request(symbol, 'y')
    }
       
    static get_earnings_per_share(symbol) {
        return __request(symbol, 'e')
    }

    static get_52_week_high(symbol) {
        return __request(symbol, 'k')
    }
       
    static get_52_week_low(symbol) {
        return __request(symbol, 'j')
    }

    static get_50day_moving_avg(symbol) {
        return __request(symbol, 'm3')
    }
       
    static get_200day_moving_avg(symbol) {
        return __request(symbol, 'm4')
    }
       
    static get_price_earnings_ratio(symbol) {
        return __request(symbol, 'r')
    }

    static get_price_earnings_growth_ratio(symbol) {
        return __request(symbol, 'r5')
    }
   
    static get_price_sales_ratio(symbol) {
        return __request(symbol, 'p5')
    }
       
    static get_price_book_ratio(symbol) {
        return __request(symbol, 'p6')
    }
          
    static get_short_ratio(symbol) {
        return __request(symbol, 's7')
    }
       
    static get_historical_prices(symbol, start_date, end_date) {
        """
        Get historical prices for the given ticker symbol.
        Date format is 'YYYYMMDD'
       
        Returns a nested list.
        """
       
        int end_day = Integer.valueOf(end_date[4..5] - 1)
        def end_month = end_date[6..7]
        def end_year = end_date[0..3]
       
        int start_day = Integer.valueOf(start_date[4..5] - 1)
        def start_month = start_date[6..7]
        def start_year = start_date[0..3]
       
        String url = "http://ichart.yahoo.com/table.csv?s=$symbol&" +
        "d=$end_day&" +
        "e=$end_month&" +
        "f=$end_year&" +
        "g=d&" +
        "a=$start_day&" +
        "b=$start_month&" +
        "c=$start_year&"+
        "ignore=.csv"
       
        HttpClient client = new HttpClient()
        GetMethod get = new GetMethod(url)
        client.executeMethod(get)
        BufferedReader reader = new BufferedReader(new InputStreamReader(get.getResponseBodyAsStream()))
        ArrayList<String> data = new ArrayList<String>()
        reader.eachLine( { day-> data.add(day.split(","))} ) 
        return data
    }

//    /**
//     * @param args
//     */
//    public static void main(def args) {
//        for(datum in YahooStockQuoteInterface.get_historical_prices("GOOG","20070101","20080101"))
//            println datum    }
}


Source of Reference :
  1. http://financeninja.wordpress.com/2006/11/27/how-to-become-a-billionaire-in-20-months-by-trading-options/
  2. http://actionwoot.blogspot.com/2008/09/groovy-code-to-grab-stock-quotes-from.html
ping | 55 :: How To Check Stock Quotes With Yahoo Finance is a discussion of the topic of Business Car Insurance, and How To Check Stock Quotes With Yahoo Finance is an article written by the blog Business-Car-Insurance.infoYou can copy this article (How To Check Stock Quotes With Yahoo Finance), with credit given to this article How To Check Stock Quotes With Yahoo Finance.

How To Check Stock Quotes With Yahoo Finance

Business Car Insurance ~ How To Check Stock Quotes With Yahoo Finance

How To Check Stock Quotes With Yahoo Finance - Business-Car-Insurance.info