360 Secure SkillHub
360 安全技能中心

Bitfinex Lending Monitor

这是Bitfinex借贷收益监控工具,核心功能是通过平台API获取借贷钱包余额、活跃借贷记录及指定时段账本条目,生成收益统计。适用于查询借贷收益、自动完成每日收益统计、替代官方APP查看借贷状态的场景。使用需配置API密钥,支持指定币种、统计时段,可输出文本或JSON结果,建议采用只读API权限保障安全。

reed1898
reed1898
热度 52.42
最近更新 2026-05-11 17:29:21
分类:数据依赖:代码执行 / 第三方 API应用场景:财务 / 数据处理 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add bitfinex-lending-monitor
Metadata
name
bitfinex-lending-monitor
description
Monitor Bitfinex lending (funding) performance via API. Use when the user asks to check Bitfinex funding收益/借贷利息, automate daily收益统计, or avoid opening the Bitfinex app for lending status.

Bitfinex Lending Monitor

Use this skill to fetch and summarize Bitfinex funding收益 from API.

What to collect

  • Funding wallet balances from v2/auth/r/wallets
  • Active funding credits from v2/auth/r/funding/credits/{Symbol}
  • Ledger entries from v2/auth/r/ledgers/{Currency}/hist filtered by wallet=funding

Run

  1. Export API credentials:
export BITFINEX_API_KEY="your_api_key"
export BITFINEX_API_SECRET="your_api_secret"
  1. Run summary:
python3 skills/bitfinex-lending-monitor/scripts/check_lending.py --currency USD --days 7
  1. Optional JSON output:
python3 skills/bitfinex-lending-monitor/scripts/check_lending.py --currency USD --days 7 --json

Notes

  • Prefer read-only API permissions for safety.
  • Timestamps are milliseconds since epoch.
  • If no --currency is passed, script defaults to USD and symbol fUSD.