prepare_cache#
- prepare_cache(executor_id, cache_path, unit_testing=False)[source]#
Prepare a cache location for this trade-executor.
Fail early if the cache path is not writable. Otherwise Docker might spit misleading “Device or resource busy” message.
Default is ./cache/$EXECUTOR_ID
Unit tests share a fixed cache path across tests to speed up them