wait_for_data#
API documentation for tradingstrategy.transport.data_trigger.wait_for_data Python function.
- wait_for_data(client, pair_ids, tick, bucket, maximum_wait, sleep=datetime.timedelta(seconds=5), retryable_exceptions=(<class 'ConnectionError'>, <class 'requests.exceptions.HTTPError'>, <class 'requests.exceptions.Timeout'>, <class 'requests.exceptions.TooManyRedirects'>))[source]#
Wait until the candle data is available.
We wait until we have the data for the previous candle available.