跳转到主要内容
GET
/
api
/
v1
/
staking
/
positions
获取用户持仓
curl --request GET \
  --url https://api.example.com/api/v1/staking/positions
{
  "code": 0,
  "msg": "ok",
  "data": {
    "items": [
      {
        "productId": "base_usdc_nexfi_vault",
        "walletAddress": "0xabc1230000000000000000000000000000000000",
        "shares": "998.12",
        "assetAmount": "1000",
        "status": "active",
        "updatedAt": "2026-05-11T10:00:00.000Z"
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.nexfi.robert.dpdns.org/llms.txt

Use this file to discover all available pages before exploring further.

查询参数

walletAddress
string
必填

钱包地址。

示例:

"0xabc1230000000000000000000000000000000000"

chainId
integer

链 ID 过滤。

示例:

8453

status
string

持仓状态过滤。

示例:

"active"

响应

200 - application/json

成功返回持仓列表

统一响应包裹结构。

code
integer
必填

业务状态码,0 表示成功。

示例:

0

msg
string
必填

可读返回消息。

示例:

"ok"

data
object