chore(examples): rename live_trading examples to live_binance (#301)

The examples stream a live Binance feed into the indicators and print signals;
they place no orders, so 'live_trading' overstated them and was inconsistent
with the C/Go/R examples already named live_binance. Rename the Python/Node/WASM
files to live_binance.* and update every reference, run command, header, and the
project-tree listings. Accurate use-case wording ('suitable for live trading
bots') and the risk disclaimers are left unchanged.
This commit is contained in:
kingchenc
2026-06-15 03:41:19 +02:00
committed by GitHub
parent 82d7479011
commit de1112ea91
8 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ Then open the demo you want at `http://localhost:8000/examples/wasm/<file>`.
| --- | --- |
| `index.html` | The original showcase: streams a synthetic price series through six indicators and draws a live `<canvas>` chart with `SMA`, `EMA`, `RSI`, `MACD`, `BollingerBands` and `ATR` cards. |
| `backtest.html` | Backtest: fetches an OHLCV CSV (default the bundled BTCUSDT daily dataset), streams every candle through a basket of eight indicators, prints a summary table. Mirrors `examples/python/backtest.py`. |
| `live_trading.html` | Browser-native `WebSocket` to Binance kline streams; runs RSI / MACD / Bollinger on the incoming closes and flags BUY/SELL candidates when the three agree. Mirrors `examples/python/live_trading.py`. |
| `live_binance.html` | Browser-native `WebSocket` to Binance kline streams; runs RSI / MACD / Bollinger on the incoming closes and flags BUY/SELL candidates when the three agree. Mirrors `examples/python/live_binance.py`. |
| `multi_timeframe.html` | Fetches a 1-minute CSV, rolls it up in-page to 5m / 15m / 1h / 4h / 1d buckets and prints RSI / MACD-histogram / ADX per timeframe. Mirrors `examples/python/multi_timeframe.py`. |
| `parallel_assets.html` | Synthetic `(assets, bars)` panel, serial baseline on the main thread vs. a pool of module Workers each loading its own copy of the WASM module. Mirrors `examples/python/parallel_assets.py`. |
| `parallel_worker.js` | Module worker used by `parallel_assets.html` (not loaded directly). |
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Wickra WASM — live trading</title>
<title>Wickra WASM — live Binance feed</title>
<style>
body { font-family: ui-sans-serif, system-ui, sans-serif; max-width: 980px; margin: 2rem auto; padding: 0 1rem; color: #1d1d1d; }
h1 { margin-bottom: .25rem; }
@@ -22,14 +22,14 @@
</style>
</head>
<body>
<h1>Wickra WASM — live trading</h1>
<h1>Wickra WASM — live Binance feed</h1>
<p class="meta">
Connects to Binance's public kline WebSocket from the browser, streams
every tick through RSI(14), MACD(12,26,9) and Bollinger(20, 2.0) via
the WebAssembly bindings, and flags BUY/SELL candidates when all
three indicators agree. No orders are placed. Mirrors
<code>examples/python/live_trading.py</code> and
<code>examples/node/live_trading.js</code>.
<code>examples/python/live_binance.py</code> and
<code>examples/node/live_binance.js</code>.
</p>
<p>