quantlab.acquisition.massive.client.rest_transport#

quantlab.acquisition.massive.client.rest_transport(url, *, params, headers)[source]#

Send one REST GET; the client’s default http_get.

quantlab.acquisition._support.http.http_get with REST_TIMEOUT, following redirects (requests drops Authorization on a redirect to another host), and raising MassiveTransportError for a connection that fails or breaks.

Examples

Needs the network; without a key Massive answers 401:

rest_transport(CONDITIONS_URL, params={"asset_class": "stocks"}, headers={}).status