Doesn't work
aapl_minute_closes = get_pricing(
'AAPL',
fields='close_price', #modify to price, open_price, high, low or volume to change the field
start_date='2014-01-01', #customize your pricing date range
end_date = '2014-07-01',
frequency='minute', #change to daily for daily pricing
)
# matplotlib is installed for easy plotting
aapl_minute_closes.plot()
---------------------------------------------------------------------------
HTTPError Traceback (most recent call last)
<ipython-input-3-62a671187136> in <module>()
4 start_date='2014-01-01', #customize your pricing date range
5 end_date = '2014-07-01',
----> 6 frequency='minute', #change to daily for daily pricing
7 )
8
/build/src/qexec_repo/qexec/research/_api.pyc in get_pricing(symbols, start_date, end_date, symbol_reference_date, frequency, fields, handle_missing)
642 frequency=frequency,
643 fields=fields,
--> 644 handle_missing_mode=handle_missing,
645 )
646
/build/src/qexec_repo/qexec/research/web/client.pyc in get_pricing(self, symbols, start_date, end_date, symbol_reference_date, frequency, fields, handle_missing_mode)
243 symbol_reference_date,
244 frequency,
--> 245 fields,
246 )
247
/build/src/qexec_repo/qexec/research/web/helpers.pyc in _method(*args, **kwargs)
128 def _method(*args, **kwargs):
129 response = f(*args, **kwargs)
--> 130 response.raise_for_status()
131
132 # If we make it to here, that means we have a 200. It still might
/usr/local/lib/python2.7/dist-packages/requests/models.pyc in raise_for_status(self)
838
839 if http_error_msg:
--> 840 raise HTTPError(http_error_msg, response=self)
841
842 def close(self):
HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: http://localhost:8080/api/pricing