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

如何 查询 一段时期的 数据 #57

Open
akihara-sam opened this issue Apr 3, 2024 · 1 comment
Open

如何 查询 一段时期的 数据 #57

akihara-sam opened this issue Apr 3, 2024 · 1 comment
Labels
good first issue Good for newcomers

Comments

@akihara-sam
Copy link

获取股票的行情
获取到股票代码后,传入对应的stock_code参数,查询对应股票的行情信息。

import adata

k_type: k线类型:1.日;2.周;3.月 默认:1 日k

res_df = adata.stock.market.get_market(stock_code='000001', k_type=1, start_date='2021-01-01')
print(res_df)

以上 start_date 是 查询开始日期 。有结束的日期的键值么?谢谢!

@1nchaos 1nchaos added the good first issue Good for newcomers label Apr 7, 2024
@1nchaos
Copy link
Owner

1nchaos commented Apr 7, 2024

  1. 目前版本暂时没有 end_date 的参数,可以先获取到自行截取需要的范围数据。
  2. 后续版本考虑增加对应的参数,方便灵活使用。

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

No branches or pull requests

2 participants