适配最新QuantChart
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import pandas as pd
|
||||
from chart import plot_chart
|
||||
from chart import QuantChart
|
||||
|
||||
if __name__ == "__main__":
|
||||
symbol = "ETH_USDT"
|
||||
@@ -9,4 +9,5 @@ if __name__ == "__main__":
|
||||
|
||||
df.rename(columns={"date": "time"}, inplace=True)
|
||||
print(df.head())
|
||||
plot_chart(df, symbol=symbol, name=symbol, timeframe=timeframe)
|
||||
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