Skip to content

AttributeError: 'SourceWrapper' object has no attribute 'open' #48

@cbwang2016

Description

@cbwang2016
    ConfigUtil.set(source='tushare')
    profiles = add_strategies(['000001.SH-1.DAY'], [
        {
            'strategy': DemoStrategy('A1'),
            'capital': 5000000.0,
        }
    ])

报错:

  File "C:\Users\***\AppData\Local\Programs\Python\Python37\lib\site-packages\quantdigger-0.6.0-py3.7.egg\quantdigger\engine\context\data_context.py", line 125, in __init__
    self.open = NumberSeries(raw_data.open.values, 'open')
AttributeError: 'SourceWrapper' object has no attribute 'open'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions