余额查询
curl --request GET \
--url https://api.bocha.cn/v1/fund/remaining \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.bocha.cn/v1/fund/remaining"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bocha.cn/v1/fund/remaining', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"code": "200",
"msg": "success",
"data": {
"remaining": 10820856.78
},
"timestamp": 1739845090213
}余额查询
实时查询当前账户的可用余额。
GET
https://api.bocha.cn
/
v1
/
fund
/
remaining
余额查询
curl --request GET \
--url https://api.bocha.cn/v1/fund/remaining \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.bocha.cn/v1/fund/remaining"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bocha.cn/v1/fund/remaining', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"code": "200",
"msg": "success",
"data": {
"remaining": 10820856.78
},
"timestamp": 1739845090213
}