. I'm having some difficulty working with the price data as its represented. For example
prices_close = history(10, '1d', 'close_price')
If I print this, I get:
2015-07-09PRINT Equity(24 [AAPL])
2015-06-25 00:00:00+00:00 127.51
2015-06-26 00:00:00+00:00 126.78
2015-06-29 00:00:00+00:00 124.58
2015-06-30 00:00:00+00:00 125.42
2015-07-01 00:00:00+00:00 126.58
2015-07-02 00:00:00+00:00 126.40
2015-07-06 00:00:00+00:00 125.99
2015-07-07 00:00:00+00:00 125.69
2015-07-08 00:00:00+00:00 122.59
2015-07-09 00:00:00+00:00 120.03
I would like to iterate over this somehow and get a list that I can process further, for example:
[127.51,126.78,124.58,125.42,126.58,126.40,125.99,125.69,122.59,120.03]
I'm currently treating it as a string, parsing it out and then reconverting to a float however this is terribly inefficient and prone to error. Is there another method that is recommended?
thanks!