Agent Forge

Binance Trading

Inspect Binance spot account state and place signed orders

Binance is a cryptocurrency exchange with a Spot API for signed account access and order management.

In Agent Forge, the Binance Trading block lets workflows inspect balances, open orders, trade history, and place or cancel spot orders across Binance live, Spot Testnet, and Binance Demo environments. Start on a non-live environment, validate order payloads with Test New Order, then move to live trading only after careful review.

Usage Instructions

Provide a Binance API key and secret, choose an environment, then select an operation. Order write operations require a trading pair symbol and order parameters such as side, type, quantity, and price.

Trading actions can move funds or modify live orders. Use Spot Testnet or Binance Demo first, restrict API key permissions where possible, and verify all workflow inputs before deploying automated trading workflows.

Tools

Account

  • binance_get_account - Get account information and balances
  • binance_get_open_orders - List open orders for a symbol or all symbols
  • binance_get_all_orders - List historical orders for a symbol
  • binance_get_my_trades - List account trades for a symbol

Trading

  • binance_test_new_order - Validate an order without submitting it
  • binance_create_order - Create a live spot order
  • binance_cancel_order - Cancel an open order

Common Inputs

ParameterTypeRequiredDescription
apiKeystringYesBinance API key
apiSecretstringYesBinance API secret
environmentstringNolive, testnet, or demo (default: testnet)
operationstringYesBinance operation to execute
symbolstringOperation-specificTrading pair such as BTCUSDT
sidestringFor ordersBUY or SELL
typestringFor ordersBinance order type such as LIMIT or MARKET
quantitystringFor ordersBase asset quantity
pricestringFor limit ordersOrder price
orderIdnumberFor cancel / filtersBinance order ID
limitnumberNoMaximum records to return

Output

ParameterTypeDescription
datajsonBinance response payload
statusnumberHTTP status code
headersjsonResponse headers
errorCodenumberBinance error code when present
errorMessagestringBinance error message when present

Notes

  • Category: tools
  • Type: binance_trading
  • See the Binance Spot API docs for order type and parameter details.
Binance Trading