catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

PricingDataNotLoadedError for a time range outside of simulation's timeframe

Open redboyhun opened this issue 8 years ago • 3 comments

Dear Catalyst Maintainers,

I tried to use the portfolio optimization script between 2017 AUG 1st and 2017 DEC 17th, but got a data error for a timeframe outside the simulation.

Error: [2017-12-18 11:47:10.832338] INFO: exchange_algorithm: initialized trading algorithm in backtest mode Error traceback: /opt/miniconda2/envs/catalyst/lib/python2.7/site-packages/catalyst/exchange/exchange_bundle.py (line 1013) PricingDataNotLoadedError: Missing data for bitfinex dsh_usd in date range [2017-02-02 00:00:00+00:00 - 2017-08-01 00:00:00+00:00] Please run: catalyst ingest-exchange -x bitfinex -f daily -i dsh_usd. See catalyst documentation for details.

The error is confusing since I wanted to simulate between 2017 AUG 1st and 2017 DEC 17th

I tried a modified protfolio optimization with version 0.4.0: Changes in script: context.assets = symbols('btc_usd', 'eth_usd', 'ltc_usd', 'dsh_usd', 'xrp_usd') start = datetime(2017, 8, 1, 0, 0, 0, 0, pytz.utc) end = datetime(2017, 12, 17, 0, 0, 0, 0, pytz.utc)

Ingest command issued: (catalyst) [root@catalyst catalyst_samples]# catalyst ingest-exchange -x bitfinex -f daily -i btc_usd,eth_usd,ltc_usd,dsh_usd,neo_usd,xrp_usd --verbose --validate Ingesting exchange bundle bitfinex... [====================================] Ingesting daily price data for xrp_usd on bitfinex: 100% [====================================] Ingesting daily price data for neo_usd on bitfinex: 100% [====================================] Ingesting daily price data for ltc_usd on bitfinex: 100% [====================================] Ingesting daily price data for eth_usd on bitfinex: 100% [====================================] Ingesting daily price data for btc_usd on bitfinex: 100% [====================================] Ingesting daily price data for dsh_usd on bitfinex: 100%

Best regards, redboyhun

Environment

  • Operating System: CentOS Linux 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
  • Python Version: Python 2.7.13 :: Continuum Analytics, Inc.
  • Python Bitness: 64
  • How did you install Catalyst: conda
  • Python packages: packages in environment at /opt/miniconda2/envs/catalyst: alembic 0.9.6 backports-abc 0.5 backports.functools-lru-cache 1.4 backports.shutil-get-terminal-size 1.0.0 bcolz 0.12.1 bleach 2.1.2 boto3 1.4.8 botocore 1.8.13 Bottleneck 1.2.1 ca-certificates 2017.08.26 h1d4fec5_0 ccxt 1.10.319 certifi 2017.11.5 certifi 2016.2.28 py27_0 chardet 3.0.4 click 6.7 configparser 3.5.0 contextlib2 0.5.5 cycler 0.10.0 cyordereddict 1.0.0 Cython 0.27.1 decorator 4.1.2 docutils 0.14 empyrical 0.2.1 enigma-catalyst 0.4.0 entrypoints 0.2.3 enum34 1.1.6 functools32 3.2.3.post2 futures 3.2.0 html5lib 1.0.1 idna 2.6 intervaltree 2.1.0 ipykernel 4.7.0 ipython 5.5.0 ipython-genutils 0.2.0 ipywidgets 7.0.5 Jinja2 2.10 jmespath 0.9.3 jsonschema 2.6.0 jupyter 1.0.0 jupyter-client 5.1.0 jupyter-console 5.2.0 jupyter-core 4.4.0 libgcc-ng 7.2.0 h7cc24e2_2 libgfortran 3.0.0 1 Logbook 1.1.0 lru-dict 1.1.6 Mako 1.0.7 MarkupSafe 1.0 matplotlib 2.1.0 mistune 0.8.3 mkl 2017.0.3 0 multipledispatch 0.4.9 nbconvert 5.3.1 nbformat 4.4.0 networkx 2.0 notebook 5.2.2 numexpr 2.6.4 numpy 1.13.1 py27_0 openssl 1.0.2l h077ae2c_5 pandas 0.19.2 pandas-datareader 0.5.0 pandocfilters 1.4.2 pathlib2 2.3.0 patsy 0.4.1 pexpect 4.3.1 pickleshare 0.7.4 pip 9.0.1 py27_1 prompt-toolkit 1.0.15 ptyprocess 0.5.2 Pygments 2.2.0 pyparsing 2.2.0 python 2.7.13 0 python-dateutil 2.6.1 python-editor 1.0.3 pytz 2017.2 pyzmq 16.0.3 qtconsole 4.3.1 readline 6.2 2 requests 2.18.4 requests-file 1.4.2 requests-ftp 0.3.1 s3transfer 0.1.12 scandir 1.6 scipy 0.19.1 np113py27_0 setuptools 36.4.0 py27_1 simplegeneric 0.8.1 singledispatch 3.4.0.3 six 1.11.0 sortedcontainers 1.5.7 SQLAlchemy 1.1.14 sqlite 3.13.0 0 statsmodels 0.8.0 subprocess32 3.2.7 tables 3.4.2 terminado 0.8.1 testpath 0.3.1 tk 8.5.18 0 toolz 0.8.2 tornado 4.5.2 traitlets 4.3.2 urllib3 1.22 wcwidth 0.1.7 webencodings 0.5.1 wheel 0.29.0 py27_0 widgetsnbextension 3.0.8 zlib 1.2.11 ha838bed_2

redboyhun avatar Dec 18 '17 11:12 redboyhun

I had the same error with the currency eth_btc with poloniex

Knifespirit avatar Dec 18 '17 13:12 Knifespirit

We'll try to replicate this issue with the same parameters.

On Mon, Dec 18, 2017 at 8:47 AM Knifespirit [email protected] wrote:

I had the same error with the currency eth_btc with poloniex

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/enigmampc/catalyst/issues/105#issuecomment-352429724, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZ-QnzvzeZooT4hW9_W4sus0ny3vtA7ks5tBmzZgaJpZM4RFU8- .

fredfortier avatar Dec 18 '17 17:12 fredfortier

Seems like the ingest problem. I reingest, it pass ,but met another problem https://github.com/enigmampc/catalyst/issues/104.

inevity avatar Dec 19 '17 14:12 inevity