Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在插入行情时,自动加入合约列表 #5

Open
linonetwo opened this issue May 9, 2024 · 0 comments
Open

在插入行情时,自动加入合约列表 #5

linonetwo opened this issue May 9, 2024 · 0 comments

Comments

@linonetwo
Copy link

目前 onSnapshot 会在这一步退出

    auto it = m_instrData.find(instrumentID);
    if (it == m_instrData.end())
    {
        LogDebug("Instrument data not found for: " + instrumentID);
        return;
    }

希望能自动加入

m_instrData[instr.InstrumentID] = instr;

毕竟是本地测试用,可以随意插入。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant