mkt.databases.api_schema.RESTAPIClient

class mkt.databases.api_schema.RESTAPIClient[source]

Bases: APIClient, ABC

Base class for REST API clients.

__init__() None

Methods

__eq__(other)

Return self==value.

__init__()

_stamp_from_response(res)

Record query datetime + cache provenance from a requests-cache response.

_stamp_now()

Record current UTC datetime; cache provenance unknown.

check_response(res)

Check the response status code for errors.

query_api()

Attributes

__dataclass_fields__

__dataclass_params__

__match_args__

from_cache

Whether the most recent response was served from requests-cache.

query_datetime

UTC datetime the underlying network query was made (cache creation time if served from cache).

abstract query_api()[source]