Get AMM pool configurations
流量控制: 5 每 秒
摘要
HTTP 方法
GET
访问路径
/api/v3/amm/pools
功能
Returns the configurations of all supported AMM pools
API 描述
HTTP头
无
请求参数
无
请求示例
HTTP
CURL
GET https://api3.loopring.io/api/v3/amm/pools HTTP/1.1
Host: api3.loopring.io
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh,en;q=0.9curl https://api3.loopring.io/api/v3/amm/pools响应字段
| 字段 | 类型 | 必须 | 说明 | 举例 | 
|---|---|---|---|---|
| pools | List[AmmPool InfoV3] | 是 | AMM pool list | / | 
响应示例
{
  "pools" : [
    {
      "name" : "LRC-USDT-Pool-1",
      "market" : "AMM-LRC-USDT",
      "address" : "0xa6fa83b62b09174694EFD7EE3aE608ad478a138E",
      "version" : "1.0.0",
      "tokens" : {
        "pooled" : [2,3,5],
        "lp" : 0
      },
      "feeBips" : 6,
      "precisions" : {
        "price" : 6,
        "amount" : 6
      },
      "createdAt" : "1609466400000",
      "status" : 7
    }
  ]
}
状态码
| 状态码 | 描述 | 
|---|---|
| 100000 | Unknown error | 
模型
AmmPoolInfoV3
AMM pool info
| 字段 | 类型 | 必须 | 说明 | 举例 | 
|---|---|---|---|---|
| name | string | 是 | AMM pool name, used to calculate domainSeparator of EIP712 hash if use chooses ECDSA sign path. | "LRC-USDT-Poo l-1" | 
| market | string | 是 | AMM pool market name, can be used to query market related info like ticker, etc | "AMM-LRC-USDT" | 
| address | string | 是 | AMM pool address | "0xa6fa83b62b 09174694EFD7 EE3aE608ad47 8a138E" | 
| version | string | 是 | AMM pool contract version | "1.0.0" | 
| tokens | AmmPool Tokens | 是 | AMM pool token info | "{[2,3],5}" | 
| feeBips | integer | 是 | AMM fee bips | 6 | 
| precisions | AmmPool Precisions | 是 | AMM pool precision configuration | "{price:6, amount: 8}" | 
| createdAt | string | 是 | AMM pool online date | "160946640000 0" | 
| status | integer | 是 | AMM market status | 7 | 
AmmPoolTokens
Wrapper object containing information about the tokens in the pool
| 字段 | 类型 | 必须 | 说明 | 举例 | 
|---|---|---|---|---|
| pooled | List[object] | 是 | An array containing the unique identifiers of those tokens that are currently in the pool, seq matters as most requests ask for the same sequence. | "[2,3,5]" | 
| lp | integer | 是 | The unique identifier of the pool-specific LP token. This token is minted when supplying liquidity to the pool, and represents liquidity stakes in it | 0 | 
AmmPoolPrecisions
The precision requirement of a AMM pool
| 字段 | 类型 | 必须 | 说明 | 举例 | 
|---|---|---|---|---|
| price | integer | 是 | The price precision requirement of a AMM pool | 6 | 
| amount | integer | 是 | The amount precision requirement of a AMM pool | 6 |