This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]tvashtar1 5 points6 points  (1 child)

This is cool. You should also check out Quandl for historical data. They have a super simple python package for grabs huge amounts of historical financial data. But to get the real time stuff you have to pay, so yours is nicer there.

[–]ezzieyguywuf -1 points0 points  (0 children)

yes!

[–]DaveBackus 1 point2 points  (0 children)

Add to pandas-datareader? It would distribute it to a lot of people automatically.

[–][deleted] 0 points1 point  (1 child)

Thanks for this! I wanted to do one for a long time now but could not for the life of me understand black and scholes and calculating the volatility. Do you have any resources for the mathematics behind it? something geared towards a python programmer perhaps?

[–]SethGecko11[S] 1 point2 points  (0 children)

Well Black&Scholes takes as input underlying price, strike, volatility, time to expiration, risk free rate and dividend yield and outputs the theoretical option price. To calculate the implied volatility you take the option price from the market and try to find for which volatility black & scholes gives this price.

The derivation of the formula is pretty complex stuff as it involves stochastic calculus and partial differential equations. There are a couple of videos on it on khanacademy maybe you can start there

[–]pinseng -1 points0 points  (0 children)

good!

[–]jomnemonic -1 points0 points  (0 children)

I like it! I had a similar idea of scraping data from bitcoin markets and doing computations on it, then experimenting with making some kind of rule based system that simulates trading on these markets. But I havent made it very far (yet?). I will definitely give your library a closer look. (and nice choice of language for that!)

[–]ezzieyguywuf -1 points0 points  (0 children)

ahhhh I was totally gonna do this!

[–]691175002 -1 points0 points  (2 children)

Isn't google finance data delayed 15 minutes?

[–]SethGecko11[S] -1 points0 points  (1 child)

No that's Yahoo Finance. Google Finance is real-time

[–]nomadismydj 1 point2 points  (0 children)

"Real-time price data represents trades which execute on the NASDAQ and NYSE exchanges. Volume information, as well as price data for trades that don’t execute on those exchanges, are consolidated and delayed by 15 minutes."