Get AMM pool configurations

Rate limit: 5 every second

API Overview


HTTP method

GET

Path

/api/v3/amm/pools

Summary

Returns the configurations of all supported AMM pools

API description


HTTP Header

None

Request parameters

None

Request example

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.9
curl https://api3.loopring.io/api/v3/amm/pools

Response fields

Field Type Required Description Example
pools List[AmmPool
InfoV3
]
Y AMM pool list /

Response example

{
  "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
    }
  ]
}

Status code

Value Description
100000 Unknown error

Model


AmmPoolInfoV3

AMM pool info

Field Type Required Description Example
name string Y AMM pool name, used to calculate domainSeparator of EIP712 hash if use chooses ECDSA sign path. "LRC-USDT-Poo
l-1"
market string Y AMM pool market name, can be used to query market related info like ticker, etc "AMM-LRC-USDT"
address string Y AMM pool address "0xa6fa83b62b
09174694EFD7
EE3aE608ad47
8a138E"
version string Y AMM pool contract version "1.0.0"
tokens AmmPool
Tokens
Y AMM pool token info "{[2,3],5}"
feeBips integer Y AMM fee bips 6
precisions AmmPool
Precisions
Y AMM pool precision configuration "{price:6, amount: 8}"
createdAt string Y AMM pool online date "160946640000
0"
status integer Y AMM market status 7

AmmPoolTokens

Wrapper object containing information about the tokens in the pool

Field Type Required Description Example
pooled List[object] Y 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 Y 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

Field Type Required Description Example
price integer Y The price precision requirement of a AMM pool 6
amount integer Y The amount precision requirement of a AMM pool 6

results matching ""

    No results matching ""