Utilities

The following provide information on general utilities used

class crypto_history.utilities.general_utilities.TokenBucket

Controls the number of requests that can be made to the API. All times are written in micro-seconds for a good level of accuracy

hold_if_exceeded()

Interface to the outside. It pauses the request until the request is allowed

class crypto_history.utilities.general_utilities.RetryModel

Provides the ability for the method to be retried

consume_available_retry()

Triggered after an unsuccessful attempt.

Returns:whose attempts to retry have been reduced by 1
Return type:RetryModel
retries
class crypto_history.utilities.general_utilities.AbstractFactory

Abstract Factory for all the factories which is responsible for registering classes

classmethod get_builders()
classmethod register_builder(factory_type, identifier, class_type)

Registers the factory to be used later by the user

crypto_history.utilities.general_utilities.register_factory()