Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

peerberry-sdkpeerberry SDK 搜索

Agent Skill

peerberry-sdk 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,271

周安装

306

GitHub Stars

公开资料未说明

下载量

2,546
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:peerberry-sdk(peerberry SDK 搜索)
来源仓库:https://github.com/fortressquant/peerberry-sdk
安装命令:
openclaw skills install peerberry-sdk
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install peerberry-sdk

简介

集成 PeerBerry 投资者自动化与 P2P 借贷教育功能的开发套件。

  • 支持船上另类投资场景下的资产管理与风险披露流程。
  • 需配合 FortressQuant 提供的密钥与环境变量配置使用。
  • 仅限授权代理调用,禁止用于非合规金融操作。peerberry-sdk 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 建议在非生产环境充分测试后再接入真实资金流。

SKILL.md

name
peerberry-sdk
description
Use this skill when assisting with FortressQuant's peerberry-sdk for PeerBerry investor automation, P2P lending education, and alternative-investment onboarding. Apply it for authentication setup, portfolio and loan retrieval, filtering, purchase automation, risk-aware explanation, and SDK debugging.

PeerBerry SDK Skill

TL;DR Quick Start

  • Start with read-only calls first (get_profile, get_overview, get_loans).
  • Use Decimal for money and rates, never float.
  • Treat purchase_loan as real-money action and gate it with DRY_RUN and MAX_ORDERS.
  • Use SDK filter arguments before local filtering (min_interest_rate, countries, loan_types).
  • Catch specific auth/funds errors, then fall back to PeerberryException.

Read-only starter:

from peerberry_sdk import PeerberryClient

with PeerberryClient(email="YOUR_EMAIL", password="YOUR_PASSWORD") as api:
    profile = api.get_profile()
    overview = api.get_overview()
    loans = api.get_loans(quantity=5)

    print(profile.public_id)
    print(overview.data.get("availableMoney", overview.data.get("items", {}).get("availableMoney")))
    print([loan.loan_id for loan in loans])

Safe invest starter:

from decimal import Decimal
from peerberry_sdk import PeerberryClient

DRY_RUN = True
MAX_ORDERS = 10
TICKET_SIZE = Decimal("10.00")

with PeerberryClient(email="YOUR_EMAIL", password="YOUR_PASSWORD") as api:
    loans = api.get_loans(quantity=50, min_interest_rate=Decimal("9.5"), exclude_invested_loans=True)

    for idx, loan in enumerate(loans):
        if idx >= MAX_ORDERS or loan.loan_id is None:
            break

        if DRY_RUN:
            print(f"[DRY_RUN] would invest {TICKET_SIZE} in loan {loan.loan_id}")
            continue

        api.purchase_loan(loan_id=loan.loan_id, amount=TICKET_SIZE)

Core Purpose

peerberry-sdk is a Python wrapper around the PeerBerry investor API. In P2P lending, investors allocate capital across many loans (or loan fractions), receive principal and interest repayments over time, and manage risk through diversification and monitoring. PeerBerry provides marketplace access to these investor workflows, and this SDK converts them into programmable Python actions for analysis, automation, and operational control.

Scope / Non-goals

In scope:

  • Explain PeerBerry and P2P lending concepts in plain language.
  • Generate and debug Python code using the real SDK method surface.
  • Build read-only monitoring scripts and guarded investment automation.
  • Help with filtering, paging, exports, and auth/token lifecycle patterns.

Out of scope:

  • Provide financial advice, suitability advice, or guaranteed-return claims.
  • Promise profitability, safety, or future performance.
  • Invent SDK methods that do not exist.

Request Classifier

Classify incoming requests and respond with the matching style:

  1. educational: user is new to P2P/PeerBerry.

- Explain concepts first, then provide read-only demo code. - Load: references/p2p-primer.md.

  1. read_only_coding: user wants portfolio/loan analytics.

- Provide runnable snippets with typed model handling. - Load: references/api-quickref.md.

  1. real_money_automation: user wants buy/invest flows.

- Add DRY_RUN, MAX_ORDERS, funds checks, and explicit risk labels. - Load: references/api-quickref.md and references/task-recipes.md.

  1. debugging: user has errors/exceptions.

- Triage auth, enum inputs, filter metadata, then payload shape. - Load: references/api-quickref.md.

Prerequisites

  • Create and verify an investor account on the official PeerBerry website: <https://peerberry.com/>.
  • Use valid PeerBerry credentials (email, password).
  • If account uses TOTP 2FA, provide tfa_secret and install the otp extra.
  • Treat purchase actions as real-money operations.

Key Concepts & Objects

Primary entry point:

  • PeerberryClient: high-level client for authentication, retrieval, and purchase actions.

Core model objects:

  • Profile, Overview, Loan, LoanPage, InvestmentPage, Transaction, AccountSummary, PurchaseOrder.

Domain semantics:

  • loan: marketplace listing that can be invested into.
  • investment: already-owned position in a loan.
  • purchase order: accepted order result with order_id (not settlement confirmation).

Installation & Authentication

Install:

pip install peerberry-sdk

Install with 2FA support:

pip install "peerberry-sdk[otp]"

Authenticate:

from peerberry_sdk import PeerberryClient

with PeerberryClient(email="YOUR_EMAIL", password="YOUR_PASSWORD") as api:
    print(api.get_profile().public_id)

Core Functions & Common Workflows

Use this method map:

  • Profile and portfolio: get_profile, get_overview, get_loyalty_tier
  • Loan discovery: get_loans, get_loans_page, get_loan_details
  • Purchase action: purchase_loan
  • Portfolio positions: get_investments
  • Cash flow and reporting: get_transactions, get_account_summary
  • Exports: get_mass_investments, get_mass_transactions
  • Metadata helpers: get_countries, get_originators

For signatures, enums, and exception patterns, load references/api-quickref.md. For copy-paste user prompts and intent routing, load references/task-recipes.md.

Safety Defaults (Real-Money Flows)

Always apply unless the user explicitly overrides:

  • Default to read-only path first.
  • Add DRY_RUN = True for first run.
  • Set a hard cap with MAX_ORDERS.
  • Skip records missing loan_id.
  • Validate available_to_invest >= ticket_size when field is present.
  • Stop on InsufficientFunds.
  • Log each resulting order_id.

Known SDK Quirks

  • get_overview payload can be flat or nested under items.
  • get_loans internally paginates with max page size 40.
  • get_loans defaults group_guarantee=True.
  • Country/originator filters require display names from metadata helpers.
  • Export methods return raw bytes, not typed rows.

Reference Files (Progressive Loading)

Load only what is needed:

  • references/p2p-primer.md

- Use for beginner education, plain-language explanations, and trust-first communication rules.

  • references/api-quickref.md

- Use for method signatures, accepted values, parameter semantics, exceptions, and debugging.

  • references/task-recipes.md

- Use for copy-paste prompts mapped to common investor intents.

Maintenance Contract

When SDK changes, update this skill in this order:

  1. Verify method signatures and accepted values against:

- src/peerberry_sdk/client.py - docs/api/client.md

  1. Update references/api-quickref.md first.
  2. Update affected recipes in references/task-recipes.md.
  3. Keep this root SKILL.md concise and routing-focused.
  4. Re-check safety defaults for any new write action methods.

Project Resources

  • Repository: <https://github.com/FortressQuant/peerberry-sdk>
  • Docs index: <https://github.com/FortressQuant/peerberry-sdk/tree/main/docs>
  • Client API reference: <https://github.com/FortressQuant/peerberry-sdk/blob/main/docs/api/client.md>
  • Issues: <https://github.com/FortressQuant/peerberry-sdk/issues>

Skill Authoring References (March 2026)

  • OpenAI Academy skills guide: <https://academy.openai.com/public/clubs/work-users-ynjqu/resources/how-to-build-and-use-skills>
  • Anthropic memory guidance: <https://docs.anthropic.com/en/docs/claude-code/memory>
  • GitHub Copilot custom instructions: <https://docs.github.com/en/copilot/how-tos/custom-instructions/adding-custom-instructions-for-github-copilot?tool=vscode>
  • OpenAI AGENTS.md spec: <https://github.com/openai/agents.md>

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.24%
按下载量换算2,145

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills