From 20a7453e8bc9fb2f9f2314942a32502ffda520d3 Mon Sep 17 00:00:00 2001 From: "GDP\\solonot" Date: Mon, 10 Nov 2025 14:49:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/sfgrid_strategy.py | 3 --- core/strategy_db.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/core/sfgrid_strategy.py b/core/sfgrid_strategy.py index 9f52835..b6b6817 100644 --- a/core/sfgrid_strategy.py +++ b/core/sfgrid_strategy.py @@ -1,6 +1,3 @@ -from peewee import IntegerField - - from core import strategy_db from core.eventbus import EventTradeTargetUpdate, event_bus from core.strategy_db import OrderTypeBuy, OrderTypeInit, OrderTypeSell, TradeTarget diff --git a/core/strategy_db.py b/core/strategy_db.py index 97f2bed..784d021 100644 --- a/core/strategy_db.py +++ b/core/strategy_db.py @@ -1,6 +1,6 @@ from peewee import SqliteDatabase, Model, CharField, IntegerField, FloatField, BooleanField -from xtquant import xtconn, xtconstant +from xtquant import xtconstant # 连接到SQLite数据库 db = SqliteDatabase('example.db')