TokenCacheEntry#

API documentation for tradingstrategy.transport.token_cache.TokenCacheEntry Python class in Trading Strategy framework.

class TokenCacheEntry[source]#

Bases: object

Convenience wrapper around token metadata cache file.

__init__(path, metadata)#
Parameters:
  • path (Path) –

  • metadata (TokenMetadata) –

Return type:

None

Methods

__init__(path, metadata)

has_coingecko_data()

has_tax()

has_tax_data()

has_tokensniffer_data()

purge()

Attributes

path

Where this item was stored

metadata

Stored JSON data

file_size

File size in bytes

updated_at

path: Path#

Where this item was stored

metadata: TokenMetadata#

Stored JSON data

property file_size: int#

File size in bytes

__init__(path, metadata)#
Parameters:
  • path (Path) –

  • metadata (TokenMetadata) –

Return type:

None