重命名

This commit is contained in:
2025-10-19 12:02:46 +08:00
parent 7afe3b21e6
commit 2f139cfbe9
2 changed files with 0 additions and 0 deletions

13
chart_crypto.py Normal file
View File

@@ -0,0 +1,13 @@
import pandas as pd
from chart import QuantChart
if __name__ == "__main__":
symbol = "ETH_USDT"
timeframe = "1d"
data_path = f"/Users/aszer/Documents/vscode/cta/user_data/data/okx/{symbol}-{timeframe}.feather"
df = pd.read_feather(data_path)
df.rename(columns={"date": "time"}, inplace=True)
print(df.head())
quant_chart = QuantChart()
quant_chart.plot_chart(df, symbol=symbol, name=symbol, timeframe=timeframe, init_visible_num_bars=180)