Market config
Responses
200
OK
application/json
500
Internal Server Error
application/json
get/app/market-config
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))
}Understanding the Response
Assets
Field
Type
Description
Trading Pairs
Field
Type
Description
Last updated