flexible_load#
API documentation for tradingstrategy.utils.flexible_pickle.flexible_load Python function.
- flexible_load(file)[source]#
Load a pickle file with flexible enum handling.
Does not crash on missing enum values
Logs info about broken/missing values
- Parameters:
file (BinaryIO) – Binary file to read from
- Returns:
Unpickled object
- Return type:
Example:
with open("vault-db.pickle", "rb") as f: data = flexible_load(f)