This file contains 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 | |
import os | |
from PyQt5.QAxContainer import * | |
from PyQt5.QtCore import * | |
from config.errCode import * | |
from beautifultable import BeautifulTable | |
from PyQt5.QtTest import * | |
import sqlite3 | |
from datetime import date |
This file contains 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 | |
import os | |
from PyQt5.QAxContainer import * | |
from PyQt5.QtCore import * | |
from config.errCode import * | |
from beautifultable import BeautifulTable | |
from PyQt5.QtTest import * | |
import sqlite3 | |
from datetime import date |
This file contains 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 java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.OutputStreamWriter; | |
public class Main { | |
public static void main(String[] args) throws IOException { | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); |
This file contains 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 | |
import os | |
from PyQt5.QAxContainer import * | |
from PyQt5.QtCore import * | |
from config.errCode import * | |
from beautifultable import BeautifulTable | |
from PyQt5.QtTest import * | |
import sqlite3 | |
This file contains 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
def granvile_theory(self): | |
query = "SELECT name FROM sqlite_master WHERE type='table'" | |
self.cursor.execute(query) | |
for row in self.cursor.fetchall(): | |
table_name = "\"" + row[0] + "\"" | |
query = "SELECT * from {}".format(table_name) | |
self.cursor.execute(query) | |
calculator_list = [] | |
for item in self.cursor.fetchall(): |
This file contains 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
def save_day_kiwoom_db(self, stock_code=None): | |
stock_name = self.dynamicCall("GetMasterCodeName(QString)", stock_code) | |
table_name = "\"" + stock_name + "\"" | |
query = "SELECT name FROM sqlite_master WHERE type='table'" | |
self.cursor.execute(query) | |
for row in self.cursor.fetchall(): | |
if row[0] == stock_name: | |
return |
This file contains 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
else: | |
# 120일 이동 평균선의 가격을 구함. | |
total_price = 0 | |
for value in self.calculator_list[:120]: | |
total_price += int(value[1]) | |
moving_average_price = total_price / 120 | |
# 오늘의 주가가 120일 이동 평균선에 걸쳐 있는가? | |
is_stock_price_bottom = False | |
today_price = None |
This file contains 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 | |
import os | |
from PyQt5.QAxContainer import * | |
from PyQt5.QtCore import * | |
from config.errCode import * | |
from beautifultable import BeautifulTable | |
from PyQt5.QtTest import * | |
import sqlite3 | |
This file contains 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 | |
import os | |
from PyQt5.QAxContainer import * | |
from PyQt5.QtCore import * | |
from config.errCode import * | |
from beautifultable import BeautifulTable | |
from PyQt5.QtTest import * | |
class Kiwoom(QAxWidget): |
This file contains 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 | |
import os | |
from PyQt5.QAxContainer import * | |
from PyQt5.QtCore import * | |
from config.errCode import * | |
from beautifultable import BeautifulTable | |
class Kiwoom(QAxWidget): | |
def __init__(self): |
NewerOlder