The most popular and useful Python libraries and APIs for different free market-data services and sources.
Monte-Carlo simulation is a useful tool to simulate stochastic processes. In this article, I show a simple case of using Monte Carlo in Python to calculate a European option price and compare the Monte-Carlo result with the Black-Scholes-Merton result.
Here is a step-by-step example of how to create a Python app on an Apache virtual hosting and call this app from a php-site.