Mastering-Python-for-Finance-source-codes icon indicating copy to clipboard operation
Mastering-Python-for-Finance-source-codes copied to clipboard

Accompanying source codes for my book 'Mastering Python for Finance'.

Results 7 Mastering-Python-for-Finance-source-codes issues
Sort by recently updated
recently updated
newest added

I updateted the `bond_ytm` function to adapt it to Python 3.x

Pandas has deprecated rolling_corr. The plot of the rolling correlation between EUROSTOXX and VSTOXX is shown in the proposed change.

Grammatical fixes are done :)

Hi, I suspect in your CIR model you are forgetting to scale the brownian motion term. If I am reading your code correctly, instead of: ```python dr = K*(theta-rates[-1])*dt +...

Hi, Your ForexSystem code runs fine but after a while stops with this error code; `raise ChunkedEncodingError(e) ChunkedEncodingError: ('Connection broken: OSError("(10054, \'WSAECONNRESET\')",)', OSError("(10054, 'WSAECONNRESET')",))` Thanks for your help!

Hi, Is it possible to trade multiple instruments with this code?