设置我的默认余额(payouts 与 payins)
curl --request PUT \
--url https://api.qbank.cl/platform/v1/settlement \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"default_settlement_asset": "BTC",
"default_payin_asset": "USDC"
}
'import requests
url = "https://api.qbank.cl/platform/v1/settlement"
payload = {
"default_settlement_asset": "BTC",
"default_payin_asset": "USDC"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({default_settlement_asset: 'BTC', default_payin_asset: 'USDC'})
};
fetch('https://api.qbank.cl/platform/v1/settlement', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qbank.cl/platform/v1/settlement",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'default_settlement_asset' => 'BTC',
'default_payin_asset' => 'USDC'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qbank.cl/platform/v1/settlement"
payload := strings.NewReader("{\n \"default_settlement_asset\": \"BTC\",\n \"default_payin_asset\": \"USDC\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.qbank.cl/platform/v1/settlement")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"default_settlement_asset\": \"BTC\",\n \"default_payin_asset\": \"USDC\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/settlement")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"default_settlement_asset\": \"BTC\",\n \"default_payin_asset\": \"USDC\"\n}"
response = http.request(request)
puts response.read_body{
"default_settlement_asset": "BTC",
"default_payin_asset": "USDC",
"enabled_assets": [
"USDT",
"USDC",
"BTC",
"GOLD"
],
"volatile_op_limit_usdt": "10000.000000",
"volatile_daily_limit_usdt": "50000.000000"
}{
"error": "settlement_asset_disabled",
"message": "settlement asset is disabled for this organization"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "account_required",
"message": "this endpoint requires an account credential"
}设置我的默认余额(payouts 与 payins)
更改你的默认余额。default_settlement_asset 是当请求未显式传 settlement_asset 时,payout 和服务费默认扣款的余额。default_payin_asset 是 payins 默认入账的余额——入账仍以 USDT 进行,净额通过 swap 引擎按真实价格自动兑换,不收取额外 swap 价差(payin 已支付其手续费与汇率;checkout 与 POS 收款保留其链接资产)。可为 USDT、USDC、BTC 或 GOLD(需组织启用)。可发送其中一个或两个字段。仅对新操作生效;进行中的操作不会重新计价。
PUT
/
v1
/
settlement
设置我的默认余额(payouts 与 payins)
curl --request PUT \
--url https://api.qbank.cl/platform/v1/settlement \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"default_settlement_asset": "BTC",
"default_payin_asset": "USDC"
}
'import requests
url = "https://api.qbank.cl/platform/v1/settlement"
payload = {
"default_settlement_asset": "BTC",
"default_payin_asset": "USDC"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({default_settlement_asset: 'BTC', default_payin_asset: 'USDC'})
};
fetch('https://api.qbank.cl/platform/v1/settlement', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qbank.cl/platform/v1/settlement",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'default_settlement_asset' => 'BTC',
'default_payin_asset' => 'USDC'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qbank.cl/platform/v1/settlement"
payload := strings.NewReader("{\n \"default_settlement_asset\": \"BTC\",\n \"default_payin_asset\": \"USDC\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.qbank.cl/platform/v1/settlement")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"default_settlement_asset\": \"BTC\",\n \"default_payin_asset\": \"USDC\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/settlement")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"default_settlement_asset\": \"BTC\",\n \"default_payin_asset\": \"USDC\"\n}"
response = http.request(request)
puts response.read_body{
"default_settlement_asset": "BTC",
"default_payin_asset": "USDC",
"enabled_assets": [
"USDT",
"USDC",
"BTC",
"GOLD"
],
"volatile_op_limit_usdt": "10000.000000",
"volatile_daily_limit_usdt": "50000.000000"
}{
"error": "settlement_asset_disabled",
"message": "settlement asset is disabled for this organization"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "account_required",
"message": "this endpoint requires an account credential"
}授权
会话 JWT(来自注册/登录)或 API key(pk_...)。
也接受 X-API-Key: <token> 作为替代请求头。
请求体
application/json
响应
更新后的结算设置。
未提供单次覆盖时,余额操作默认扣款的资产。
可用选项:
USDT, USDC, BTC, GOLD payins 默认入账的余额。入账仍以 USDT 进行,净额通过 swap 引擎按真实价格自动兑换,不收取额外 swap 价差。checkout/POS 保留其链接资产。
可用选项:
USDT, USDC, BTC, GOLD 你的组织当前允许作为结算来源的资产。
波动性资产(BTC/GOLD)的单笔限额(USDT 等值)。
波动性资产(BTC/GOLD)每账户滚动 24 小时交易量上限(USDT 等值)。
最后修改于 2026年8月22日
⌘I