Before using Binance actions, ensure you have a Binance integration configured with your API credentials. See Configuration Reference for setup details.
binance/getprice
Retrieves current or 24-hour price data for a trading pair.Integration ID
The Binance integration to use.| YAML Key | integrationID |
| Type | string |
| Required | Yes |
Symbol
The trading pair symbol (e.g.,BTCUSDT, ETHUSDT).
| YAML Key | symbol |
| Type | string |
| Required | Yes |
Price Type
The type of price data to retrieve.| YAML Key | price_type |
| Type | string |
| Required | Yes |
current— Returns the current price24hr— Returns 24-hour price statistics
Example
Response
Current price response:binance/accountbalance
Retrieves account balance for one or more assets.Integration ID
The Binance integration to use.| YAML Key | integrationID |
| Type | string |
| Required | Yes |
Symbol
The asset symbol(s) to query. Use comma-separated values for multiple assets.| YAML Key | symbol |
| Type | string |
| Required | Yes |
BTC, ETH, BTC,ETH,USDT
Futures
Query the futures account instead of the spot account.| YAML Key | futures |
| Type | boolean |
| Required | No |
| Default | false |
Example
Response
Single asset response:binance/spotorder
Places spot trading orders for cryptocurrency pairs.Integration ID
The Binance integration to use.| YAML Key | integrationID |
| Type | string |
| Required | Yes |
Symbol
The trading pair symbol (e.g.,BTCUSDT).
| YAML Key | symbol |
| Type | string |
| Required | Yes |
Side
The order side.| YAML Key | side |
| Type | string |
| Required | Yes |
BUY, SELL
Type
The order type.| YAML Key | type |
| Type | string |
| Required | Yes |
MARKET, LIMIT, STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT
Quantity
The amount of the base asset to buy or sell.| YAML Key | quantity |
| Type | string |
| Required | No |
quantity or quote_order_qty.
Quote Order Quantity
The amount in quote currency to spend (for market buy orders).| YAML Key | quote_order_qty |
| Type | string |
| Required | No |
Price
The price for limit orders.| YAML Key | price |
| Type | string |
| Required | No |
LIMIT and limit-based order types.
Stop Price
The trigger price for stop orders.| YAML Key | stop_price |
| Type | string |
| Required | No |
STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT order types.
Time In Force
How long the order remains active.| YAML Key | time_in_force |
| Type | string |
| Required | No |
GTC— Good ‘til canceledIOC— Immediate or cancelFOK— Fill or kill
Example
Response
binance/futuresorder
Places futures trading orders with leverage and position management.Integration ID
The Binance integration to use.| YAML Key | integrationID |
| Type | string |
| Required | Yes |
Symbol
The futures trading pair symbol (e.g.,BTCUSDT).
| YAML Key | symbol |
| Type | string |
| Required | Yes |
Side
The order side.| YAML Key | side |
| Type | string |
| Required | Yes |
BUY, SELL
Type
The order type.| YAML Key | type |
| Type | string |
| Required | Yes |
MARKET, LIMIT, STOP, STOP_MARKET, TAKE_PROFIT, TAKE_PROFIT_MARKET
Quantity
The contract quantity.| YAML Key | quantity |
| Type | string |
| Required | Yes |
Leverage
The leverage multiplier for the position.| YAML Key | leverage |
| Type | integer |
| Required | No |
Position Side
The position direction for hedge mode.| YAML Key | position_side |
| Type | string |
| Required | No |
LONG, SHORT, BOTH
Reduce Only
Only reduce an existing position, don’t open a new one.| YAML Key | reduce_only |
| Type | boolean |
| Required | No |
| Default | false |
Price
The price for limit orders.| YAML Key | price |
| Type | string |
| Required | No |
Example
Response
binance/pricedifference
Calculates price differences and percentage changes over specified time periods.Integration ID
The Binance integration to use.| YAML Key | integrationID |
| Type | string |
| Required | Yes |
Symbol
The trading pair symbol or comma-separated symbols.| YAML Key | symbol |
| Type | string |
| Required | Yes |
Interval
The candlestick interval for historical data.| YAML Key | interval |
| Type | string |
| Required | Yes |
1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w
Period
The number of intervals to look back.| YAML Key | period |
| Type | integer |
| Required | Yes |
Example
Response
binance/tradeinfo
Retrieves detailed trading information including open orders and positions.Integration ID
The Binance integration to use.| YAML Key | integrationID |
| Type | string |
| Required | Yes |
Symbol
The trading pair symbol.| YAML Key | symbol |
| Type | string |
| Required | No |
Info Type
The type of information to retrieve.| YAML Key | infoType |
| Type | string |
| Required | No |
orders, positions
Order ID
A specific order ID to query.| YAML Key | orderID |
| Type | string |
| Required | No |
Futures
Query futures trading information instead of spot.| YAML Key | futures |
| Type | boolean |
| Required | No |
| Default | false |
Example
Common Patterns
Price Alert Bot
Monitor price changes and send alerts:Dollar-Cost Averaging Bot
Automatically buy a fixed amount on schedule:Next Steps
Actions Overview
Learn the fundamentals of ServFlow actions.
Flow Control
Run multiple trading checks in parallel.
Memory
Cache price data for faster lookups.
Communication
Send trading alerts via email.