dataprovider fix, updated config example

This commit is contained in:
Timothy Pogue 2022-09-04 09:42:43 -06:00
parent 05cbcf834c
commit 1601868854
2 changed files with 2 additions and 3 deletions

View File

@ -173,8 +173,7 @@
"CORS_origins": [], "CORS_origins": [],
"username": "freqtrader", "username": "freqtrader",
"password": "SuperSecurePassword", "password": "SuperSecurePassword",
"ws_token": "a_secret_ws_token", "ws_token": "a_secret_ws_token"
"enable_message_ws": false
}, },
"external_message_consumer": { "external_message_consumer": {
"enabled": false, "enabled": false,

View File

@ -166,7 +166,7 @@ class DataProvider:
# We don't have this data yet, return empty DataFrame and datetime (01-01-1970) # We don't have this data yet, return empty DataFrame and datetime (01-01-1970)
return (DataFrame(), datetime.fromtimestamp(0, tz=timezone.utc)) return (DataFrame(), datetime.fromtimestamp(0, tz=timezone.utc))
if pair_key not in self.__producer_pairs_df: if pair_key not in self.__producer_pairs_df[producer_name]:
# We don't have this data yet, return empty DataFrame and datetime (01-01-1970) # We don't have this data yet, return empty DataFrame and datetime (01-01-1970)
return (DataFrame(), datetime.fromtimestamp(0, tz=timezone.utc)) return (DataFrame(), datetime.fromtimestamp(0, tz=timezone.utc))