获取流动池信息
开发中
POST
/brc20swap/swap_info
请求参数
Header 参数
Authorization
string
token
默认值:
Xverse-j21jurgoi9aeu9no
User-Id
string
可选
Body 参数application/json
send_coin_type
string
要发送的币种
send_tick
string
要发送的tick
receive_coin_type
string
要接收的币种
receive_tick
string
要接收的tick
address
string
请求地址
示例
{
"send_coin_type": "runes",
"send_tick": "SHE•SHE•SHE•SHE•SHE",
"receive_coin_type": "btc",
"receive_tick": "BTC",
"address": "tb1qge80xavle7c7k0tk7vceaavwcgpsr3jchl0w3e"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test-api-proxy.ddpurse.com/brc20swap/swap_info' \
--header 'Authorization: Xverse-j21jurgoi9aeu9no' \
--header 'User-Id;' \
--header 'Content-Type: application/json' \
--data-raw '{
"send_coin_type": "runes",
"send_tick": "SHE•SHE•SHE•SHE•SHE",
"receive_coin_type": "btc",
"receive_tick": "BTC",
"address": "tb1qge80xavle7c7k0tk7vceaavwcgpsr3jchl0w3e"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
tick1_volume
string
必需
tick2_volume
string
必需
tick1_per_tick2
string
必需
tick2_per_tick1
string
必需
start_swap_timestamp
integer
必需
token
string
必需
require_check
integer
必需
non_removable
boolean
不可移除
platform_service_fee_percent
string
买 - 平台服务费
liquider_service_fee_percent
string
买 - LP收益
platform_service_fee_sell_percent
string
卖 - 平台服务费
liquider_service_sell_percent
string
卖 - LP收益
partner_service_fee_percent
null
必需
start_remove_timestamp
integer
必需
req_id
string
必需
示例
{
"code": 0,
"msg": "",
"data": {
"tick1_volume": "10000",
"tick2_volume": "10000",
"tick1_per_tick2": "100000000",
"tick2_per_tick1": "0.00000001",
"platform_service_fee_percent": "0.004",
"liquider_service_fee_percent": "0.016",
"platform_service_fee_sell_percent": "0.01",
"liquider_service_sell_percent": "0.04",
"partner_service_fee_percent": null,
"start_swap_timestamp": 0,
"start_remove_timestamp": 0,
"require_check": 0,
"token": "ee1d3ad48400000:0",
"non_removable": false
},
"req_id": "1887717726683045888"
}
⚪10180005没有找到流动性币对
修改于 2025-02-07 04:22:49