Skip to main content

Binance

The Binance package provides comprehensive integration with the Binance cryptocurrency exchange, enabling automated trading, portfolio management, and market data retrieval for RPA workflows.

Overview

The Binance package allows you to:

  • Execute automated trading strategies (buy, sell, market, and stop-loss orders)
  • Monitor cryptocurrency prices and market trends
  • Manage account balances and positions
  • Track order history and trade executions
  • Retrieve deposit and withdrawal information
  • Access historical price data for technical analysis

Authentication

The Binance package supports two authentication methods:

  1. Connect Node (Recommended): Use the Connect node to establish a session that can be reused across multiple nodes
  2. Direct Credentials: Provide API Key and Secret Key directly in each node's options

Getting API Credentials

To use the Binance package, you need to create API credentials from your Binance account:

  1. Log in to your Binance account
  2. Go to Account Settings > API Management
  3. Create a new API key
  4. Save both the API Key and Secret Key securely
  5. Configure appropriate permissions (reading, spot trading, etc.)
  6. Add your API credentials to Robomotion's Vault for secure storage
Security Notice

Never share your API keys or commit them to version control. Always use Robomotion's Vault to store credentials securely. Enable IP whitelist restrictions on your Binance API keys for additional security.

Available Nodes

Connection Management

  • Connect - Establish a connection to Binance exchange
  • Disconnect - Close the connection and clean up resources

Trading Operations

  • Buy Order - Place a limit buy order
  • Sell Order - Place a limit sell order
  • Market Order - Execute immediate buy or sell at market price
  • Stop Order - Place a stop-loss limit order
  • Cancel Order - Cancel an existing open order

Account Information

  • Get Balance - Retrieve account balance for specific or all currencies
  • Get Order - Get details of a specific order
  • List My Orders - List all open orders for your account

Market Data

  • Get Price - Get current average price for a trading pair
  • Get Price Change Info - Get 24-hour price change statistics
  • Get Price History - Retrieve historical candlestick data and save to CSV
  • List All Pairs - Get all available trading pairs
  • List Orders - View current order book (bids/asks)
  • List Recent Trades - Get recent trade executions for a pair

Wallet Operations

  • Get Coin Detail - Get detailed information about a cryptocurrency
  • Get Deposit Address - Retrieve deposit address for a specific network
  • List Deposits - View recent deposit history
  • List Withdraws - View recent withdrawal history

Common Use Cases

Automated Trading Bot

Create flows that monitor price movements and automatically execute trades based on your strategy.

Portfolio Monitoring

Track your cryptocurrency holdings and get real-time balance updates across multiple assets.

Price Alert System

Set up automated alerts when cryptocurrencies reach specific price targets.

Historical Data Analysis

Download historical price data for backtesting trading strategies and technical analysis.

Order Management

Automatically place, monitor, and cancel orders based on market conditions.

Best Practices

  1. Use Connect/Disconnect: Always pair Connect with Disconnect nodes to properly manage API sessions
  2. Error Handling: Implement proper error handling for network issues and API rate limits
  3. Rate Limiting: Be mindful of Binance API rate limits to avoid temporary bans
  4. Test in Testnet: Use Binance Testnet for developing and testing strategies before live trading
  5. Secure Credentials: Store API keys in Robomotion Vault with appropriate access controls
  6. Enable 2FA: Use two-factor authentication on your Binance account
  7. IP Whitelist: Restrict API key usage to specific IP addresses
  8. Limited Permissions: Grant only necessary permissions to API keys (avoid withdrawal permissions if not needed)

Trading Pair Format

Trading pairs on Binance follow the format: BASEQUOTE

  • Base Asset: The cryptocurrency being traded (e.g., BTC, ETH, BNB)
  • Quote Asset: The currency used to price the base (e.g., USDT, BTC, BUSD)

Examples:

  • BTCUSDT - Bitcoin priced in USDT
  • ETHBTC - Ethereum priced in Bitcoin
  • BNBUSDT - Binance Coin priced in USDT

Resources