360 Secure SkillHub
360 安全技能中心

Bitfinex Lending Monitor

该 Skill 依托本地 Python 脚本调用 Bitfinex 只读接口,读取资金钱包余额、活跃借贷与账本流水,按币种和天数汇总借贷收益,支持文本与 JSON 两种输出;凭证通过环境变量提供,运行时需要网络访问。

reed1898
reed1898
热度 52.44
最近更新 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.