주식 시세
시세라이센스 정책에 따라 API v3으로 업데이트되었으니 참고해주시길 바랍니다.
주식시장(유가증권, 코스닥) 의 종목 리스트, 종목 마스터, 종목 체결, 호가잔량, 종목 투자자별 종가등을 제공한다.
Syntax
HTTP methods | GET
Authentication | API Key
주식종목 리스트 API
/v2/market/stocks/{marketcode}/lists
GET
https://{APIGWAddr}/v2/market/stocks/{marketcode}/lists
Path Parameters
Name | Type | Description |
---|---|---|
marketcode | string | 시장구분 (kospi | kosdaq) |
Response Parameters
Name | Type | Description | |
trdDd | String(8) | 체결일자, 거래일자, 매매일자 | YYYYMMDD |
isuLists | Array(4) | 종목리스트 | 데이터 개수 |
isuCd | String(12) | 종목코드 | |
isuSrtCd | String(9) | 종목단축코드 | 예) KR7000660001 → 000660 |
isuKorNm | String(80) | 종목한글명 | |
isuKorAbbrv | String(40) | 종목한글약명 | 가나다 |
Request Example
Response Example
주식종목 마스터 API
/v2/market/stocks/{marketcode}/{issuecode}/master
GET
https://{APIGWAddr}/v2/market/stocks/{marketcode}/{issuecode}/master
Path Parameters
Name | Type | Description |
---|---|---|
marketcode | string | 시장구분 (kospi | kosdaq) |
issuecode | string | 종목코드 ex)005930 |
Response Parameters
Name | Type | Description | |
trdDd | string(8) | 체결일자, 거래일자, 매매일자 | YYYYMMDD |
isuCd | string(12) | 종목코드 | |
isuSrtCd | string(9) | 종목단축코드 | 예) KR7000660001 → 000660 |
isuKorAbbrv | string(40) | 종목한글약명 | 가나다 |
secugrpId | string(2) | 증권그룹ID | ST:주권, MF:증권투자회사, RT:부동산투자회사, SC:선박투자회사,IF:사회간접자본투융자회사, DR:주식예탁증서, EW:ELW, EF:ETF,SW:신주인수권증권, SR:신주인수권증서, BC:수익증권, FE:해외ETF, FS:외국주권, EN:ETN |
mktWarnTpCd | string(2) | 시장경보구분코드 | 00:해당없음(시장경보가 지정될 수 있는 종목에 대해서 지정된 바가 없음을 의미), 01:투자주의, 02:투자경고, 03:투자위험 |
admisuYn | string(1) | 관리종목여부 | Y:관리 N:일반 |
haltYn | string(1) | 거래정지여부 | Y, N |
idxIndMidclssCd | string(3) | 지수업종중분류코드 | 업종분류, 상세코드는 코드표(업종) 참고 |
mktcapScaleCd | string(1) | 시가총액규모코드 | 유가 (0:제외 1:대 2:중 3:소) / 코스닥 (0:제외 1:KOSDAQ100 2:KOSDAQmid300 3:KOSDAQsmall) |
mfindYn | string(1) | 제조업여부 | Y, N (유가)제조업여부 |
smeYn | string(1) | 중소기업여부 | Y, N (코스닥)중소기업여부 |
업종 | string(1) | KRX100종목여부 | Y, N |
kospiYn | string(1) | KOSPI여부 | Y,N (유가)KOSPI100여부 (코스닥)프리미어여부 |
kospi100Yn | string(1) | KOSPI100여부 | Y, N (유가)KOSPI여부 |
kospi50Yn | string(1) | KOSPI50여부 | Y, N (유가)KOSPI50여부 |
basPrc | number(11) | 기준가격,기준가액 | |
prevddClsprc | number(11) | 전일종가 | |
prevddAccTrdvol | number(12) | 상장중최저가일자 | |
prevddAccTrdval | number(22) | 전일누적거래대금 | |
uplmtprc | number(11) | 상한가 | |
lwlmtprc | number(11) | 하한가 | |
sbPrc | number(11) | 대용가격 | ST,FS,DR,MF,RT,SC,IF,ET,FE,BC,EN 만 해당 |
parval | number(11) | 액면가 | 외국주권일 경우 소숫점셋째자리까지 표현가능/코스닥의 각국의 최소화폐단위 표시는 유가기준으로 통일 ※ST,FS,RT,SC,BC만 해당 |
isuPrc | number(11) | 발행가격 | ELW, 신주인수권증서 포함 |
listDd | string(8) | 상장일자 | YYYYMMDD |
listShrs | number(16) | 상장주식수,상장증권수 | |
arrantrdYn | string(1) | 정리매매여부 | |
creditOrdPosblYn | string(1) | 신용주문가능여부 | Y, N |
regulssQtyUnit | number(6) | 정규장매매수량단위 | |
invstcautnRemndIsuYn | string(1) | 투자주의환기종목여부 | Y, N |
srttrmOverheatIsuTpCd | string(1) | 단기과열종목구분코드 | 0: 해당없음, 1: 지정예고, 2: 지정, 3: 지정연장(해제연기) |
eps | number(11) | 주당순이익 | |
per | number(11) | 주가수익률 | |
bps | number(11) | 주당순자산가치 | |
pbr | number(11) | 주당순자산비율 | |
dps | number(11) | 주당배당금액 | |
divYd | number(11) | 배당수익율 | |
acntclsCd | string(12) | 결산월구분 | 월별 Map 구조 (001001001001 => 3,6,9,12 월) |
adjStkprcCalcYn | string(1) | 수정주가산출여부 | Y, N |
prevddNav | number(22) | 전일순자산가치 | ETF종목일 경우 소수점 2자리로 표현, 일반종목은 0 |
Request Example
Response Example
주식종목 종가 API
/v2/market/stocks/{marketcode}/{issuecode}/closeprice
GET
https://{APIGWAddr}/v2/market/stocks/{marketcode}/{issuecode}/closeprice
종목 당일 종가제공
Path Parameters
Name | Type | Description |
---|---|---|
marketcode | string | 시장구분 (kospi | kosdaq) |
issuecode | string | 종목코드 ex)005930 |
Response Parameters
Name | Type | Description | |
isuSrtCd | String(9) | 종목단축코드 | 예) KR7000660001 → 000660 |
cmpprevddTpCd | String(1) | 전일대비구분코드 | 1:상한/2:상승/3:보합/4:하한/5:하락/6:기세상한/7:기세상승/8:기세하한/9:기세하락 |
cmpprevddPrc | number(11) | 전일대비가격 | 단위:원 / 신주인수권 증서&증권의 신규 상장 당일 : 0 |
opnprc | number(11) | 시가 | 단위:원 |
hgprc | number(11) | 고가 | 단위:원 |
lwprc | number(11) | 저가 | 단위:원 |
trdPrc | number(11) | 체결가격 | |
accTrdvol | number(12) | 누적체결수량,누적거래량 | 단위:주 |
accTrdval | number(22) | 누적거래대금 | 단위:원 |
Request Example
Response Example
주식종목 체결 API
/v2/market/stocks/{marketcode}/{issuecode}/price
GET
https://{APIGWAddr}/v2/market/stocks/{marketcode}/{issuecode}/price
Path Parameters
Name | Type | Description |
---|---|---|
marketcode | string | 시장구분 (kospi | kosdaq) |
issuecode | string | 종목코드 ex)005930 |
Response Parameters
Name | Type | Description | |
isuSrtCd | string(9) | 종목단축코드 | 예) KR7000660001 → 000660 |
cmpprevddTpCd | string(1) | 전일대비구분코드 | 1:상한/2:상승/3:보합/4:하한/5:하락/6:기세상한/7:기세상승/8:기세하한/9:기세하락 |
cmpprevddPrc | number(11) | 전일대비가격 | 단위:원 / 신주인수권 증서&증권의 신규 상장 당일 : 0 |
opnprc | number(11) | 시가 | 단위:원 |
hgprc | number(11) | 고가 | 단위:원 |
lwprc | number(11) | 저가 | 단위:원 |
trdPrc | number(11) | 체결가격 | 0 |
trdvol | number(10) | 체결수량, 거래량 | 0 |
accTrdvol | number(12) | 누적체결수량,누적거래량 | 단위:주 |
accTrdval | number(22) | 누적거래대금 | 단위:원 |
lstAskbidTpCd | string(1) | 최종매도매수구분코드 | 1:매도, 2:매수 (최종으로 들어온 호가의 매도매수구분값) |
trdTm | string(8) | 체결시각,거래시각 | *테이블 하단 참고 |
askordPrc_1 | number(11) | 매도호가가격_1 | 단위:원 (체결+우선호가 발생시에만 전송) |
bidordPrc_1 | number(11) | 매수호가가격_1 | 단위:원 |
trdTm
HHMMSSmm 형태로 시간전송
정규장 개시전 또는 정규장 체결 발생 이전 : 0
장운영시그널, 대량체결 포함
※ 장운영시그널
정규장마감(15:00):31000000 /장종료시간외마감(15:30):41000000 /단일가마감(18:00):81000000 /일반Buy-in마감(18:00):91000007 /당일Buy-in마감(18:00):91000008
※ 대량체결시
장전대량매매체결:51000000 /장중대량매매체결:61000000 /장후대량매매체결:71000000
Request Example
Response Example
주식종목 호가잔량 API
LP호가 제외
/v2/market/stocks/{marketcode}/{issuecode}/orderbook
GET
https://{APIGWAddr}/v2/market/stocks/{marketcode}/{issuecode}/orderbook
Path Parameters
Name | Type | Description |
---|---|---|
marketcode | string | 시장구분 (kospi | kosdaq) |
issuecode | string | 종목코드 ex)005930 |
Response Parameters
Name | Type | Description | |
isuSrtCd | string(9) | 종목단축코드 | 예) KR7000660001 -> 000660 |
accTrdvol | number(12) | 누적체결수량,누적거래량 | 단위: 주 |
askStep1BstordPrc | number(11) | 매도1단계우선호가가격 | |
bidStep1BstordPrc | number(11) | 매수1단계우선호가가격 | |
askStep1BstordRqty | number(12) | 매도1단계우선호가잔량 | |
bidStep1BstordRqty | number(12) | 매수1단계우선호가잔량 | |
askStep2BstordPrc | number(11) | 매도2단계우선호가가격 | |
bidStep2BstordPrc | number(11) | 매수2단계우선호가가격 | |
askStep2BstordRqty | number(12) | 매도2단계우선호가잔량 | |
bidStep2BstordRqty | number(12) | 매수2단계우선호가잔량 | |
askStep3BstordPrc | number(11) | 매도3단계우선호가가격 | |
bidStep3BstordPrc | number(11) | 매수3단계우선호가가격 | |
askStep3BstordRqty | number(12) | 매도3단계우선호가잔량 | |
bidStep3BstordRqty | number(12) | 매수3단계우선호가잔량 | |
askStep4BstordPrc | number(11) | 매도4단계우선호가가격 | |
bidStep4BstordPrc | number(11) | 매수4단계우선호가가격 | |
askStep4BstordRqty | number(12) | 매도4단계우선호가잔량 | |
bidStep4BstordRqty | number(12) | 매수4단계우선호가잔량 | |
askStep5BstordPrc | number(11) | 매도5단계우선호가가격 | |
bidStep5BstordPrc | number(11) | 매수5단계우선호가가격 | |
askStep5BstordRqty | number(12) | 매도5단계우선호가잔량 | |
bidStep5BstordRqty | number(12) | 매수5단계우선호가잔량 | |
askStep6BstordPrc | number(11) | 매도6단계우선호가가격 | |
bidStep6BstordPrc | number(11) | 매수6단계우선호가가격 | |
askStep6BstordRqty | number(12) | 매도6단계우선호가잔량 | |
bidStep6BstordRqty | number(12) | 매수6단계우선호가잔량 | |
askStep7BstordPrc | number(11) | 매도7단계우선호가가격 | |
bidStep7BstordPrc | number(11) | 매수7단계우선호가가격 | |
askStep7BstordRqty | number(12) | 매도7단계우선호가잔량 | |
bidStep7BstordRqty | number(12) | 매수7단계우선호가잔량 | |
askStep8BstordPrc | number(11) | 매도8단계우선호가가격 | |
bidStep8BstordPrc | number(11) | 매수8단계우선호가가격 | |
askStep8BstordRqty | number(12) | 매도8단계우선호가잔량 | |
bidStep8BstordRqty | number(12) | 매수8단계우선호가잔량 | |
askStep9BstordPrc | number(11) | 매도9단계우선호가가격 | |
bidStep9BstordPrc | number(11) | 매수9단계우선호가가격 | |
askStep9BstordRqty | number(12) | 매도9단계우선호가잔량 | |
bidStep9BstordRqty | number(12) | 매수9단계우선호가잔량 | |
askStep10BstordPrc | number(11) | 매도10단계우선호가가격 | |
bidStep10BstordPrc | number(11) | 매수10단계우선호가가격 | |
askStep10BstordRqty | number(12) | 매도10단계우선호가잔량 | |
bidStep10BstordRqty | number(12) | 매수10단계우선호가잔량 | |
askordTotRqty | number(12) | 매도호가총잔량 | |
bidordTotRqty | number(12) | 매수호가총잔량 | |
pstoffhrAskTotOrdRqty | number(15) | 장종료후시간외매도총호가잔량 | |
pstoffhrBidTotOrdRqty | number(15) | 장종료후시간외매수총호가잔량 | |
deemTrdPrc | number(11) | 예상체결가격 | |
deemTrdvol | number(12) | 예상체결수량 | |
deemAccTrdvol | number(12) | 예상누적체결수량 |
Request Example
Response Example
주식종목별 투자자별 종가 API
/v2/market/stocks/{marketcode}/{issuecode}/investors
GET
https://{APIGWAddr}/v2/market/stocks/{marketcode}/{issuecode}/investors
Path Parameters
Name | Type | Description |
---|---|---|
marketcode | string | 시장구분 (kospi | kosdaq) |
issuecode | string | 종목코드 ex)005930 |
Response Parameters
Name | Type | Description |
isuSrtCd | string(9) | 종목단축코드 |
invstLists | Array(4) | 투자자리스트 |
invstCd | string(4) | 투자자코드 (참조 :투자자코드표') |
askTrdvol | number(10) | 매도체결수량,매도거래량 |
askTrdval | number(22) | 매도거래대금 |
bidTrdvol | number(10) | 매수체결수량,매수거래량 |
bidTrdval | number(22) | 매수거래대금 |
Request Example
Response Example
KOSPI/KOSDAQ 지수 투자자 마감정보 API
/v2/market/stocks/{marketcode}/investors
GET
https://{APIGWAddr}/v2/market/stocks/{marketcode}/investors
Path Parameters
Name | Type | Description |
---|---|---|
marketcode | string | 시장구분 (kospi | kosdaq) |
Response Parameters
Name | Type | Description | |
Tm | string(8) | 장시간 | HHMMSSmm |
invstLists | Array(4) | 투자자리스트 | |
invstCd | string(4) | 투자자코드 | '투자자코드표' 참조 |
askTrdvol | number(10) | 매도체결수량,매도거래량 | |
askTrdval | number(22) | 매도거래대금 | |
bidTrdvol | number(10) | 매수체결수량,매수거래량 | |
bidTrdval | number(22) | 매수거래대금 |
Request Example
Response Example
KOSPI/KOSDAQ 지수 API
/v2/market/stocks/{marketcode}/index
GET
https://{APIGWAddr}/v2/market/stocks/{marketcode}/index
Path Parameters
Name | Type | Description |
---|---|---|
marketcode | string | 시장구분 (kospi | kosdaq) |
Response Parameters
Name | Type | Description | |
isuSrtCd | String(9) | 종목단축코드 | 예) KR7000660001 → 000660 |
cmpprevddTpCd | String(1) | 전일대비구분코드 | 1:상한/2:상승/3:보합/4:하한/5:하락/6:기세상한/7:기세상승/8:기세하한/9:기세하락 |
cmpprevddPrc | number(11) | 전일대비가격 | 단위:원 / 신주인수권 증서&증권의 신규 상장 당일 : 0 |
opnprc | number(11) | 시가 | 단위:원 |
hgprc | number(11) | 고가 | 단위:원 |
lwprc | number(11) | 저가 | 단위:원 |
trdPrc | number(11) | 체결가격 | |
accTrdvol | number(12) | 누적체결수량,누적거래량 | 단위:주 |
accTrdval | number(22) | 누적거래대금 | 단위:원 |
isuCnt | number(16) | 종목수 | |
listShrs | number(16) | 상장주식수,상장증권수 | 업종상장주식수 단위는 천주, 그외는 1주 |
mktcap | number(22) | 시가총액 | 단위: 업종-백만 |
Request Example
Response Example
주식 거래 상위 회원사 API
/v2/market/stocks/{marketcode}/{issuecode}/traderanking
GET
https://{APIGWAddr}/v2/market/stocks/{marketcode}/{issuecode}/traderanking
Path Parameters
Name | Type | Description |
---|---|---|
marketcode | string | 시장구분 (kospi | kosdaq) |
issuecode | string | 종목코드 ex)005930 |
Response Parameters
Name | Type | Description | |
bidTrdMbr1 | string(64) | 매수상위회원명1 | 매수랭킹 TOP5 1위 회원사 한글명 |
bidTrdMbr2 | string(64) | 매수상위회원명2 | 매수랭킹 TOP5 2위 회원사 한글명 |
bidTrdMbr3 | string(64) | 매수상위회원명3 | 매수랭킹 TOP5 3위 회원사 한글명 |
bidTrdMbr4 | string(64) | 매수상위회원명4 | 매수랭킹 TOP5 4위 회원사 한글명 |
bidTrdMbr5 | string(64) | 매수상위회원명5 | 매수랭킹 TOP5 5위 회원사 한글명 |
askTrdMbr1 | string(64) | 매도상위회원명1 | 매도랭킹 TOP5 1위 회원사 한글명 |
askTrdMbr2 | string(64) | 매도상위회원명2 | 매도랭킹 TOP5 2위 회원사 한글명 |
askTrdMbr3 | string(64) | 매도상위회원명3 | 매도랭킹 TOP5 3위 회원사 한글명 |
askTrdMbr4 | string(64) | 매도상위회원명4 | 매도랭킹 TOP5 4위 회원사 한글명 |
askTrdMbr5 | string(64) | 매도상위회원명5 | 매도랭킹 TOP5 5위 회원사 한글명 |
bidTrdVolMbr1 | number(11) | 매수상위거래량 회원1 | 매수랭킹 TOP5 1위 회원사 거래량 |
bidTrdVolMbr2 | number(11) | 매수상위거래량 회원2 | |
bidTrdVolMbr3 | number(11) | 매수상위거래량 회원3 | |
bidTrdVolMbr4 | number(11) | 매수상위거래량 회원4 | |
bidTrdVolMbr5 | number(11) | 매수상위거래량 회원5 | |
askTrdVolMbr1 | number(11) | 매도상위거래량 회원1 | 매도랭킹 TOP5 1위 회원사 거래량 |
askTrdVolMbr2 | number(11) | 매도상위거래량 회원2 | |
askTrdVolMbr3 | number(11) | 매도상위거래량 회원3 | |
askTrdVolMbr4 | number(11) | 매도상위거래량 회원4 | |
askTrdVolMbr5 | number(11) | 매도상위거래량 회원5 | |
bidTrdAmtMbr1 | number(11) | 매수상위거래금액 회원1 | 매수랭킹 TOP5 1위 회원사 거래금액 |
bidTrdAmtMbr2 | number(11) | 매수상위거래금액 회원2 | |
bidTrdAmtMbr3 | number(11) | 매수상위거래금액 회원3 | |
bidTrdAmtMbr4 | number(11) | 매수상위거래금액 회원4 | |
bidTrdAmtMbr5 | number(11) | 매수상위거래금액 회원5 | |
askTrdAmtMbr1 | number(11) | 매도상위거래금액 회원1 | 매도랭킹 TOP5 1위 회원사 거래금액 |
askTrdAmtMbr2 | number(11) | 매도상위거래금액 회원2 | |
askTrdAmtMbr3 | number(11) | 매도상위거래금액 회원3 | |
askTrdAmtMbr4 | number(11) | 매도상위거래금액 회원4 | |
askTrdAmtMbr5 | number(11) | 매도상위거래금액 회원5 | |
bidTrdPrcMbr1 | number(11) | 매수상위거래단가 회원1 | 매수랭킹 TOP5 1위 회원사 거래단가 |
bidTrdPrcMbr2 | number(11) | 매수상위거래단가 회원2 | |
bidTrdPrcMbr3 | number(11) | 매수상위거래단가 회원3 | |
bidTrdPrcMbr4 | number(11) | 매수상위거래단가 회원4 | |
bidTrdPrcMbr5 | number(11) | 매수상위거래단가 회원5 | |
askTrdPrcMbr1 | number(11) | 매도상위거래단가 회원1 | 매도랭킹 TOP5 1위 회원사 거래단가 |
askTrdPrcMbr2 | number(11) | 매도상위거래단가 회원2 | |
askTrdPrcMbr3 | number(11) | 매도상위거래단가 회원3 | |
askTrdPrcMbr4 | number(11) | 매도상위거래단가 회원4 | |
askTrdPrcMbr5 | number(11) | 매도상위거래단가 회원5 | |
bidTrdWtMbr1 | number(5) | 매수상위거래비중 회원1 | 매수랭킹 TOP5 1위 회원사 거래비중 (백분율, X100) |
bidTrdWtMbr2 | number(5) | 매수상위거래비중 회원2 | |
bidTrdWtMbr3 | number(5) | 매수상위거래비중 회원3 | |
bidTrdWtMbr4 | number(5) | 매수상위거래비중 회원4 | |
bidTrdWtMbr5 | number(5) | 매수상위거래비중 회원5 | |
askTrdWtMbr1 | number(5) | 매도상위거래비중 회원1 | 매도랭킹 TOP5 1위 회원사 거래비중 (백분율, X100) |
askTrdWtMbr2 | number(5) | 매도상위거래비중 회원2 | |
askTrdWtMbr3 | number(5) | 매도상위거래비중 회원3 | |
askTrdWtMbr4 | number(5) | 매도상위거래비중 회원4 | |
askTrdWtMbr5 | number(5) | 매도상위거래비중 회원5 |
Request Example
Response Example
주식종목(ETF) 장마감후 순자산가치 API
/v2/market/stocks/{marketcode}/{issuecode}/closenav
GET
https://{APIGWAddr}/v2/market/stocks/{marketcode}/{issuecode}/closenav
Path Parameters
Name | Type | Description |
---|---|---|
marketcode | string | 시장구분 (kospi | kosdaq) |
issuecode | string | 종목코드 ex)005930 |
Response Parameters
Name | Type | Description | |
isuSrtCd | string(9) | 종목단축코드 | 예) KR7000660001 → 000660 |
nav | number(11) | 순자산가치 | |
cmpprevddNav | number(11) | 전일대비순자산가치 |
Request Example
Response Example
주식 공매도 API
/v2/market/stocks/{marketcode}/{issuecode}/shortsell
GET
https://{APIGWAddr}/v2/market/stocks/{marketcode}/{issuecode}/shortsell
Path Parameters
Name | Type | Description |
---|---|---|
marketcode | string | 시장구분 (kospi | kosdaq) |
issuecode | string | 종목코드 ex)005930 |
Query Parameters
Name | Type | Description |
---|---|---|
inqStrtDd | string | 조회시작일자 |
inqEndDd | string | 조회종료일자 |
Response Parameter
Name | Type | Description | |
isuSrtCd | string(9) | 종목단축코드 | 예) KR7000660001 → 000660 |
hisLists | Array(4) | 과거리스트 | |
trdDd | string(8) | 체결일자,거래일자,매매일자 | YYYYMMDD |
srtsellTrdvol | number(11) | 공매도거래량 | 공매도거래량(주식수, 전일기준) |
srtsellTrdAmt | number(11) | 공매도거래금액 | 공매도거래금액(주식수, 전일기준) |
lendBalQty | number(11) | 대차잔고수량 | 대차잔고수량(주식수, 전일기준) |
lendBalAmt | number(11) | 대차잔고금액 | 단위 1,000 원 |
Request Example
Response Example
주식 종목 일중 API
/v2/market/stocks/{marketcode}/{issuecode}/intraday
GET
https://{APIGWAddr}/v2/market/stocks/{marketcode}/{issuecode}/intraday
최대 100건 까지만 조회 가능
Path Parameters
Name | Type | Description |
---|---|---|
marketcode | string | 시장구분 |
issuecode | string | 종목코드 |
Query Parameters
Name | Type | Description |
---|---|---|
inddCycleTpCd | string | 일중전송주기구분코드 구분코드 (10:10초, 60:1분, 600:10분) |
inqStrtDd | string | 조회시작일자 (YYYYMMDD) |
strtTm | string | 개시시각,시작시각 (HHMM) |
endTm | string | 종료시각 (HHMM) |
Response Parameters
Name | Type | Description | |
isuSrtCd | String(9) | 종목단축코드 | |
isuNm | String(80) | 종목명 | |
hisLists | Array(4) | 과거리스트 | |
inddTm | string(8) | 일중시간 | HH:MM:SS |
inddOpnprc | number(11) | 일중시가 | 일중데이타(10초, 1분, 10분) |
inddHgprc | number(11) | 일중고가 | 일중데이타(10초, 1분, 10분) |
inddLwprc | number(11) | 일중저가 | 일중데이타(10초, 1분, 10분) |
inddClsprc | number(11) | 일중종가 | 일중데이타(10초, 1분, 10분) |
inddTrdvol | number(11) | 일중거래량 | 일중데이타(10초, 1분, 10분) |
Request Example
Response Example
주식 외국인보유율 히스토리 API
/v2/market/stocks/{marketcode}/{issuecode}/foreignhistory
GET
https://{APIGWAddr}/v2/market/stocks/{marketcode}/{issuecode}/foreignhistory
최대 100건 까지만 조회 가능
Path Parameters
Name | Type | Description |
---|---|---|
marketcode | string | 시장구분 |
issuecode | string | 종목코드 |
Query Parameters
Name | Type | Description |
---|---|---|
inqStrtDd | string | 조회시작일자 (YYYYMMDD) |
inqEndDd | string | 조회종료일자 |
reqCnt | number | 요청건수 (최대100건) |
Response Parameters
Name | Type | Description | |
isuSrtCd | String(9) | 종목단축코드 | |
hisLists | Array(4) | 과거리스트 | |
trdDd | string(8) | 체결일자,거래일자,매매일자 | |
FornHdVol | number(11) | 외국인보유주식수 | |
cmpprevddFornHdVol | number(11) | 외국인보유주식수전일대비 | |
FornHdVolRt | number(5) | 외국인보유율 |
Request Example
Response Example
주식 종목 히스토리
/v2/market/stocks/{marketcode}/{issuecode}/history
GET
https://{APIGWAddr}/v2/market/stocks/{marketcode}/{issuecode}/history
Path Parameters
Name | Type | Description |
---|---|---|
marketcode | string | 시장구분 |
issuecode | string | 종목코드 |
Query Parameters
Name | Type | Description |
---|---|---|
trnsmCycleTpCd | string | 전송주기구분코드 (D:일별, W:주별, M:월별) 해당기간의 마지막영업일 기준시세. ex) W:주-금요일, M:월-31일 |
inqStrtDd | string | 조회시작일자 (YYYYMMDD) |
inqEndDd | string | 조회종료일자 (YYYYMMDD) |
reqCnt | number | 요청건수 (최대 100건) |
Response Parameters
Name | Type | Description | |
isuSrtCd | String(3) | 종목단축코드 | |
hisLists | Array(4) | 과거리스트 | |
trdDd | string(8) | 체결일자,거래일자,매매일자 | YYYYMMDD |
trdPrc | number(11) | 체결가격 | |
cmpprevddTpCd | string(1) | 전일대비구분코 | 1:상한/2:상승/3:보합/4:하한/5:하락/6:기세상한/7:기세상승/8:기세하한/9:기세하락 |
cmpprevddPrc | number(11) | 전일대비가격 | 단위:원 / 신주인수권 증서,증권의 신규 상장 당일 : 0 |
accTrdvol | number(12) | 누적체결수량,누적거래량 | 단위:주 |
accTrdval | number(22) | 누적거래대금 | 단위:원 |
opnprc | number(11) | 시가 | 단위:원 |
hgprc | number(11) | 고가 | 단위:원 |
lwprc | number(11) | 저가 | 단위:원 |
Request Example
Response Example
Last updated