name: binance-futures
description: Binance Futures交易,带有数据库跟踪
emoji: “🟡”
commands:
Binance Futures
在Binance上交易永续期货,最高125倍杠杆,并带有完整的数据库跟踪。
快速开始
# 设置凭据
export BINANCE_API_KEY="your-api-key"
export BINANCE_API_SECRET="your-api-secret"
# 检查余额
/bf balance
# 开仓
/bf long BTCUSDT 0.01 10x
# 查看统计
/bf stats
命令
账户
| 命令 |
描述 |
/bf balance |
检查保证金余额 |
/bf positions |
查看开仓位置 |
/bf orders |
列出开单 |
交易
| 命令 |
描述 |
/bf long <symbol> <size> [leverage]x |
开多仓 |
/bf short <symbol> <size> [leverage]x |
开空仓 |
/bf close <symbol> |
关闭仓位 |
/bf closeall |
关闭所有仓位 |
/bf tp <symbol> <price> |
设置止盈 |
/bf sl <symbol> <price> |
设置止损 |
/bf leverage <symbol> <value> |
设置杠杆 |
市场数据
| 命令 |
描述 |
/bf price <symbol> |
获取当前价格 |
/bf funding <symbol> |
检查资金费率 |
/bf markets [query] |
列出市场 |
数据库/历史
| 命令 |
描述 |
/bf trades [symbol] [limit] |
从数据库获取交易历史 |
/bf dbstats [symbol] [period] |
胜率、PnL、利润因子 |
/bf dbfunding [symbol] |
资金支付历史 |
/bf dbpositions [all] |
仓位历史 |
统计周期: day, week, month
示例
/bf long BTCUSDT 0.01 10x # 10倍杠杆做多
/bf short ETHUSDT 0.1 20x # 20倍杠杆做空
/bf tp BTCUSDT 105000 # 在$105k设置止盈
/bf sl BTCUSDT 95000 # 在$95k设置止损
/bf close BTCUSDT # 关闭BTC仓位
/bf trades BTCUSDT 20 # 最后20个BTC交易
/bf dbstats ETHUSDT week # ETH过去一周统计