Get AMM pool configurations
流量控制: 每 秒
摘要
HTTP 方法
GET
访问路径
/api/v3/amm/pools
功能
Returns the configurations of all supported AMM pools
API 描述
HTTP头
| 字段 | 类型 | 必须 | 说明 | 举例 |
|---|---|---|---|---|
| X-API-KEY | string | 是 | ApiKey | "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ 6B6DQ6THZWbvrAGxzEdulXQvOKLrRW ZLnN" |
请求参数
无
请求示例
HTTP
CURL
GET http://aa90cd58e38014a1b864ddc488129b7a-624979106.us-east-2.elb.amazonaws.com/api/v3/amm/pools HTTP/1.1
Host: aa90cd58e38014a1b864ddc488129b7a-624979106.us-east-2.elb.amazonaws.com
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh,en;q=0.9
X-API-KEY: sra1aavfacurl -H "X-API-KEY:sra1aavfa" http://aa90cd58e38014a1b864ddc488129b7a-624979106.us-east-2.elb.amazonaws.com/api/v3/amm/pools响应字段
| 字段 | 类型 | 必须 | 说明 | 举例 |
|---|---|---|---|---|
| pools | List[AmmPoolInfoV3] | 是 | 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
},
"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-Pool-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 | "0xa6fa83b62b09174694 EFD7EE3aE608ad478a13 8E" |
| version | string | 是 | AMM pool contract version | "1.0.0" |
| tokens | AmmPoolTokens | 是 | AMM pool token info | "{[2,3],5}" |
| feeBips | integer | 是 | AMM fee bips | 6 |
| precisions | AmmPoolPrecisions | 是 | AMM pool precision configuration | "{price:6, amount: 8}" |
| 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 |