cryptocompsdk.history package

Submodules

cryptocompsdk.history.api module

class cryptocompsdk.history.api.HistoryAPI(api_key, throttle=None)[source]

Bases: cryptocompsdk.request.APIBase

get(from_symbol='BTC', to_symbol='USD', freq='d', exchange=None, aggregate=None, end_time=None, limit=100, max_api_calls=None)[source]
Return type

HistoricalData

cryptocompsdk.history.parse module

exception cryptocompsdk.history.parse.CouldNotGetHistoryException[source]

Bases: cryptocompsdk.response.ResponseException

class cryptocompsdk.history.parse.Data(aggregated, time_from, time_to, data)[source]

Bases: object

__init__(aggregated, time_from, time_to, data)[source]

Initialize self. See help(type(self)) for accurate signature.

aggregated: Optional[bool]
data: List[cryptocompsdk.history.parse.HistoryRecord]
static from_dict(obj)[source]
Return type

Data

time_from: Optional[int]
time_to: Optional[int]
to_dict()[source]
Return type

dict

class cryptocompsdk.history.parse.HistoricalData(response, message, param_with_error, has_warning, type, rate_limit, data)[source]

Bases: cryptocompsdk.response.ResponseAPIBase

__init__(response, message, param_with_error, has_warning, type, rate_limit, data)[source]

Initialize self. See help(type(self)) for accurate signature.

data: cryptocompsdk.history.parse.Data
delete_record_matching_time(time)[source]
static from_dict(obj)[source]
Return type

HistoricalData

has_warning: Optional[bool]
property is_empty
Return type

bool

message: Optional[str]
param_with_error: Optional[str]
rate_limit: Optional[cryptocompsdk.history.parse.RateLimit]
response: Optional[str]
property time_from
Return type

int

to_df()[source]
Return type

DataFrame

to_dict()[source]
Return type

dict

trim_empty_records_at_beginning()[source]
type: Optional[int]
class cryptocompsdk.history.parse.HistoryRecord(time, high, low, open, volumefrom, volumeto, close, conversion_type, conversion_symbol)[source]

Bases: object

__init__(time, high, low, open, volumefrom, volumeto, close, conversion_type, conversion_symbol)[source]

Initialize self. See help(type(self)) for accurate signature.

close: Optional[float]
conversion_symbol: Optional[str]
conversion_type: Optional[str]
static from_dict(obj)[source]
Return type

HistoryRecord

high: Optional[float]
property is_empty
Return type

bool

low: Optional[float]
open: Optional[float]
time: Optional[int]
to_dict()[source]
Return type

dict

volumefrom: Optional[float]
volumeto: Optional[float]
class cryptocompsdk.history.parse.RateLimit[source]

Bases: object

__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

static from_dict(obj)[source]
Return type

RateLimit

to_dict()[source]
Return type

dict

cryptocompsdk.history.parse.historical_data_from_dict(s)[source]
Return type

HistoricalData

cryptocompsdk.history.parse.historical_data_to_dict(x)[source]
Return type

Any