This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5.QtWidgets import * | |
import win32com.client | |
import pandas as pd | |
import os | |
g_objCodeMgr = win32com.client.Dispatch('CpUtil.CpCodeMgr') | |
g_objCpStatus = win32com.client.Dispatch('CpUtil.CpCybos') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5.QtWidgets import * | |
import win32com.client | |
import pandas as pd | |
import os | |
g_objCodeMgr = win32com.client.Dispatch('CpUtil.CpStockCode') | |
g_objCpStatus = win32com.client.Dispatch('CpUtil.CpCybos') | |
g_objCpTrade = win32com.client.Dispatch('CpTrade.CpTdUtil') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5.QtWidgets import * | |
from PyQt5.QtCore import QTimer | |
import win32com.client | |
import time | |
g_objCodeMgr = win32com.client.Dispatch('CpUtil.CpCodeMgr') | |
g_objCpStatus = win32com.client.Dispatch('CpUtil.CpCybos') | |
g_objCpTrade = win32com.client.Dispatch('CpTrade.CpTdUtil') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5.QtWidgets import * | |
import win32com.client | |
from pandas import Series, DataFrame | |
import pandas as pd | |
import locale | |
import os | |
locale.setlocale(locale.LC_ALL, '') | |
# cp object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5.QtWidgets import * | |
import win32com.client | |
# 설명: 주식 계좌잔고 종목(최대 200개)을 가져와 현재가 실시간 조회하는 샘플 | |
# CpEvent: 실시간 현재가 수신 클래스 | |
# CpStockCur : 현재가 실시간 통신 클래스 | |
# Cp6033 : 주식 잔고 조회 | |
# CpMarketEye: 복수 종목 조회 서비스 - 200 종목 현재가를 조회 함. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5.QtWidgets import * | |
import win32com.client | |
# 설명: 당일 상승률 상위 200 종목을 가져와 현재가 실시간 조회하는 샘플 | |
# CpEvent: 실시간 현재가 수신 클래스 | |
# CpStockCur : 현재가 실시간 통신 클래스 | |
# Cp7043 : 상승률 상위 종목 통신 서비스 - 연속 조회를 통해 200 종목 가져옴 | |
# CpMarketEye: 복수 종목 조회 서비스 - 200 종목 현재가를 조회 함. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import win32com.client | |
# 연결 여부 체크 | |
objCpCybos = win32com.client.Dispatch("CpUtil.CpCybos") | |
bConnect = objCpCybos.IsConnect | |
if (bConnect == 0): | |
print("PLUS가 정상적으로 연결되지 않음. ") | |
exit() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5.QtWidgets import * | |
import win32com.client | |
# 요약: MACD 지표 데이터 실시간 구하기 | |
# : 차트 OBJECT 를 통해 차트 데이터를 받은 후 | |
# : 지표 실시간 계산 OBJECT 를 통해 지표 데이터를 계산 | |
class CpEvent: | |
def set_params(self, client, objCaller): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5.QtWidgets import * | |
import win32com.client | |
# 복수 종목 실시간 조회 샘플 (조회는 없고 실시간만 있음) | |
class CpEvent: | |
def set_params(self, client): | |
self.client = client | |
def OnReceived(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5.QtWidgets import * | |
import win32com.client | |
class CpEvent: | |
def set_params(self, client): | |
self.client = client | |
def OnReceived(self): |