Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
swapniljariwala committed Sep 26, 2015
1 parent fc20854 commit b2c1289
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@ with open('sbin.csv','w') as fp:
get_price_history_csv(fp, 'SBIN', period = '1month')

with open('LT.csv','w') as fp:
get_price_history_csv(fp, 'LT', start = '01-01-2014', end = '20-01-2014',
proxies = {'http': 'proxy.domain:port'})
get_price_history_csv(fp, 'LT', start = '01-01-2014', end = '20-01-2014')
```
You can get output in pandas dataframe directly, ready for analysis
```python
from nsepy.archives import get_price_history
d = get_price_history(stock = 'LT',start = '01-01-2014', end = '20-01-2014',
proxies = {'http': 'proxy.domain:port'})
d[['high_price', 'vwap', 'low_price']].plot()
from datetime import date
d = get_price_history(stock = 'SBIN',
start = date(2015,1,1),
end = date(2015,1,1))
d[['High', 'VWAP', 'Low']].plot()
```

[Visit my blog to explore other projects](http://www.xerxys.in)

0 comments on commit b2c1289

Please sign in to comment.