Spaces:
Running
Running
Create js/state.js
Browse files- js/state.js +7 -0
js/state.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export const state = {
|
| 2 |
+
candles: [], // The full 1000 candle history
|
| 3 |
+
socket: null, // Active WebSocket
|
| 4 |
+
isReplay: false, // Are we replaing?
|
| 5 |
+
replayIndex: 0, // Current replay position
|
| 6 |
+
replayTimer: null // Timer for simulation
|
| 7 |
+
};
|