Parsing Interactive Broker Fundamental Data
I've successfully pulled data from IB using the api. It comes in XML format and it looks like this...
Which will produce a sample.csv like this:
date,total revenue,report type,period rev,dividendpershare,period div
2017-12-31,239176000000.000000,TTM,12M,0.630000,3M
2017-09-30,229234000000.000000,TTM,12M,0.630000,3M
2017-06-30,223507000000.000000,TTM,12M,2.400000,12M
This sample program is written in Python3, and used a third-party library named xmltodict
, you can install it by pip install xmltodict
.
Post a Comment for "Parsing Interactive Broker Fundamental Data"