메뉴 여닫기
개인 메뉴 토글
로그인하지 않음
만약 지금 편집한다면 당신의 IP 주소가 공개될 수 있습니다.

대신증권 PER EPS 조회

데브카페
Devcafe (토론 | 기여)님의 2025년 8월 13일 (수) 16:53 판 (새 문서: <source lang=python> import win32com.client # Create Object instMarketEye = win32com.client.Dispatch("CpSysDib.MarketEye") # SetInputValue instMarketEye.SetInputValue(0, (4, 67, 70, 111)) instMarketEye.SetInputValue(1, 'A003540') # BlockRequest instMarketEye.BlockRequest() # GetData print("현재가: ", instMarketEye.GetDataValue(0, 0)) print("PER: ", instMarketEye.GetDataValue(1, 0)) print("EPS: ", instMarketEye.GetDataValue(2, 0)) print("최근분기년월: ", instMarketEy...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
import win32com.client

# Create Object
instMarketEye = win32com.client.Dispatch("CpSysDib.MarketEye")

# SetInputValue
instMarketEye.SetInputValue(0, (4, 67, 70, 111))
instMarketEye.SetInputValue(1, 'A003540')

# BlockRequest
instMarketEye.BlockRequest()

# GetData
print("현재가: ", instMarketEye.GetDataValue(0, 0))
print("PER: ", instMarketEye.GetDataValue(1, 0))
print("EPS: ", instMarketEye.GetDataValue(2, 0))
print("최근분기년월: ", instMarketEye.GetDataValue(3, 0))

Comments