cURL
curl --request GET \
--url https://apidev.nusd.me/nps/bill/funds \
--header 'BIZ-API-KEY: <api-key>' \
--header 'Biz-Api-Nonce: <api-key>' \
--header 'Biz-Api-Signature: <api-key>'import requests
url = "https://apidev.nusd.me/nps/bill/funds"
headers = {
"BIZ-API-KEY": "<api-key>",
"Biz-Api-Nonce": "<api-key>",
"Biz-Api-Signature": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'BIZ-API-KEY': '<api-key>',
'Biz-Api-Nonce': '<api-key>',
'Biz-Api-Signature': '<api-key>'
}
};
fetch('https://apidev.nusd.me/nps/bill/funds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://apidev.nusd.me/nps/bill/funds"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("BIZ-API-KEY", "<api-key>")
req.Header.Add("Biz-Api-Nonce", "<api-key>")
req.Header.Add("Biz-Api-Signature", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apidev.nusd.me/nps/bill/funds")
.header("BIZ-API-KEY", "<api-key>")
.header("Biz-Api-Nonce", "<api-key>")
.header("Biz-Api-Signature", "<api-key>")
.asString();{
"status": 0,
"data": {
"total": 7,
"total_amount_in": "12.664",
"total_amount_out": "5.00303",
"funds": [
{
"wallet_id": "332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4",
"transaction_id": "aabc16f2-50e2-45f5-b28e-5f1a3595b347",
"type": "Deposit",
"amount": "9.9",
"balance_before": "0",
"balance_after": "9.9",
"created_at": 1762985211,
"confirmed_at": 1770031726
}
]
},
"msg": "<string>"
}{
"status": 0,
"data": {
"total": 7,
"total_amount_in": "12.664",
"total_amount_out": "5.00303",
"funds": [
{
"wallet_id": "332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4",
"transaction_id": "aabc16f2-50e2-45f5-b28e-5f1a3595b347",
"type": "Deposit",
"amount": "9.9",
"balance_before": "0",
"balance_after": "9.9",
"created_at": 1762985211,
"confirmed_at": 1770031726
}
]
},
"msg": "<string>"
}对账
资金对账单
获取资金对账单
GET
/
nps
/
bill
/
funds
cURL
curl --request GET \
--url https://apidev.nusd.me/nps/bill/funds \
--header 'BIZ-API-KEY: <api-key>' \
--header 'Biz-Api-Nonce: <api-key>' \
--header 'Biz-Api-Signature: <api-key>'import requests
url = "https://apidev.nusd.me/nps/bill/funds"
headers = {
"BIZ-API-KEY": "<api-key>",
"Biz-Api-Nonce": "<api-key>",
"Biz-Api-Signature": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'BIZ-API-KEY': '<api-key>',
'Biz-Api-Nonce': '<api-key>',
'Biz-Api-Signature': '<api-key>'
}
};
fetch('https://apidev.nusd.me/nps/bill/funds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://apidev.nusd.me/nps/bill/funds"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("BIZ-API-KEY", "<api-key>")
req.Header.Add("Biz-Api-Nonce", "<api-key>")
req.Header.Add("Biz-Api-Signature", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apidev.nusd.me/nps/bill/funds")
.header("BIZ-API-KEY", "<api-key>")
.header("Biz-Api-Nonce", "<api-key>")
.header("Biz-Api-Signature", "<api-key>")
.asString();{
"status": 0,
"data": {
"total": 7,
"total_amount_in": "12.664",
"total_amount_out": "5.00303",
"funds": [
{
"wallet_id": "332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4",
"transaction_id": "aabc16f2-50e2-45f5-b28e-5f1a3595b347",
"type": "Deposit",
"amount": "9.9",
"balance_before": "0",
"balance_after": "9.9",
"created_at": 1762985211,
"confirmed_at": 1770031726
}
]
},
"msg": "<string>"
}{
"status": 0,
"data": {
"total": 7,
"total_amount_in": "12.664",
"total_amount_out": "5.00303",
"funds": [
{
"wallet_id": "332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4",
"transaction_id": "aabc16f2-50e2-45f5-b28e-5f1a3595b347",
"type": "Deposit",
"amount": "9.9",
"balance_before": "0",
"balance_after": "9.9",
"created_at": 1762985211,
"confirmed_at": 1770031726
}
]
},
"msg": "<string>"
}授权
API Key,请求需在请求头中携带。
时间戳,请求需在请求头中携带。
签名串,请求需在请求头中携带。
查询参数
钱包id
示例:
"b2c13dba-7787-4db5-98e3-cff374dc04cd"
查询的起始时间戳;单位:秒;
示例:
1769996483
查询的截止时间戳;单位:秒;
示例:
1770601283
start和end的匹配方式;=Confirmed,按交易的确认时间;=Created,按账单生成时间(交易完成时间);(可选,默认=Created)
可用选项:
Confirmed, Created 示例:
"Confirmed"
当前页码
示例:
1
每页数量,最大每页1000;默认值:100
必填范围:
x <= 1000示例:
100