get_all_snapshot_for_date#
- pyqqq.data.snapshot.get_all_snapshot_for_date(date: date) DataFrame [source]#
전 종목 데이터를 반환합니다.
2018년 1월 1일 데이터 부터 조회 가능합니다.
- Parameters:
date (dtm.date) – 조회 일자.
- Returns:
전 종목의 snapshot 데이터가 포함된 pandas DataFrame.
DataFrame의 열은 다음과 같습니다.
date (dtm.date): 거래일자.
market (str): 거래소.
code (str): 종목코드.
name (str): 종목명.
type (str): 종목유형.
change (int): 대비.
change_percent (float): 등락률.
open (int): 시가.
high (int): 고가.
low (int): 저가.
close (int): 종가.
volume (int): 거래량.
value (int): 거래대금.
market_cap (int): 시가총액.
shares (int): 상장주식수.
listing_date (dtm.datetime) 상장일.
days_since_listing (int): 상장 이후 경과한 일수.
administrative_issue (bool): 관리종목 여부.
alert_issue (str): 투자경고 구분.
fiscal_quarter_end (str): 회계분기.
sales_account (int): 매출액.
cumulative_sales_account (int): 누적 매출액.
operating_profit (int): 영업이익.
cumulative_operating_profit (int): 누적 영업이익.
net_income (int): 순이익.
cumulative_net_income (int): 누적 순이익.
current_assets (int): 유동자산.
fixed_assets (int): 고정자산.
total_assets (int): 자산총계.
flow_liabilities (int): 유동부채.
fixed_liabilities (int): 고정부채.
total_liabilities (int): 부채총계.
capital_stock (int): 자본금.
shareholders_equity (int): 자본총계.
retention_ratio (float): 유보율.
debt_ratio (float): 부채율.
roa (float): ROA.
roe (float): ROE.
eps (int): EPS.
sps (int): SPS.
per (float): PER.
pbr (float): PBR.
- Return type:
pd.DataFrame
Examples
>>> df = get_all_snapshot_for_date(dtm.datet(2020, 2, 4)) >>> print(df.head()) date market name type change ... roe eps sps per pbr code ... 000020 2020-02-04 KOSPI 동화약품 EQUITY 70 ... 0.65 52.0 10684.0 21.97 0.74 000040 2020-02-04 KOSPI KR모터스 EQUITY 0 ... -39.20 -721.0 6670.0 -0.27 0.24 000050 2020-02-04 KOSPI 경방 EQUITY 50 ... 0.88 171.0 12260.0 13.30 0.37 000060 2020-02-04 KOSPI 메리츠화재 EQUITY 0 ... NaN NaN NaN NaN NaN 000070 2020-02-04 KOSPI 삼양홀딩스 EQUITY -200 ... 4.85 5877.0 279735.0 7.60 0.36 ... ... ... ... ... ... ... ... ... ... ... ... 950130 2020-02-04 KOSDAQ 엑세스바이오 EQUITY 95 ... -57.13 -577.0 1594.0 -13.25 1.63 950140 2020-02-04 KOSDAQ 잉글우드랩 EQUITY 200 ... 3.37 76.0 6511.0 -17.88 1.69 950160 2020-02-04 KOSDAQ 코오롱티슈진 EQUITY 0 ... NaN NaN NaN NaN NaN 950170 2020-02-04 KOSDAQ JTC EQUITY 410 ... NaN NaN NaN NaN NaN 950180 2020-02-04 KOSDAQ SNK EQUITY -50 ... NaN NaN NaN NaN NaN