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

[Feature Request] Can you simplify the codes a little bit more? #33

Open
ghost opened this issue Jun 20, 2017 · 1 comment
Open

[Feature Request] Can you simplify the codes a little bit more? #33

ghost opened this issue Jun 20, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 20, 2017

Your project is a life saver for me to fetch the real-time data but can you simplify a little bit more.

For example

>>> from googlefinance import getQuotes
>>> import json
>>> print json.dumps(getQuotes('AAPL'), indent=2)
[
  {
	"Index": "NASDAQ", 
    "LastTradeWithCurrency": "129.09", 
    "LastTradeDateTime": "2015-03-02T16:04:29Z", 
    "LastTradePrice": "129.09", 
    "Yield": "1.46", 
    "LastTradeTime": "4:04PM EST", 
    "LastTradeDateTimeLong": "Mar 2, 4:04PM EST", 
    "Dividend": "0.47", 
    "StockSymbol": "AAPL", 
    "ID": "22144"
  }
]

I need something like this

from googlefinance import getQuotes
getQuotes('AAPL') #for fetcing all values
getQuotes('AAPL',params=['lastprice','symbol','Time',etc])
@dretta
Copy link

dretta commented Jul 3, 2017

dretta#1

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