Portal Community

1. Check Balance Before Placing an Order

Guard a market-buy step by confirming there's enough quote-asset balance first.

  1. Binance node: resource=account, operation=getAccountInfo
  2. Transform step: find the entry in items[] where asset == "USDT", read free
  3. Condition node: free >= orderCost
  4. 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.

  1. Binance node: resource=marketData, operation=getTickerPrice, symbol=BTCUSDT
  2. Transform step: limitPrice = price * 0.99 (1% below market, for a buy)
  3. 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.

  1. Binance node: resource=order, operation=getOpenOrders, symbol=BTCUSDT
  2. For each item, compare its age against a threshold (using the order's placement time, tracked separately if not returned)
  3. 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.

  1. Binance node: resource=marketData, operation=getKlines, symbol=ETHUSDT, interval=1h, limit=24
  2. Transform step: compute the % change between the first and last candle's close
  3. 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.

  1. Binance node: resource=marketData, operation=getOrderBookDepth, symbol=BTCUSDT, limit=50
  2. Transform step: walk asks[] (for a buy) accumulating quantity until it covers the intended order size, and read the price at that depth
  3. Condition node: only proceed to order.placeMarketOrder if the estimated price is within an acceptable slippage bound