ENIGMA CATALYST - WARNING: Loader: Refusing to download new treasury data because a download succeeded


#1

I’m playing around with Enigma Catalyst. Unfortunately, the documentation is rather limited.

So I’m trying to run their example “hello world” type algo which looks as follows:

from catalyst import run_algorithm
from catalyst.api import order, record, symbol
import pandas as pd

def initialize(context):
    context.asset = symbol('btc_usd')


def handle_data(context, data):
    order(context.asset, 1)
    record(btc=data.current(context.asset, 'price'))


if __name__ == '__main__':
    run_algorithm(
        capital_base=10000,
        data_frequency='daily',
        initialize=initialize,
        handle_data=handle_data,
        exchange_name='Bitfinex',
        algo_namespace='buy_and_hodl',
        base_currency='usd',
        start=pd.to_datetime('2018-01-02', utc=True),
        end=pd.to_datetime('2018-01-03', utc=True),
    )

I realize according to the documentation it says you first need to “ingest” download the historical data which I believe I did. However this leads to the following error:

[2018-02-25 02:54:10.696049] WARNING: Loader: Refusing to download new
treasury data because a download succeeded at 2018-02-25
02:08:26.001177+00:00.
Which results in no data

[2018-02-25 02:54:10.830665] INFO: Performance: first open: 2018-01-02
00:00:00+00:00 [2018-02-25 02:54:10.830665] INFO: Performance: last
close: 2018-01-03 23:59:00+00:00
Question:

How do I access the downloaded data? Or, how do I delete and re-download the historical data, which is not covered in the docs?

Many Thanks.


#2

Hi,

Data bundles can be cleaned using “catalyst clean” command.

Lena


#3

Cheers for that. After a couple of hours playing around I’ve managed to figure out the basic setup. I would like to suggest a community WIKI for documentation…? In my humble opinion the current tutorial / docs are slightly confusing (lacking proper explanation) on certain key points for those not familiar with the platform, which I believe the community can improve via a documentation wiki…just an idea!


#4

Thanks again for your suggestions. Improving the docs is indeed an important task and we are continuously working on it.
Catalyst is open source software which means its documentation is open as well.
In any case, if you feel that there are specific areas in which we should focus more/start from, please let us know.
Thanks,
Lena