Market config
Get all supported trading pairs and assets with their metadata. This endpoint provides essential information for trading including token decimals, symbols, and trading pair configurations.
Get all supported trading pairs and assets with their metadata
OK
Internal Server Error
GET /app/market-config HTTP/1.1
Accept: */*
{
"assets": [
{
"decimals": 6,
"max_qty_dp": 2,
"symbol": "ADA",
"trading_pairs": [
"ADAUSDM"
],
"unit": "lovelace"
}
],
"trading_pairs": [
{
"base_token": {
"decimals": 6,
"max_qty_dp": 2,
"symbol": "ADA",
"unit": "lovelace"
},
"price_max_dp": 4,
"quote_token": {
"decimals": 6,
"max_qty_dp": 2,
"symbol": "ADA",
"unit": "lovelace"
},
"symbol": "ADAUSDM"
}
]
}curl --location 'https://api.deltadefi.io/app/market-config'const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://api.deltadefi.io/app/market-config'
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.deltadefi.io/app/market-config"
method := "GET"
client := &http.Client{}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}Response:
Understanding the Response
Assets
Each asset includes:
symbol
string
Human-readable asset name (e.g., ADA, USDM)
unit
string
On-chain asset identifier (policy ID + asset name, or "lovelace" for ADA)
decimals
integer
Number of decimal places for the token on-chain
max_qty_dp
integer
Maximum decimal places allowed for quantity inputs
trading_pairs
array
List of trading pairs this asset is involved in
Trading Pairs
Each trading pair includes:
symbol
string
Trading pair identifier (e.g., "ADAUSDM")
base_token
object
The base asset (what you're buying/selling)
quote_token
object
The quote asset (what you're pricing in)
price_max_dp
integer
Maximum decimal places for price inputs
Last updated