360 Secure SkillHub
360 安全技能中心

Query Payful Account

该 Skill 提供 scripts/query_balance.py,读取 PAYFUL_TOKEN 与 PAYFUL_USER_ID 环境变量作为认证凭据,调用 Payful 账户余额接口,输出含总额、可用余额、冻结余额与币种的 JSON 响应;可通过命令行参数指定其他环境的 API 地址。仅实现余额查询,未包含交易记录或账户详情查询脚本。

hugogu
hugogu
热度 44.25
最近更新 2026-05-18 11:36:00
分类:数据依赖:代码执行 / 第三方 API应用场景:个人理财 / 财务

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add query-payful-account
Metadata
name
payful-query
description
Query Payful account information including balance, transactions, and account details. Use when the user needs to check their Payful account status, view balance, or retrieve account information. Requires PAYFUL_TOKEN and PAYFUL_USER_ID environment variables to be set.
metadata
{"env":[{"name":"PAYFUL_TOKEN","description":"Authentication token sourced from the BF-INTERNATIONAL-MEMBER-TOKEN browser cookie on global.payful.com","required":true,"credential":true},{"name":"PAYFUL_USER_ID","description":"User ID sourced from the AGL_USER_ID browser cookie on global.payful.com","required":true,"credential":true}],"primaryCredential":"PAYFUL_TOKEN"}

Payful Query Skill

This skill queries Payful account information via the Payful API.

Security notice: PAYFUL_TOKEN and PAYFUL_USER_ID are sensitive browser session cookies extracted from global.payful.com. They grant full access to your Payful account. Only set these values in a trusted environment and never share them.

Prerequisites

Set the following environment variables:

  • PAYFUL_TOKEN - Authentication token (from BF-INTERNATIONAL-MEMBER-TOKEN cookie)
  • PAYFUL_USER_ID - User ID (from AGL_USER_ID cookie)

Usage

Query Account Balance

python scripts/query_balance.py

Query with Custom API URL

If using a different Payful environment:

python scripts/query_balance.py --api-url https://other.payful.com

API Reference

The skill uses the following Payful API endpoints:

Get Account Balance

  • URL: https://global.payful.com/api/user/account/queryUserAccBalByHomePage
  • Method: GET
  • Headers:
    • Accept: application/json, text/plain, */*
    • Accept-Language: zh-CN
    • request-system-name: member-exchange-client
    • Cookie: Contains authentication tokens

Response Format

{
  "code": "0000",
  "data": {
    "totalBalance": "1234.56",
    "currency": "USD",
    "availableBalance": "1200.00",
    "frozenBalance": "34.56"
  },
  "message": "success"
}