Skip to content

Loopring Exchange Data API

PeterHeng666 edited this page Aug 18, 2022 · 14 revisions

Loopring Exchange Data API

Orderbook data

Summary: https://api3.loopring.io/api/v3/overview

Asset: https://api3.loopring.io/api/v3/asset

Ticker: https://api3.loopring.io/api/v3/tickers

Market pair: https://api3.loopring.io/api/v3/exchange/markets

OrderBook: https://api3.loopring.io/api/v3/orderbook

https://api3.loopring.io/api/v3/orderbook?market_pair=lrc-eth&level=3 (level can be 1, 2, or 3. 3 stands for no aggregation, 2 stands for 2 decimals aggregation, and 1 stands for max aggregation) market_pair can be any market that we support, which are available by querying Market Pair

Trades: https://api3.loopring.io/api/v3/trades

https://api3.loopring.io/api/v3/trades?market_pair=lrc-eth market_pair can be any market that we support, which are available by querying Market Pair

AMM data

Pool list: https://api3.loopring.io/api/v3/amm/pools

All tickers: https://api3.loopring.io/api/v3/allTickers Just like Ticker but also returns AMM market tickers, see Combined market section for response details

AMM pool statistics: https://api3.loopring.io/api/v3/poolsStats Include fee income, liquid mining rewards & corresponding APY.

Combined markets data

Now loopring supports combined AMM & orderBook order, so all tickers contain both combined, orderbook, and AMM. For the response of All tickers API: https://api3.loopring.io/api/v3/allTickers

{
"markets":    // combined k-line & trading volume.
"orderbooks": // data from orderbook markets.
"pools":      // data from AMM pool markets.
}