def get_index_portfolio_deposit_file(date, ticker): if isinstance(date, datetime.datetime): date = _datetime2string(date) id = krx.IndexTicker().get_id(ticker, date) market = krx.IndexTicker().get_market(ticker, date) return krx.get_index_portfolio_deposit_file(date, id, market)
def get_index_portfolio_deposit_file(ticker, date=None): """지수 구성 종목 조회 :param ticker : 조회할 지표의 티커 :param date : 조회 일자 (YYMMDD) :return 구성 종목의 티커를 리스트로 반환 """ if date is None: date = get_nearest_business_day_in_a_week() if isinstance(date, datetime.datetime): date = _datetime2string(date) return krx.get_index_portfolio_deposit_file(date, ticker)
def get_index_portfolio_deposit_file(date, ticker, market="KOSPI"): id = krx.IndexTicker().get_id(date, market, ticker) return krx.get_index_portfolio_deposit_file(date, id, market)