Skip to content

devkang89/QWebview-plus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QWebview-plus

  • 키움 오픈 API+ for JavaScript를 지원하는 Webkit2 기반의 WebView
  • ES5 지원

Development Environment

키움 Open API+를 제공하는 kiwoom 객체 제공

window.kiwoom

  • 키움 오픈 API와 동일한 메소드를 제공
  • 키움 오픈 API와 네이밍 규칙이 다름
    • 첫 문자가 대문자 아닌 소문자 CommConnect => commConnect

이벤트

  • 키움 오픈 API와 동일한 이벤트를 제공
  • 모든 이벤트는 document에서 발생한다.
  • 키움 오픈 API와 네이밍 규칙이 다름
    • kiwoom 이라는 event namespace가 붙음
    • 이벤트 명에서 on이라는 prefix가 제거하고, 첫 문자를 소문자로 변경 OnReceiveTrData => receiveTrData.kiwoom
    • 이벤트에 의해 전달되는 속성은 detail에 포함되어 전달됨
    • 이벤트에 전달되는 속성명은 타입약어가 제거되고, 첫 문자를 소문자로 변경 sScrNo => scrNo

사용 예

python main.py -f [실행할 html 파일명]

실행할 파일을 입력하지 않을 경우, 기본적으로 index.html을 부른다.

  • -f 시작 페이지 경로 (기본: ./index.html)

QWebview-Plus에서 제공하는 kiwoom 객체와 이벤트를 손쉽게 사용할 수 있는 유틸

별도의 프로젝트로 관리 https://github.com/sculove/Kiwoom-Helper

License

Licensed under MIT:

https://opensource.org/licenses/MIT

About

QWebview supports Kiwoom Open API+ for JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 84.5%
  • HTML 15.5%