Close Call · architecture, as built

The candle close decides. Binance holds the stop.

Three places, one job each. The glasses show the countdown and take one tap. A backend on your machine, holding your testnet key, decides at the candle close. Binance Futures testnet keeps a disaster stop resting underneath, placed at arm and independent of both.

The diagram scrolls sideways → or open the full-size PNG

Close Call architecture, as built Even G2 glasses and the lens app talk to a Node backend on your machine, which reads closed bars from the Binance Futures testnet kline stream, decides on the candle close, sends a reduce-only close, and places an exchange-held disaster stop at arm. YOUR PHONE + GLASSES · lens/ YOUR MACHINE · server/ · YOUR TESTNET KEY STAYS HERE BINANCE USD-M FUTURES TESTNET 3 LINES TAP · HOLD FRAMES /WS VETO · ARM COUNTDOWN VETO · ARM CLOSED BAR ARM · FIRE @KLINE_1H REDUCE-ONLY AT ARM ON MARK PRICE Even G2 glasses 576×288 · 3 text lines 1m DEMO closes 0:04 59,202 BELOW 59,359.6 | exits at close tap = skip simulator frame, verbatim (1m DEMO) Lens app renders frames · forwards taps Even Hub SDK 0.0.16 · main.ts Backend API /ws · /api/* · :8787 api.ts · pairing.ts Kline watcher k.x = bar closed · fallback +3 s klines.ts Rule engine decide() on each closed bar 1 s veto grace · 67 s late cap service.ts · engine.ts Order actions reduce-only close · arm stop actions.ts · binance.ts Kline stream btcusdt@kline_1h · 1m demo stream.binancefuture.com Disaster stop STOP_MARKET closePosition POST /fapi/v1/algoOrder Testnet position POST /fapi/v1/order GET /fapi/v2/positionRisk Your line ignores the wick:only a closed bar can trip it. If this machine dies, the disaster stop is still on Binance. LEGEND decides on the close held by Binance our code Binance testnet glasses testnet call local call fires on its own

1 · The close path

The watcher subscribes to btcusdt@kline_1h on the testnet stream; a message with k.x set is a closed bar. No k.x 3 s after the boundary: it reads the last trade before the boundary over REST and accepts it when two consecutive reads agree. decide() waits out the 1 s veto grace; a close past your line writes the intent to disk (server/.data/state.json by default), then sends a reduce-only MARKET close; a reply without a fill price is read back by client order id.

2 · The lens and the veto

The lens holds no rule and no countdown clock. The server pushes a frame over /ws whenever the visible second or phase changes; the lens draws three text lines and forwards gestures. One tap skips this close only (sent on the WebSocket, REST as fallback); a long press arms. A close decided more than 67 s after the boundary is reported, never sent.

3 · The safety net

At arm, a STOP_MARKET closePosition stop goes to Binance (testnet refuses the classic endpoint with -4120, so it lands on /fapi/v1/algoOrder). It is set to trigger on mark price and rests on Binance, so it does not depend on this machine. After a close it is cancelled only once the position reads flat; disarm removes it. The order client refuses any REST host but testnet.binancefuture.com.

Testnet only · reduce-only · not financial advice · no custody. Your key stays on your machine (~/.config/binance/testnet.env by default); the lens pairs with a single-use 6-digit code. Every box of ours names its source file (code at ee42eec). Run in the Even Hub simulator; no G2 hardware was used.