Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_all returns messy data #50

Open
starforever opened this issue May 31, 2017 · 0 comments
Open

get_all returns messy data #50

starforever opened this issue May 31, 2017 · 0 comments

Comments

@starforever
Copy link

Below are the result of pprint(ystockquote.get_all('GOOGL')):

{
  'after_hours_change_realtime': u'N/A',
  'annualized_gain': u'N/A',
  'ask_realtime': u'N/A',
  'ask_size': u'691748000',
  'average_daily_volume': u'138624',
  'bid_realtime': u'N/A',
  'bid_size': u'1516685',
  'book_value': u'8.42',
  'change': u'+2.90',
  'change_200_sma': u'145.51',
  'change_50_sma': u'+17.10%',
  'change_from_52_week_high': u'323.51',
  'change_from_52_week_low': u'672.66',
  'change_percent': u'"+0.29%"',
  'change_percent_change': u'"+2.90 - +0.29%"',
  'change_percent_realtime': u'N/A',
  'change_realtime': u'N/A',
  'company_name': u'599351000',
  'dividend_pay_date': u'N/A',
  'dividend_per_share': u'N/A',
  'dividend_yield': u'N/A',
  'ebitda': u'94.77B',
  'eps': u'N/A',
  'eps_estimate_current_year': u'29.59',
  'eps_estimate_next_quarter': u'40.53',
  'eps_estimate_next_year': u'33.95',
  'ex_dividend_date': u'N/A',
  'fifty_sma': u'+7.70%',
  'fiftytwo_week_high': u'N/A',
  'fiftytwo_week_low': u'997.62',
  'fiftytwo_week_range': u'-0.15%',
  'float_shares': u'N/A',
  'high_limit': u'N/A',
  'holdings_gain': u'N/A',
  'holdings_gain_percent': u'1061.67',
  'holdings_gain_percent_realtime': u'N/A',
  'holdings_gain_realtime': u'N/A',
  'holdings_value': u'N/A',
  'holdings_value_realtime': u'N/A',
  'last_trade_date': u'"5/30/2017"',
  'last_trade_price': u'"4:00pm - <b>996.17</b>"',
  'last_trade_realtime_time': u'997.62',
  'last_trade_size': u'600',
  'last_trade_time': u'"4:00pm"',
  'last_trade_time_plus': u'N/A',
  'low_limit': u'N/A',
  'market_cap': u'1516685',
  'market_cap_realtime': u'689.10B',
  'more_info': u'N/A',
  'notes': u'"Alphabet Inc."',
  'one_year_target': u'850.66',
  'order_book_realtime': u'1535780',
  'pe': u'7.25',
  'pe_realtime': u'4.74',
  'peg': u'33.66',
  'percent_change_50_sma': u'71.22',
  'percent_change_from_52_week_high': u'+48.09%',
  'percent_change_from_52_week_low': u'-1.45',
  'previous_close': u'993.27',
  'price_book': u'31.21B',
  'price_eps_estimate_current_year': u'N/A',
  'price_eps_estimate_next_year': u'1.56',
  'price_paid': u'N/A',
  'price_sales': u'209.43',
  'revenue': u'N/A',
  'shares_outstanding': u'N/A',
  'shares_owned': u'N/A',
  'short_ratio': u'29.34',
  'stock_exchange': u'"672.66 - 997.62"',
  'ticker_trend': u'100',
  'today_open': u'993.27',
  'todays_high': u'991.36',
  'todays_low': u'N/A',
  'todays_range': u'N/A',
  'todays_range_realtime': u'"991.36 - 997.62"',
  'todays_value_change': u'996.17',
  'todays_value_change_realtime': u'N/A',
  'trade_date': u'N/A',
  'trade_links': u'N/A',
  'twohundred_sma': u'924.95',
  'volume': u'"NMS"'
}

Many fields are not properly populated. For example, 'volume': u'"NMS"'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant