Skip to content

东方财富和通达信实时获取五档数据 #11

Description

@tin555

通达信 TdxDataProvider可以修改代码:
'bid1': float(quote.get('bid1', 0)),
'ask1': float(quote.get('ask1', 0)),
'bid1_vol': int(quote.get('bid_vol1', 0))*100,
'ask1_vol': int(quote.get('ask_vol1', 0))*100,

            'bid2': float(quote.get('bid2', 0)),
            'ask2': float(quote.get('ask2', 0)),
            'bid2_vol': int(quote.get('bid_vol2', 0))*100,
            'ask2_vol': int(quote.get('ask_vol2', 0))*100,

            'bid3': float(quote.get('bid3', 0)),
            'ask3': float(quote.get('ask3', 0)),
            'bid3_vol': int(quote.get('bid_vol3', 0))*100,
            'ask3_vol': int(quote.get('ask_vol3', 0))*100,

            'bid4': float(quote.get('bid4', 0)),
            'ask4': float(quote.get('ask4', 0)),
            'bid4_vol': int(quote.get('bid_vol4', 0))*100,
            'ask4_vol': int(quote.get('ask_vol4', 0))*100,

            'bid5': float(quote.get('bid5', 0)),
            'ask5': float(quote.get('ask5', 0)),
            'bid5_vol': int(quote.get('bid_vol5', 0))*100,
            'ask5_vol': int(quote.get('ask_vol5', 0))*100,

但是东方财富EastmoneyDataProvider不知道怎么获取五档数据了? 现有东方财富里获取的bid1,ask1及对于的bid1_vol和ask1_vol也有问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions