← 返回
数据分析 Key

binance-trading

Provides Binance API integration for spot and futures trading including balance, orders, market data, leverage, and position management.
币安API集成,支持现货与合约交易,涵盖余额、订单、行情、杠杆及仓位管理。
ly5201314gjx
数据分析 clawhub v1.0.0 1 版本 99874.1 Key: 需要
★ 0
Stars
📥 793
下载
💾 20
安装
1
版本
#latest

概述

Binance Trading Skill

币安API交易封装,支持现货和合约交易。

功能

现货交易

  • binance_spot_balance - 获取账户余额
  • binance_spot_ticker - 获取24小时行情
  • binance_spot_order - 下单
  • binance_spot_orders - 查询开放订单

合约交易

  • binance_futures_balance - 获取合约账户余额
  • binance_futures_ticker - 获取合约行情
  • binance_futures_order - 合约下单
  • binance_futures_positions - 查询持仓
  • binance_futures_open_orders - 查询合约开放订单
  • binance_futures_book - 深度数据
  • binance_futures_leverage - 设置杠杆
  • binance_futures_close - 平仓

通用

  • binance_ping - 测试连接
  • binance_kline - K线数据

API配置

需要配置以下环境变量或直接在代码中修改:

  • BINANCE_API_KEY - API Key
  • BINANCE_SECRET_KEY - Secret Key

安装

# 安装依赖
npm install

# 测试连接
node index.js ping

使用示例

const binance = require('./index.js');

// 获取余额
await binance.binance_futures_balance({});

// 获取行情
await binance.binance_futures_ticker({ symbol: "BTCUSDT" });

// 下单
await binance.binance_futures_order({
  symbol: "BTCUSDT",
  side: "BUY",
  quantity: 0.001
});

// 设置杠杆
await binance.binance_futures_leverage({
  symbol: "BTCUSDT",
  leverage: 10
});

// 平仓
await binance.binance_futures_close({
  symbol: "BTCUSDT"
});

API Endpoints

类型地址
------------
现货https://api.binance.com
合约https://fapi.binance.com

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-19 17:17 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Video Crawler

ly5201314gjx
根据平台和URL提取抖音和Twitter视频,输出下载的视频文件或错误信息。
★ 0 📥 990
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 199 📥 65,210
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,697