Files
kis_trader/scratch/show_trade_cols.py

10 lines
249 B
Python

from database import TradeDB
db = TradeDB()
try:
cols = db.conn.execute("SHOW COLUMNS FROM trade_history").fetchall()
print("--- trade_history 테이블 컬럼 ---")
for r in cols:
print(dict(r)['Field'])
finally:
db.close()