quantlab.acquisition.sharadar.client.default_transport#

quantlab.acquisition.sharadar.client.default_transport(url, *, params, headers)[source]#

Send one GET without following redirects; the client’s default transport.

quantlab.acquisition._support.http.http_get with TIMEOUT, raising SharadarTransportError for a connection that fails or breaks. Following a redirect would send the key in x-api-key to the storage host; the client follows the bulk pull’s 302 itself, without it.

Examples

Needs the network and SHARADAR_API_KEY:

headers = {"x-api-key": os.environ[API_KEY_ENV]}
default_transport(f"{DATA_URL}/SEP", params={"ticker": "AAPL"}, headers=headers).status