How do I store data from the Bloomberg API into a Pandas dataframe?

I use tia (https://github.com/bpsmith/tia/blob/master/examples/datamgr.ipynb) It already downloads data as a panda dataframe from bloomberg. You can download history for multiple tickers in one single call and even download some bloombergs reference data (Central Bank date meetings, holidays for a certain country, etc) And you just install it with pip. This link is full of examples … Read more

algorithmic trading simulator/benchmark data [closed]

This question is pretty broad; as it is, there is no mention of which instruments you’re interested in. For instance: Stocks Bonds Commodities Forex Derivatives (like Futures or Options) For the moment, I will assume you’re interested in stocks… if so, take a look at Ninja Trader, which offers these features for free. You can … Read more

Download history stock prices automatically from yahoo finance in python

When you’re going to work with such time series in Python, pandas is indispensable. And here’s the good news: it comes with a historical data downloader for Yahoo: pandas.io.data.DataReader. from pandas.io.data import DataReader from datetime import datetime ibm = DataReader(‘IBM’, ‘yahoo’, datetime(2000, 1, 1), datetime(2012, 1, 1)) print(ibm[‘Adj Close’]) Here’s an example from the pandas … Read more

Decimal vs Double Speed

Floating point arithmetic will almost always be significantly faster because it is supported directly by the hardware. So far almost no widely used hardware supports decimal arithmetic (although this is changing, see comments). Financial applications should always use decimal numbers, the number of horror stories stemming from using floating point in financial applications is endless, … Read more