重命名
This commit is contained in:
13
chart_crypto.py
Normal file
13
chart_crypto.py
Normal 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)
|
||||
Reference in New Issue
Block a user