Spaces:
Sleeping
Sleeping
gjin10969
commited on
Commit
·
c834155
1
Parent(s):
da82418
initialize
Browse files- app.py +2 -2
- signals.json +48 -50
app.py
CHANGED
@@ -26,7 +26,7 @@ image_directory = os.path.join(base_directory, 'images')
|
|
26 |
os.makedirs(image_directory, exist_ok=True)
|
27 |
|
28 |
# Initialize Binance Futures API
|
29 |
-
binance = ccxt.
|
30 |
'options': {'defaultType': 'future'}, # Specify futures
|
31 |
})
|
32 |
|
@@ -142,7 +142,7 @@ def run_real_time():
|
|
142 |
|
143 |
while True:
|
144 |
for timeframe in timeframes:
|
145 |
-
btcdom_symbol = '
|
146 |
btc_symbol = 'BTC/USDT'
|
147 |
btcdom_df = fetch_and_calculate_zscore(btcdom_symbol, timeframe)
|
148 |
btc_df = fetch_and_calculate_zscore(btc_symbol, timeframe)
|
|
|
26 |
os.makedirs(image_directory, exist_ok=True)
|
27 |
|
28 |
# Initialize Binance Futures API
|
29 |
+
binance = ccxt.bybit({
|
30 |
'options': {'defaultType': 'future'}, # Specify futures
|
31 |
})
|
32 |
|
|
|
142 |
|
143 |
while True:
|
144 |
for timeframe in timeframes:
|
145 |
+
btcdom_symbol = 'ETH/USDT'
|
146 |
btc_symbol = 'BTC/USDT'
|
147 |
btcdom_df = fetch_and_calculate_zscore(btcdom_symbol, timeframe)
|
148 |
btc_df = fetch_and_calculate_zscore(btc_symbol, timeframe)
|
signals.json
CHANGED
@@ -15,24 +15,6 @@
|
|
15 |
"current_price": 0.0092516,
|
16 |
"zscore": -0.848579839750643
|
17 |
},
|
18 |
-
{
|
19 |
-
"symbol": "ETH/USDT",
|
20 |
-
"time_frame": "1h",
|
21 |
-
"date_and_time": "2025-02-19 04:00:00",
|
22 |
-
"current_price": 2674.99,
|
23 |
-
"zscore": -0.09842164703262933,
|
24 |
-
"buy_signal": 0,
|
25 |
-
"sell_signal": 0
|
26 |
-
},
|
27 |
-
{
|
28 |
-
"symbol": "ETH/USDT",
|
29 |
-
"time_frame": "4h",
|
30 |
-
"date_and_time": "2025-02-19 04:00:00",
|
31 |
-
"current_price": 2675.0,
|
32 |
-
"zscore": -0.7886916975900665,
|
33 |
-
"buy_signal": 0,
|
34 |
-
"sell_signal": 0
|
35 |
-
},
|
36 |
{
|
37 |
"symbol": "DOGE/USDT",
|
38 |
"time_frame": "1h",
|
@@ -52,83 +34,99 @@
|
|
52 |
"sell_signal": 0
|
53 |
},
|
54 |
{
|
55 |
-
"symbol": "
|
56 |
"time_frame": "1h",
|
57 |
"date_and_time": "2025-02-19 05:00:00",
|
58 |
"realtime_ph_time": "2025-02-19 13:24:07",
|
59 |
-
"current_price": 0
|
60 |
-
"zscore":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
},
|
62 |
{
|
63 |
"symbol": "ATOM/USDT",
|
64 |
"time_frame": "1h",
|
65 |
"date_and_time": "2025-02-19 05:00:00",
|
66 |
-
"realtime_ph_time": "2025-02-19 13:
|
67 |
-
"current_price": 4.
|
68 |
-
"zscore": -0.
|
69 |
},
|
70 |
{
|
71 |
"symbol": "XRP/USDT",
|
72 |
"time_frame": "1h",
|
73 |
"date_and_time": "2025-02-19 05:00:00",
|
74 |
-
"realtime_ph_time": "2025-02-19 13:
|
75 |
-
"current_price": 2.
|
76 |
-
"zscore": -
|
77 |
},
|
78 |
{
|
79 |
-
"symbol": "
|
80 |
"time_frame": "1h",
|
81 |
"date_and_time": "2025-02-19 05:00:00",
|
82 |
-
"realtime_ph_time": "2025-02-19 13:
|
83 |
-
"current_price":
|
84 |
-
"zscore": 0.
|
85 |
},
|
86 |
{
|
87 |
"symbol": "BTC/USDT",
|
88 |
"time_frame": "1h",
|
89 |
"date_and_time": "2025-02-19 05:00:00",
|
90 |
-
"realtime_ph_time": "2025-02-19 13:
|
91 |
-
"current_price":
|
92 |
-
"zscore": -0.
|
93 |
},
|
94 |
{
|
95 |
"symbol": "ADA/USDT",
|
96 |
"time_frame": "4h",
|
97 |
"date_and_time": "2025-02-19 04:00:00",
|
98 |
-
"realtime_ph_time": "2025-02-19 13:
|
99 |
-
"current_price": 0.
|
100 |
-
"zscore": -2.
|
101 |
},
|
102 |
{
|
103 |
"symbol": "ATOM/USDT",
|
104 |
"time_frame": "4h",
|
105 |
"date_and_time": "2025-02-19 04:00:00",
|
106 |
-
"realtime_ph_time": "2025-02-19 13:
|
107 |
-
"current_price": 4.
|
108 |
-
"zscore": -1.
|
109 |
},
|
110 |
{
|
111 |
"symbol": "XRP/USDT",
|
112 |
"time_frame": "4h",
|
113 |
"date_and_time": "2025-02-19 04:00:00",
|
114 |
-
"realtime_ph_time": "2025-02-19 13:
|
115 |
-
"current_price": 2.
|
116 |
-
"zscore": -1.
|
117 |
},
|
118 |
{
|
119 |
-
"symbol": "
|
120 |
"time_frame": "4h",
|
121 |
"date_and_time": "2025-02-19 04:00:00",
|
122 |
-
"realtime_ph_time": "2025-02-19 13:
|
123 |
-
"current_price":
|
124 |
-
"zscore":
|
125 |
},
|
126 |
{
|
127 |
"symbol": "BTC/USDT",
|
128 |
"time_frame": "4h",
|
129 |
"date_and_time": "2025-02-19 04:00:00",
|
130 |
-
"realtime_ph_time": "2025-02-19 13:
|
131 |
-
"current_price":
|
132 |
-
"zscore": -1.
|
133 |
}
|
134 |
]
|
|
|
15 |
"current_price": 0.0092516,
|
16 |
"zscore": -0.848579839750643
|
17 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
{
|
19 |
"symbol": "DOGE/USDT",
|
20 |
"time_frame": "1h",
|
|
|
34 |
"sell_signal": 0
|
35 |
},
|
36 |
{
|
37 |
+
"symbol": "BTCDOM/USDT",
|
38 |
"time_frame": "1h",
|
39 |
"date_and_time": "2025-02-19 05:00:00",
|
40 |
"realtime_ph_time": "2025-02-19 13:24:07",
|
41 |
+
"current_price": 3746.0,
|
42 |
+
"zscore": 0.5070158300134885
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"symbol": "BTCDOM/USDT",
|
46 |
+
"time_frame": "4h",
|
47 |
+
"date_and_time": "2025-02-19 04:00:00",
|
48 |
+
"realtime_ph_time": "2025-02-19 13:24:07",
|
49 |
+
"current_price": 3747.3,
|
50 |
+
"zscore": 1.7310390668012654
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"symbol": "ADA/USDT",
|
54 |
+
"time_frame": "1h",
|
55 |
+
"date_and_time": "2025-02-19 05:00:00",
|
56 |
+
"realtime_ph_time": "2025-02-19 13:54:29",
|
57 |
+
"current_price": 0.7418,
|
58 |
+
"zscore": -1.1329041487259188
|
59 |
},
|
60 |
{
|
61 |
"symbol": "ATOM/USDT",
|
62 |
"time_frame": "1h",
|
63 |
"date_and_time": "2025-02-19 05:00:00",
|
64 |
+
"realtime_ph_time": "2025-02-19 13:54:29",
|
65 |
+
"current_price": 4.5487,
|
66 |
+
"zscore": -0.5823524226750393
|
67 |
},
|
68 |
{
|
69 |
"symbol": "XRP/USDT",
|
70 |
"time_frame": "1h",
|
71 |
"date_and_time": "2025-02-19 05:00:00",
|
72 |
+
"realtime_ph_time": "2025-02-19 13:54:29",
|
73 |
+
"current_price": 2.53,
|
74 |
+
"zscore": -0.7844457920936435
|
75 |
},
|
76 |
{
|
77 |
+
"symbol": "ETH/USDT",
|
78 |
"time_frame": "1h",
|
79 |
"date_and_time": "2025-02-19 05:00:00",
|
80 |
+
"realtime_ph_time": "2025-02-19 13:54:29",
|
81 |
+
"current_price": 2686.99,
|
82 |
+
"zscore": 0.3374813235790789
|
83 |
},
|
84 |
{
|
85 |
"symbol": "BTC/USDT",
|
86 |
"time_frame": "1h",
|
87 |
"date_and_time": "2025-02-19 05:00:00",
|
88 |
+
"realtime_ph_time": "2025-02-19 13:54:29",
|
89 |
+
"current_price": 95318.31,
|
90 |
+
"zscore": -0.15552162766064423
|
91 |
},
|
92 |
{
|
93 |
"symbol": "ADA/USDT",
|
94 |
"time_frame": "4h",
|
95 |
"date_and_time": "2025-02-19 04:00:00",
|
96 |
+
"realtime_ph_time": "2025-02-19 13:54:29",
|
97 |
+
"current_price": 0.742,
|
98 |
+
"zscore": -2.081394845659335
|
99 |
},
|
100 |
{
|
101 |
"symbol": "ATOM/USDT",
|
102 |
"time_frame": "4h",
|
103 |
"date_and_time": "2025-02-19 04:00:00",
|
104 |
+
"realtime_ph_time": "2025-02-19 13:54:29",
|
105 |
+
"current_price": 4.5487,
|
106 |
+
"zscore": -1.648471323144649
|
107 |
},
|
108 |
{
|
109 |
"symbol": "XRP/USDT",
|
110 |
"time_frame": "4h",
|
111 |
"date_and_time": "2025-02-19 04:00:00",
|
112 |
+
"realtime_ph_time": "2025-02-19 13:54:29",
|
113 |
+
"current_price": 2.5309,
|
114 |
+
"zscore": -1.7317668650944205
|
115 |
},
|
116 |
{
|
117 |
+
"symbol": "ETH/USDT",
|
118 |
"time_frame": "4h",
|
119 |
"date_and_time": "2025-02-19 04:00:00",
|
120 |
+
"realtime_ph_time": "2025-02-19 13:54:29",
|
121 |
+
"current_price": 2687.42,
|
122 |
+
"zscore": -0.4215558393212082
|
123 |
},
|
124 |
{
|
125 |
"symbol": "BTC/USDT",
|
126 |
"time_frame": "4h",
|
127 |
"date_and_time": "2025-02-19 04:00:00",
|
128 |
+
"realtime_ph_time": "2025-02-19 13:54:29",
|
129 |
+
"current_price": 95318.31,
|
130 |
+
"zscore": -1.249773333191809
|
131 |
}
|
132 |
]
|