fix/add_retry_logic_for_okx_perpetual_funding-info_retrieval #7602
+78
−58
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before submitting this PR, please make sure:
A description of the changes proposed in the pull request:
Problems discovered by chance: When using okx_perpetual as the connector for strategic trading, There is a probability that the entire strategy robot cannot operate normally due to the failure of the funding info request (print Connector Not Ready per on tick). This might be related to the startup time. Since the strategy failed stably around the time period of 15:09:18UTC+0, 8th May, 2025, but a similar error has never occurred before. This situation where the entire strategy fails to start due to a single error can be completely avoided by adding retries.
Tests performed by the developer:
After adding retries, the strategy was repeatedly started in the same environment and with the same parameters, and no similar errors continued to occur or other errors were introduced
Tips for QA testing: