Get navigation tree
curl --request GET \
--url https://api.limitless.exchange/navigationimport requests
url = "https://api.limitless.exchange/navigation"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.limitless.exchange/navigation', 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://api.limitless.exchange/navigation",
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://api.limitless.exchange/navigation"
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://api.limitless.exchange/navigation")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.limitless.exchange/navigation")
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[
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"path": "/sports/football",
"children": "<array>",
"icon": "<string>",
"count": 123
}
]{
"message": "Invalid order data"
}Market Pages & Navigation
Get Navigation Tree
Returns the hierarchical navigation structure for market pages
GET
/
navigation
Get navigation tree
curl --request GET \
--url https://api.limitless.exchange/navigationimport requests
url = "https://api.limitless.exchange/navigation"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.limitless.exchange/navigation', 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://api.limitless.exchange/navigation",
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://api.limitless.exchange/navigation"
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://api.limitless.exchange/navigation")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.limitless.exchange/navigation")
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[
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"path": "/sports/football",
"children": "<array>",
"icon": "<string>",
"count": 123
}
]{
"message": "Invalid order data"
}This endpoint returns the hierarchical navigation structure for market pages. Use it to build sidebar navigation or category menus in your application.
Response
Navigation tree retrieved successfully
Unique identifier for the navigation node
Display name of the navigation item
URL slug for the navigation item
Full path to this navigation item
Example:
"/sports/football"
Child navigation nodes
Icon identifier for the navigation item
Number of active markets in this navigation node
⌘I