新增: - README.md: 完整的项目说明文档 - 系统简介和核心特性 - 技术栈和目录结构 - 快速开始和配置说明 - 使用示例和开发文档 - 数据表设计和扩展指南 - 更新日志和常见问题 整理: - 移动临时测试脚本到 tests/temp/ 目录 - check_1m_data.py - check_indicators.py - check_precision.py - check_tables.py - check_table_structure.py - test_calc_indicators.py
19 lines
418 B
Python
19 lines
418 B
Python
import pymysql
|
|
|
|
conn = pymysql.connect(
|
|
host="localhost", user="root", password="1234", database="qtrade_backtest"
|
|
)
|
|
cursor = conn.cursor()
|
|
|
|
print("=== indicators_1m_macd 表结构 ===")
|
|
cursor.execute("DESCRIBE indicators_1m_macd")
|
|
for row in cursor.fetchall():
|
|
print(row)
|
|
|
|
print("\n=== klines_1m 表结构 ===")
|
|
cursor.execute("DESCRIBE klines_1m")
|
|
for row in cursor.fetchall():
|
|
print(row)
|
|
|
|
conn.close()
|