Trading Pair By ID
curl --request GET \
--url https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}import requests
url = "https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}', 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}",
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}"
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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}")
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{
"tradingPair": {
"baseAssetId": "456e7890-e12b-12d3-a456-426614174000",
"baseDecimals": 8,
"baseIconUrl": "https://cdn.0xmonaco.com/assets/btc.svg",
"baseToken": "BTC",
"baseTokenContract": "0x1234567890abcdef1234567890abcdef12345678",
"id": "123e4567-e89b-12d3-a456-426614174000",
"isActive": true,
"makerFeeBps": -2,
"marketType": "SPOT",
"maxOrderSize": "100.0",
"minOrderSize": "0.0001",
"quoteAssetId": "789e0123-e45b-12d3-a456-426614174000",
"quoteDecimals": 6,
"quoteIconUrl": "https://cdn.0xmonaco.com/assets/usdc.svg",
"quoteToken": "USDC",
"quoteTokenContract": "0x6a86da986797d59a839d136db490292cd560c131",
"symbol": "BTC/USDC",
"takerFeeBps": 10,
"tickSize": "0.01",
"minLeverage": "1",
"maxLeverage": "20",
"category": "crypto",
"quantityStepSize": "0.00001",
"baseAssetName": "Robinhood Markets",
"quoteAssetName": "USDC"
}
}Market
Trading Pair By ID
Trading Pair By ID
Get a specific trading pair by its UUID.
GET
/
api
/
v1
/
market
/
pairs
/
{tradingPairId}
Trading Pair By ID
curl --request GET \
--url https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}import requests
url = "https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}', 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}",
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}"
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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.apimonaco.xyz/api/v1/market/pairs/{tradingPairId}")
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{
"tradingPair": {
"baseAssetId": "456e7890-e12b-12d3-a456-426614174000",
"baseDecimals": 8,
"baseIconUrl": "https://cdn.0xmonaco.com/assets/btc.svg",
"baseToken": "BTC",
"baseTokenContract": "0x1234567890abcdef1234567890abcdef12345678",
"id": "123e4567-e89b-12d3-a456-426614174000",
"isActive": true,
"makerFeeBps": -2,
"marketType": "SPOT",
"maxOrderSize": "100.0",
"minOrderSize": "0.0001",
"quoteAssetId": "789e0123-e45b-12d3-a456-426614174000",
"quoteDecimals": 6,
"quoteIconUrl": "https://cdn.0xmonaco.com/assets/usdc.svg",
"quoteToken": "USDC",
"quoteTokenContract": "0x6a86da986797d59a839d136db490292cd560c131",
"symbol": "BTC/USDC",
"takerFeeBps": 10,
"tickSize": "0.01",
"minLeverage": "1",
"maxLeverage": "20",
"category": "crypto",
"quantityStepSize": "0.00001",
"baseAssetName": "Robinhood Markets",
"quoteAssetName": "USDC"
}
}Was this page helpful?

