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

流动性操作记录

开发中
POST
https://test-api-proxy.ddpurse.com/brc20swap/liquid_history

请求参数

Body 参数application/json
address
string 
为空查询所有
可选
page
integer 
必需
page_size
integer 
必需
tick1
string 
可选
tick2
string 
可选
示例
{
    "page": 1,
    "page_size": 15,
    "address": "tb1pf0tcpgxr30kqhh2gn3pgvr4qyachzm0xxydnfxth5cxlkjl37ugspxp7tm",
    "sort": "",
    "desc": true,
    "crypto_type": "btc"
}

示例代码

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/liquid_history' \
--header 'Content-Type: application/json' \
--data-raw '{
    "page": 1,
    "page_size": 15,
    "address": "tb1pf0tcpgxr30kqhh2gn3pgvr4qyachzm0xxydnfxth5cxlkjl37ugspxp7tm",
    "sort": "",
    "desc": true,
    "crypto_type": "btc"
}'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
msg
string 
必需
data
object 
必需
items
array [object {11}] 
必需
total
integer 
必需
req_id
string 
必需
示例
{
    "code": 0,
    "msg": "string",
    "data": {
        "items": [
            {
                "protocol": "string",
                "op": "string",
                "tick1": "string",
                "tick1_amount": "string",
                "tick2": "string",
                "tick2_amount": "string",
                "time_sec": 0,
                "status": "string",
                "address": "string",
                "refundable": true,
                "txs": [
                    {
                        "tx_id": "string",
                        "status": "string",
                        "is_refund": "string"
                    }
                ]
            }
        ],
        "total": 0
    },
    "req_id": "string"
}
🟢200成功
上一页
预移除流动性
下一页
统计交易信息列表
Built with