PDA

View Full Version : modern American Black Scholes JavaScript or Python



kumoshk
April 18th, 2012, 12:59 AM
Observe this website here:
http://www.cboe.com/framed/IVolframed.aspx?content=http%3a%2f%2fcboe.ivolatil ity.com%2fcalc%2findex.j%3fcontract%3d37A194B9-04B1-48F8-9938-31D390E337F7&sectionName=SEC_TRADING_TOOLS&title=CBOE%20-%20IVolatility%20Services

I need to do one of the following (for a task at work):

1. find a way to access and submit this form's function through an external script or external form. This is so I can program something to put in the values so I don't have to get a headache doing it manually (the current method).

2. Find a Python module that calculates Black Scholes like this form (or this Black Scholes calculator) does. I know several methods that do it differently. They don't specify whether it's American or European. They don't ask for that dividend data. None of them give the same results.

An Excel spreadsheet with the same capabilities as this website would work, too, I suppose. I've seen some without all the data, again.

The only value I need returned from the form is Option Value.

Anyway, I have a feeling I'll have to do it at least semi-manually anyway (since I need screenshots); so, don't lose sleep over this or anything.

AlanQ
April 21st, 2012, 01:46 PM
Can you access the website using a text-based browser...?

NB when testing this with say w3m, as it's a complex URL remember to put the URL in quotes.

kumoshk
April 21st, 2012, 07:35 PM
Can you access the website using a text-based browser...?

NB when testing this with say w3m, as it's a complex URL remember to put the URL in quotes.

That's a really good question. Thanks. I'm on a Kindle Fire now and need to get ready; so I'll have to test it later.

On the other hand, I just found out that someone else at work actually found such a calculator. I don't know how or where, but I'll have to post it here when I find out. Maybe it's not the same after all, but is just enough to satisfy my boss. Who knows? We'll see.