Skip to content

Can't use moomoo api to retrieve paper trading account #8

@hokeihero

Description

@hokeihero

I have 3 accounts in my moomoo account which is simulate HK, simulate US and Real US equity accounts. However, it only returns my Real US equity account when I use this code:
trd_ctx = OpenSecTradeContext(filter_trdmarket=TrdMarket.US, host='127.0.0.1', port=11111, is_encrypt=None, security_firm=SecurityFirm.FUTUINC)
ret, data = trd_ctx.get_acc_list()

And it only return my Simulate HK account with this code
trd_ctx = OpenSecTradeContext( host='127.0.0.1', port=11111, is_encrypt=None)
ret, data = trd_ctx.get_acc_list()

None of the codes above return my simulate US account. Did I do something wrong?

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