행위

대신증권 per eps

DB CAFE

Dbcafe (토론 | 기여)님의 2019년 12월 24일 (화) 19:03 판
thumb_up 추천메뉴 바로가기


import win32com.client

  1. Create Object

instMarketEye = win32com.client.Dispatch("CpSysDib.MarketEye")

  1. SetInputValue

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

  1. BlockRequest

instMarketEye.BlockRequest()

  1. GetData

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