Open lacabra opened 6 years ago
Yes, 5m
wouldn't work. Try 5T
to respect the offset alias of Pandas. We can always make this a valid alias, but Pandas would consider it 5 months at the moment.
We should at least make the error message much more explicit.
I confirm that it works with 5T
In essence, this issue is related to #114 and the need to standardize the timeframes between what CCXT and Catalyst support, and making them both fully interoperable, as right now the transition between backtesting and paper trading is not as smooth as it could be.
Yes, I agree that accepting CCXT standards might be more intuitive for most users. We'll have to re-map to Pandas standard for resampling which is fine. I'm not sure if we can accept both without conflicts (e.g. 'm' means minutes in one and month in the other).
On Thu, Jan 11, 2018 at 1:54 PM Victor notifications@github.com wrote:
I confirm that it works with 5T
In essence, this issue is related to #114 https://github.com/enigmampc/catalyst/issues/114 and the need to standardize the timeframes between what CCXT and Catalyst support, and making them both fully interoperable, as right now the transition between backtesting and paper trading is not as smooth as it could be.
— You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub https://github.com/enigmampc/catalyst/issues/152#issuecomment-357025443, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZ-QnGxE2ALmWmctQcaf9chFWrCXr4Hks5tJljhgaJpZM4RaSsj .
The reason behind those particular literals in ccxt is simple: we deduced them from the most common set that appears in candlestick charts mostly everywhere, this makes timeframe labels recognizeable for users who are familiar with exchanges' web interfaces. Hope it makes sense.
Yes, it makes sense. Can’t argue with the fact that ‘m’ is more intuitive than ‘T’. :-) On Fri, Jan 12, 2018 at 8:11 AM Igor Kroitor notifications@github.com wrote:
The reason behind those particular literals in ccxt is simple: we deduced them from the most common set that appears in candlestick charts mostly everywhere, this makes timeframe labels recognizeable for users who are familiar with exchanges' web interfaces. Hope it makes sense.
— You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub https://github.com/enigmampc/catalyst/issues/152#issuecomment-357280442, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZ-QhX_oWd40L6_nQAqGySm-s59gV8vks5tJ4PMgaJpZM4RaSsj .
Dear Catalyst Maintainers,
Before I tell you about my issue, let me describe my environment:
Environment
Now that you know a little about me, let me tell you about the issue I am having:
data.history() works fine in backtesting mode, but breaks in live mode (paper-trading), which renders unusable if one can't query historical data. Take this simple algo as an example:
and switch the
LIVE
flag betweenTrue
andFalse
I would get candle stick data for the requested period
I get the following error in live mode:
What steps have you taken to resolve this already?
It doesn't seem to be exchange-specific, as multiple exchanges throw the same error
Sincerely,
Victor