token_cache#

API documentation for tradingstrategy.transport.token_cache Python module in Trading Strategy.

Module description#

Token cache maintenance

Classes#

TokenCacheEntry

Convenience wrapper around token metadata cache file.

Functions#

calculate_token_cache_summary(cached_entries)

Display the summary of cached files.

display_token_metadata(cached_entries)

Print stored metadata in human readable format.

read_token_cache(transport)

Read all written token cache entries.