Fetch All Supported Markets By Ludo API

Guide on how to fetch the all the supported markets

Endpoint

GET https://rest-v1.ludo.ninja/info/markets

Returns a JSON object with the properties below

Markets ━ Array, An array of objects each containing the following properties

id ━ String, The id of the market supported.

domain ━ String, The domain of the market supported.

name ━ String, The name of the market supported.

logo ━ String, The logo of the market supported.

blockchains ━ Array, contains all the blockchains that this supported market is available on.

How to fetch all the supported markets by Ludo API

In this guide we will be looking into how to fetch all markets that are supported by the Ludo API.

Below is an example of how to use the endpoint in order to get all the markets that are supported by Ludo API

curl --request GET \
     --url https://rest-v1.ludo.ninja/info/markets \
     --header 'accept: application/json'
const options = {method: 'GET', headers: {accept: 'application/json'}};

fetch('https://rest-v1.ludo.ninja/info/markets', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
import requests

url = "https://rest-v1.ludo.ninja/info/markets"

headers = {"accept": "application/json"}

response = requests.get(url, headers=headers)

print(response.text)

After a successful result you will get a response of all the markets that are supported by Ludo API.