Pezh commited on
Commit
20050a6
β€’
1 Parent(s): 448e1f1

Rename Pas.py to appo.py

Browse files
Files changed (1) hide show
  1. Pas.py β†’ appo.py +5 -1
Pas.py β†’ appo.py RENAMED
@@ -1,5 +1,6 @@
1
  import ccxt
2
  import pandas as pd
 
3
  import xgboost as xgb
4
  from sklearn.metrics import r2_score
5
  from sklearn.model_selection import train_test_split
@@ -62,13 +63,16 @@ def execute_trade(exchange, symbol, side, amount):
62
 
63
  symbol = 'BTC/USDT'
64
  timeframe = '1h'
65
- limit = 100000
66
  lags = 12
67
  test_size = 0.3
68
 
69
  ohlcv_data = fetch_ohlcv_data(symbol, timeframe, limit)
70
  df = data_to_dataframe(ohlcv_data)
71
 
 
 
 
72
  X, y = prepare_dataset(df, lags)
73
  X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=test_size)
74
 
 
1
  import ccxt
2
  import pandas as pd
3
+ import streamlit as st
4
  import xgboost as xgb
5
  from sklearn.metrics import r2_score
6
  from sklearn.model_selection import train_test_split
 
63
 
64
  symbol = 'BTC/USDT'
65
  timeframe = '1h'
66
+ limit = 1000
67
  lags = 12
68
  test_size = 0.3
69
 
70
  ohlcv_data = fetch_ohlcv_data(symbol, timeframe, limit)
71
  df = data_to_dataframe(ohlcv_data)
72
 
73
+ if st.button("hoo"):
74
+ st.write(df)
75
+
76
  X, y = prepare_dataset(df, lags)
77
  X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=test_size)
78