Examples
Worked workflow patterns using the Binance node
1. Check Balance Before Placing an Order
Guard a market-buy step by confirming there's enough quote-asset balance first.
- Binance node:
resource=account,operation=getAccountInfo - Transform step: find the entry in
items[]whereasset == "USDT", readfree - Condition node:
free >= orderCost - If true, continue to Binance
order.placeMarketOrder; if false, route to an alert branch
2. Quote a Price, Then Place a Limit Order Near It
Fetch the current price and place a limit order a small offset away from it, rather than hardcoding a price.
- Binance node:
resource=marketData,operation=getTickerPrice,symbol=BTCUSDT - Transform step:
limitPrice = price * 0.99(1% below market, for a buy) - Binance node:
resource=order,operation=placeLimitOrder,symbol=BTCUSDT,side=BUY,timeInForce=GTC,quantity={{qty}},price={{limitPrice}}
3. Poll Open Orders and Cancel Stale Ones
Clean up limit orders that have sat unfilled too long.
- Binance node:
resource=order,operation=getOpenOrders,symbol=BTCUSDT - For each item, compare its age against a threshold (using the order's placement time, tracked separately if not returned)
- If stale: Binance node,
resource=order,operation=cancelOrder,symbol=BTCUSDT,orderId={{item.orderId}}
Tip: Pair this with account.getOrderRateLimit
first if the loop might touch many orders in one run, so the workflow can slow itself down before
hitting Binance's own order-count limit.
4. Chart or Alert on Candlestick Data
Pull recent candles for a lightweight monitoring/alerting step.
- Binance node:
resource=marketData,operation=getKlines,symbol=ETHUSDT,interval=1h,limit=24 - Transform step: compute the % change between the first and last candle's
close - Condition node: trigger a notification step if the change exceeds a threshold
5. Check the Order Book Before a Large Market Order
Estimate slippage before submitting a sizeable market order.
- Binance node:
resource=marketData,operation=getOrderBookDepth,symbol=BTCUSDT,limit=50 - Transform step: walk
asks[](for a buy) accumulatingquantityuntil it covers the intended order size, and read the price at that depth - Condition node: only proceed to
order.placeMarketOrderif the estimated price is within an acceptable slippage bound