chore: initial commit with config ignores

This commit is contained in:
ddrwode
2026-02-21 18:25:34 +08:00
commit 343f3a403c
12 changed files with 1195 additions and 0 deletions

21
models/bitmart_15.py Normal file
View File

@@ -0,0 +1,21 @@
from peewee import *
from models import db
class BitMart15(Model):
id = IntegerField(primary_key=True) # 时间戳(毫秒级)
open = FloatField(null=True)
high = FloatField(null=True)
low = FloatField(null=True)
close = FloatField(null=True)
class Meta:
database = db
table_name = 'bitmart_15'
# 连接到数据库
db.connect()
# 创建表(如果表不存在)
db.create_tables([BitMart15])