Historical Data for Python

I assume you can mung file formats if you know Python (or any other language).
Well not quite. I do know the markets, but I have just started studying Python etc. and the next six months are dedicated for this purpose. Can you explain it to me?
 
Last edited:
What about Quantopian? You can't download data but at least you can test ideas in Python.

Thanks for the idea, but as d08 highlights, I feel uncomfortable by the uncertainty with that kind of service.

Does anyone know if Python supports/read ASCII text format?
 
Thanks for the idea, but as d08 highlights, I feel uncomfortable by the uncertainty with that kind of service.

Does anyone know if Python supports/read ASCII text format?

I suppose you mean something like a file with comma separated values (csv) and of course it can. It's quick and easy. My suggestion is to use Pandas as it has a lot of useful features and is often faster than native Python.
 
You should be able to read that data directly into a pandas data frame. If for some reason that causes problems you can use Python's standard io functions and then will likely have to do a little munging.
 
IB
Hey d08, I have an IB account, I would like download intraday price data every 2-3 minutes (5 min is okay). Do you know how many stocks can I get every time? is there a tool to get the data directly from TWS?

Thanks in advance.
 
Hey d08, I have an IB account, I would like download intraday price data every 2-3 minutes (5 min is okay). Do you know how many stocks can I get every time? is there a tool to get the data directly from TWS?

Thanks in advance.
Unless you have a very large account size can you monitor 100 symbols in parallel. You would have to write your own software (multiple languages supported) and have it connected through the IB API. I don't know if such software has been made available by someone for everybody.
 
  • Like
Reactions: d08
Back
Top