根据移除比例获取流动性信息
开发中
POST
https://test-api-proxy.ddpurse.com/brc20swap/get_liquid_info
请求参数
Body 参数application/json
address
string
必需
lp_precent
integer
小数 百分比 整数
from_tick
string
当前都是btc
to_tick
string
必需
from_coin_type
string
必需
to_coin_type
string
必需
示例
{
"address": "string",
"lp_precent": 0,
"from_tick": "string",
"to_tick": "string",
"from_coin_type": "string",
"to_coin_type": "string"
}
示例代码
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/get_liquid_info' \
--header 'Content-Type: application/json' \
--data-raw '{
"address": "string",
"lp_precent": 0,
"from_tick": "string",
"to_tick": "string",
"from_coin_type": "string",
"to_coin_type": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
from_amount
string
必需
to_amount
string
必需
mutisign_fee_proportion
string
必需
示例
{
"code": 0,
"msg": "string",
"data": {
"from_amount": "string",
"to_amount": "string",
"mutisign_fee_proportion": "string"
}
}
🟢200成功