Skip to main content
GET
/
api
/
v1
/
market
/
pairs
TypeScript SDK
import { KaleidoClient } from 'kaleido-sdk';

const client = new KaleidoClient({
  baseUrl: 'https://api.staging.kaleidoswap.com/api/v1'
});

const pairs = await client.listPairs();
console.log(`Found ${pairs.pairs.length} trading pairs`);
import asyncio
from kaleido_sdk import KaleidoClient

async def main():
async with KaleidoClient(
api_url="https://api.staging.kaleidoswap.com/api/v1"
) as client:
pairs = await client.list_pairs()
print(f"Found {len(pairs.pairs)} trading pairs")

asyncio.run(main())
curl --request GET \
--url https://api.signet.kaleidoswap.com/api/v1/market/pairs \
--header 'Authorization: Bearer <token>'
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.signet.kaleidoswap.com/api/v1/market/pairs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$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.signet.kaleidoswap.com/api/v1/market/pairs"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

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.signet.kaleidoswap.com/api/v1/market/pairs")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.signet.kaleidoswap.com/api/v1/market/pairs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "pairs": [
    {
      "base_asset": "<string>",
      "base_asset_id": "<string>",
      "base_precision": 123,
      "quote_asset": "<string>",
      "quote_asset_id": "<string>",
      "quote_precision": 123,
      "is_active": true,
      "min_base_order_size": 123,
      "max_base_order_size": 123,
      "min_quote_order_size": 123,
      "max_quote_order_size": 123,
      "id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Successful Response

pairs
Pair · object[]
required