Tag: financial data

Synthetic ETF Data Generation (Part-2) - Gaussian Mixture Models
PythonQuant

Synthetic ETF Data Generation (Part-2) - Gaussian Mixture Models

This post is a summary of a more detailed Jupyter (IPython) notebook where I demonstrate a method of using Python, Scikit-Learn and Gaussian Mixture Models to generate realistic looking return series. In this post we will compare real ETF returns versus synthetic realizations. To evaluate the similarity of the real and synthetic returns we will compare the following: * visual inspection * histogram comparisons * descriptive statistics * correlations * autocorrelations The data set we will

READ MORE
Exploring Our Scraped Options Data Bid-Ask Spreads (Part-2)
PythonResearch

Exploring Our Scraped Options Data Bid-Ask Spreads (Part-2)

Post Outline * Notes on Part-2 * The Data * Bid-Ask Spread Analysis * How Do Aggregate Bid-Ask Spreads Vary with Days To Expiration? * How Do Bid-Ask Spreads Vary with Volume? * How Do Bid-Ask Spreads Vary with Volatility? * Summary Conclusions Notes on Part-2 Some astute readers in the comments noted that analysis based on the absolute difference in bid-ask price is not robust when considering the price of the underlying option and can lead to spurious conclusions. They recomme

READ MORE
Exploring Our Scraped Options Data Bid-Ask Spreads
PythonResearch

Exploring Our Scraped Options Data Bid-Ask Spreads

Post Outline * The Objective * The Data * Basic Data Analysis * Bid-Ask Spread Analysis * How Do Aggregate Bid-Ask Spreads Vary with Days To Expiration? * How Do Bid-Ask Spreads Vary with Volume? * How Do Bid-Ask Spreads Vary with Volatility? * Summary Conclusions The Objective Compared to the equity market, the options market is a level up in complexity. For each symbol there are multiple expiration dates, strike prices for each expiration date, implied volatilities, and that'

READ MORE
How to get Free Intraday Stock Data with Python and BarCharts OnDemand API
PythonQuant

How to get Free Intraday Stock Data with Python and BarCharts OnDemand API

To this day the most popular article I have ever written on this blog was "How to get Free Intraday Stock Data with Netfonds". Unfortunately the Netfonds API has really declined in terms of usability, with too many popular stocks missing, and irregular trade and price quotes. Simply put, as the API went down, so did the code. However, all hope is not lost. The wonderful people at BarChart.com have created a well documented, easily accessible API for intraday stock data and even near real-time q

READ MORE