Open vonpupp opened 6 years ago
Yes, we can include a setting which allows passes through to the exchange init options of CCXT. We'll look more specifically into timeout interval options.
For now, it looks like this issue occurs in the your handle_data
implementation. This means that you have an opportunity to catch and retry.
We've implemented except...retry handlers in all internal components making requests to an exchange(when synchronizing balances for example). However, we have not done so for ad-hoc operations (like get_history). The rationale is that, since those calls occur in a user-defined function, users might want to control when to retry and when to abandon for the current frame.
Let us know if you think that the retry behavior should be built-in, or if you are simply looking for a way to set the timeout interval (assuming that exchanges accept such parameter).
Got it Fred, thank you very much.
I will try to catch that on my code and retry to get the history again and see how it goes, it makes sense. I think a way of setting the timeout would be nice.
Dear Catalyst Maintainers,
Before I tell you about my issue, let me describe my environment:
Environment
Linux <hostname removed> 4.13.11-1-ARCH #1 SMP PREEMPT Thu Nov 2 10:25:56 CET 2017 x86_64 GNU/Linux
)2.7.14
64
$ pip freeze
:Now that you know a little about me, let me tell you about the issue I am having:
Frequent timeouts
When running in paper mode with minute data frequency, I resample the candles every 30 minutes. Quite often, when I resample the data I get the following error:
You might want to allow the user to setup a timeout on Catalyst to be passed to CCXT. Perhaps even better is to export a CCXT interface to the Catalyst users so it is possible to modify internal properties/values. You may want to have a look at this issue on CCXT as a reference.
Here is how you can reproduce this issue on your machine:
Reproduction Steps
I am working on a minimal example and will provide a gist link.
What steps have you taken to resolve this already?
None. I think it is an architectural thing that I am not able to solve.
Sincerely, V