jmfernandes / robin_stocks

This is a library to use with Robinhood Financial App. It currently supports trading crypto-currencies, options, and stocks. In addition, it can be used to get real time ticker information, assess the performance of your portfolio, and can also get tax documents, total dividends paid, and more. More info at
http://www.robin-stocks.com
MIT License
1.69k stars 459 forks source link

without logging in which functions are available? #233

Open yinshiyi opened 3 years ago

yinshiyi commented 3 years ago

image I am using get quote, but get error code API url Thanks.

nima commented 3 years ago

Clearly they don't take too kindly to folk not logging in to give away their data. Not sure which ones require no auth though.

>>> rh.get_quotes('GM')
[{'adjusted_previous_close': '51.040000',
  'ask_price': '51.700000',
  'ask_size': 100,
  'bid_price': '47.000000',
  'bid_size': 10,
  'has_traded': True,
  'instrument': 'https://api.robinhood.com/instruments/48bbe4a0-d167-4bfe-8d3b-494f9bb56350/',
  'last_extended_hours_trade_price': '50.730000',
  'last_trade_price': '50.680000',
  'last_trade_price_source': 'consolidated',
  'previous_close': '51.040000',
  'previous_close_date': '2021-01-28',
  'symbol': 'GM',
  'trading_halted': False,
  'updated_at': '2021-01-30T01:00:00Z'}]
>>>