mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-27 20:20:55 +08:00
BUG: fixed issue with daily frequency
This commit is contained in:
@@ -203,10 +203,12 @@ class Exchange:
|
||||
assets = self.assets if not is_local else self.local_assets
|
||||
|
||||
for key in assets:
|
||||
if not asset and assets[key].symbol.lower() == symbol.lower() and (
|
||||
not data_frequency or (
|
||||
data_frequency == 'minute' and assets[
|
||||
key].end_minute is not None)):
|
||||
has_data = (data_frequency == 'minute'
|
||||
and assets[key].end_minute is not None) \
|
||||
or (data_frequency == 'daily'
|
||||
and assets[key].end_daily is not None)
|
||||
if not asset and assets[key].symbol.lower() == symbol.lower() \
|
||||
and (not data_frequency or has_data):
|
||||
asset = assets[key]
|
||||
|
||||
return asset
|
||||
|
||||
@@ -2,9 +2,18 @@
|
||||
Release Notes
|
||||
=============
|
||||
|
||||
Version 0.3.10
|
||||
^^^^^^^^^^^^^
|
||||
**Release Date**: 2017-11-28
|
||||
|
||||
Bug Fixes
|
||||
~~~~~~~~~
|
||||
|
||||
- Fixed issue with fetching assets with daily frequency
|
||||
|
||||
Version 0.3.9
|
||||
^^^^^^^^^^^^^
|
||||
**Release Date**: 2017-11-14
|
||||
**Release Date**: 2017-11-28
|
||||
|
||||
Bug Fixes
|
||||
~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user