skills/binance/SKILL.md
Trade and monitor crypto via Binance API
npx skillsauth add ticruz38/skills skills/binanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Trade and monitor cryptocurrencies via the Binance API. Supports real-time price data, account balances, order management, and trade history tracking.
cd skills/binance
npm install
npm run build
This skill requires the binance-auth skill to be configured first:
# For testnet (recommended for testing)
binance-auth-cli connect --testnet
# For production (real trading)
binance-auth-cli connect
# Check connection status
binance-cli status
# Check API health
binance-cli health
# Show environment (testnet/production)
binance-cli env
# Get current price
binance-cli price BTCUSDT
# Get all prices
binance-cli prices
# Get specific symbols
binance-cli prices BTCUSDT,ETHUSDT,BNBUSDT
# Get 24hr statistics
binance-cli ticker BTCUSDT
# List all trading symbols
binance-cli symbols
# Get symbol information
binance-cli info BTCUSDT
# Get candlestick data (default: 20 candles, 1h interval)
binance-cli klines BTCUSDT 1h
binance-cli klines BTCUSDT 1d 100
# Show all balances
binance-cli balance
# Show specific asset balance
binance-cli balance USDT
binance-cli balance BTC
# Market buy (executes immediately at market price)
binance-cli buy BTCUSDT 0.001 --market
# Market sell
binance-cli sell BTCUSDT 0.001 --market
# Limit buy (waits for price to reach target)
binance-cli limit-buy BTCUSDT 0.001 50000
# Limit sell
binance-cli limit-sell BTCUSDT 0.001 60000
# Check order status
binance-cli order BTCUSDT 12345678
# Cancel an order
binance-cli cancel BTCUSDT 12345678
# List open orders
binance-cli open
binance-cli open BTCUSDT
# Get order history
binance-cli history BTCUSDT
binance-cli history BTCUSDT 50
# Show all local trades
binance-cli trades
# Show trades for specific symbol
binance-cli trades BTCUSDT
# Add notes to a trade
binance-cli note 12345678 "Bought the dip"
# Use a specific profile (for multiple accounts)
binance-cli --profile trading balance
binance-cli --profile hodl balance
import { BinanceSkill, getBinanceSkill } from '@openclaw/binance';
// Create skill instance
const skill = getBinanceSkill('default');
// Check connection
const connected = await skill.isConnected();
// Get prices
const price = await skill.getPrice('BTCUSDT');
const prices = await skill.getPrices(['BTCUSDT', 'ETHUSDT']);
const ticker = await skill.get24hrTicker('BTCUSDT');
// Get balances
const balances = await skill.getBalances();
const btcBalance = await skill.getBalance('BTC');
// Place orders
const buyOrder = await skill.marketBuy('BTCUSDT', '0.001');
const sellOrder = await skill.marketSell('BTCUSDT', '0.001');
const limitOrder = await skill.limitBuy('BTCUSDT', '0.001', '50000');
// Manage orders
const openOrders = await skill.getOpenOrders();
const order = await skill.getOrder('BTCUSDT', 12345678);
const cancelled = await skill.cancelOrder('BTCUSDT', 12345678);
// Get order history
const history = await skill.getOrderHistory('BTCUSDT', { limit: 50 });
// Get local trade history
const trades = await skill.getLocalTradeHistory({ symbol: 'BTCUSDT', limit: 10 });
// Add notes to trades
await skill.addTradeNotes(12345678, 'Entry point for long position');
// Get candlestick data
const klines = await skill.getKlines('BTCUSDT', '1h', { limit: 100 });
// Cleanup
await skill.close();
marketBuy() and marketSell() methodslimitBuy() and limitSell() methodsThe skill also supports STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders via the createOrder() method.
Trade history is stored locally in SQLite:
~/.openclaw/skills/binance/trades.dbtrades: Local copy of all orders with notesprice_history: Historical price snapshotsThis skill uses the binance-auth skill for credentials. No direct environment variables required.
Common errors and solutions:
binance-auth-cli connect first@openclaw/auth-provider: Authentication provider@openclaw/binance-auth: Binance authentication skillsqlite3: Local database for trade historyimport {
SymbolInfo,
Ticker,
PriceTicker,
Balance,
Order,
OrderType,
OrderSide,
TimeInForce,
OrderStatus,
CreateOrderOptions,
CreateOrderResponse,
Trade,
Kline,
ExchangeInfo,
LocalTradeRecord,
BinanceSkillConfig,
BinanceEnvironment
} from '@openclaw/binance';
MIT
testing
Suggest recipes based on dietary preferences, available ingredients, and cuisine preferences
development
Extract data from receipt photos using Google Vision API
business
QuickBooks Online integration for accounting sync - sync customers, invoices, and transactions with two-way sync and conflict resolution
testing
QuickBooks OAuth adapter for QuickBooks Online accounting integration. Built on top of auth-provider for secure token management with automatic refresh, multi-profile support, sandbox/production toggle, and health checks.