GET
/
market
/
history
/
pair
curl --request GET \
  --url https://api.mobula.io/api/1/market/history/pair
{
  "data": [
    {
      "volume": 123,
      "open": 123,
      "close": 123,
      "high": 123,
      "low": 123,
      "time": 123
    }
  ]
}

Query quick start

Input in “address” field the contract address of the pair/pool you want to query. You can also query via asset explained in great details here and it will return the largest pair’s data for this asset. By default, MEV data is not included in the response.

Data details

Available resolutions:

  • 1min
  • 5min
  • 15min
  • 1h
  • 2h
  • 4h
  • 1d
  • 7d
  • 30d

Query Parameters

address
string
required

Address of the pair to retrieve market history for.

amount
integer

Maximum number of results to return.

asset
string

The Asset you want to target - asset name only works for assets listed on Mobula.

blockchain
string

The blockchain of the asset (only mandatory if asset is sent as smart-contract).

period
enum<string>

The resolution of the market history

Available options:
1min,
5min,
15min,
1h,
2h,
4h,
1d,
1w
from
integer

JS Timestamp (milliseconds) of the beginning of the timeframe (if not provided, genesis)

to
integer

JS Timestamp (milliseconds) of the end of the timeframe (if not provided, end)

usd
boolean
default: false

Whether to return in USD or native token

Response

200 - application/json
data
object[]