curl --request GET \
--url https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}/metadataimport requests
url = "https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}/metadata"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}/metadata', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}/metadata",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}/metadata"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}/metadata")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}/metadata")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"baseIconUrl": "https://assets.0xmonaco.com/icons/btc.svg",
"high24h": "96500.00",
"lastPrice": "95432.50",
"lastPriceTimestamp": "1736742000000",
"low24h": "94200.00",
"marketInitializationTimestamp": "1735000000000",
"priceChange24h": "1232.50",
"priceChangePercent24h": "1.31",
"quoteIconUrl": "https://assets.0xmonaco.com/icons/usdc.svg",
"symbol": "BTC/USDC",
"volume24h": "1234.5678",
"minLeverage": "1",
"maxLeverage": "20",
"markPrice": "95410.25",
"indexPrice": "95400.00",
"totalBaseVolumeLtd": "123456.78900000",
"totalQuoteVolumeLtd": "9123456789.50",
"totalTradeCountLtd": 482931,
"quoteVolume24h": "117845632.18"
}Market Metadata
Market Metadata
Returns current price (from latest candle), 24h statistics (high, low, volume, change), and market initialization timestamp. 24h fields will be null if less than 24 hours of data available.
curl --request GET \
--url https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}/metadataimport requests
url = "https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}/metadata"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}/metadata', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}/metadata",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}/metadata"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}/metadata")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}/metadata")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"baseIconUrl": "https://assets.0xmonaco.com/icons/btc.svg",
"high24h": "96500.00",
"lastPrice": "95432.50",
"lastPriceTimestamp": "1736742000000",
"low24h": "94200.00",
"marketInitializationTimestamp": "1735000000000",
"priceChange24h": "1232.50",
"priceChangePercent24h": "1.31",
"quoteIconUrl": "https://assets.0xmonaco.com/icons/usdc.svg",
"symbol": "BTC/USDC",
"volume24h": "1234.5678",
"minLeverage": "1",
"maxLeverage": "20",
"markPrice": "95410.25",
"indexPrice": "95400.00",
"totalBaseVolumeLtd": "123456.78900000",
"totalQuoteVolumeLtd": "9123456789.50",
"totalTradeCountLtd": 482931,
"quoteVolume24h": "117845632.18"
}Path Parameters
Response
OK
Market metadata with current price and 24h statistics.
URL for the base token icon
"https://assets.0xmonaco.com/icons/btc.svg"
Highest price in the last 24 hours
"96500.00"
Most recent trade price
"95432.50"
Timestamp of the last trade (ms since epoch)
"1736742000000"
Lowest price in the last 24 hours
"94200.00"
When this market was first initialized (ms since epoch)
"1735000000000"
Absolute price change in the last 24 hours
"1232.50"
Percentage price change in the last 24 hours
"1.31"
URL for the quote token icon
"https://assets.0xmonaco.com/icons/usdc.svg"
Trading pair symbol
"BTC/USDC"
Base token volume in the last 24 hours
"1234.5678"
Minimum supported leverage for margin markets
"1"
Maximum supported leverage for margin markets
"20"
Current manipulation-resistant mark price
"95410.25"
Current index/oracle reference price
"95400.00"
Life-to-date cumulative base-token volume (since market inception); "0" for a pair with no trades yet
"123456.78900000"
Life-to-date cumulative quote-token volume (since market inception); "0" for a pair with no trades yet
"9123456789.50"
Life-to-date cumulative number of trades (since market inception); 0 for a pair with no trades yet
482931
Quote-token (notional) volume summed over the available candles in the rolling 24h window; null when quote volume is unavailable for the window
"117845632.18"
Was this page helpful?

