Micro-sheep / Micro-sheep/efinance

取得股票历史数据时,若是klt为分钟的分时数据,能否加入时间段参数?

Open
#10 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.1k
Forks
755
PR merge metrics
No merged PRs in 30d

Description

def get_quote_history(stock_codes: Union[str, List[str]],
beg: str = '19000101',
end: str = '20500101',
klt: int = 101,
fqt: int = 1) -> Union[pd.DataFrame, Dict[str, pd.DataFrame]]:

比如klt=30,那每天也就8条数据,但获取数据时,比如,我仅想获取10:30的数据,其他条暂时不要,可否再加入时间Time的beg和end参数?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the get_quote_history function shown in the issue and trace how klt, beg, and end are passed to the historical-data request. Define how time-of-day bounds should work for minute data while preserving the existing date parameters; done means the requested interval returns only matching records.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.