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

月线数据未能补全 #22

Open
zillionare opened this issue Jun 19, 2022 · 0 comments
Open

月线数据未能补全 #22

zillionare opened this issue Jun 19, 2022 · 0 comments
Labels

Comments

@zillionare
Copy link
Owner

月线数据只能取到已收盘的周期,未收盘的数据没有计算出来。比如,如果当前是6/18日,则下面的代码只能取到5/31的数据。

async def ma_year():
    sec = "600750.XSHG"
    bars  = await Stock.get_bars(sec, 1, FrameType.MONTH)
    print(bars)
@zillionare zillionare added the bug label Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant