后端接口
  1. swap_liquid
后端接口
  • dotswap
    • v2
      • 构建注入流动性psbt (无需先请求pre_add_liquid)
    • swap_liquid
      • operation
        • 注入流动性
        • 预注入流动性
        • Brc20构建注入流动性psbt
      • 获取流动池信息
        POST
      • 搜索所有币种
        POST
      • 管理流动池
        POST
      • 预移除流动性
        POST
      • 流动性操作记录
        POST
      • 统计交易信息列表
        POST
      • 根据币对获取流动池地址
        POST
      • 获取池子apr
        POST
      • 查询某时刻流动池持有数量
        POST
      • 移除流动性
        POST
      • 根据移除比例获取流动性信息
        POST
      • 构建移除流动性psbt
        POST
  1. swap_liquid

获取池子apr

开发中
POST
https://test-api-proxy.ddpurse.com/brc20swap/external/pool/apr

请求参数

Header 参数
Pragma
string 
必需
示例值:
no-cache
Authorization
string 
必需
User-Id
string 
必需
User-Agent
string 
必需
示例值:
Apifox/1.0.0 (https://apifox.com)
Content-Type
string 
必需
示例值:
application/json
Accept
string 
必需
示例值:
*/*
Connection
string 
必需
示例值:
keep-alive
Body 参数application/json
coin_type_1
string 
必需
coin_type_2
string 
必需
tick1
string 
必需
tick2
string 
必需
示例
{
   "coin_type_1":"btc",
   "coin_type_2" : "runes",
   "tick1":"btc",
   "tick2" :"FGFGFGFGFGFGF"
}

示例代码

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/external/pool/apr' \
--header 'Pragma: no-cache' \
--header 'Authorization;' \
--header 'User-Id;' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Accept: */*' \
--header 'Connection: keep-alive' \
--header 'Content-Type: application/json' \
--data-raw '{
   "coin_type_1":"btc",
   "coin_type_2" : "runes",
   "tick1":"btc",
   "tick2" :"FGFGFGFGFGFGF"
}'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2025-02-07 08:06:56
上一页
根据币对获取流动池地址
下一页
查询某时刻流动池持有数量
Built with