curl --request GET \
--url https://api.sandbox.busha.so/v1/exchange/markets \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.busha.so/v1/exchange/markets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.busha.so/v1/exchange/markets', 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.sandbox.busha.so/v1/exchange/markets",
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.sandbox.busha.so/v1/exchange/markets"
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.sandbox.busha.so/v1/exchange/markets")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.busha.so/v1/exchange/markets")
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{
"status": "success",
"message": "Markets retrieved",
"data": [
{
"symbol": "USDT-NGN",
"base_currency": "USDT",
"quote_currency": "NGN",
"status": "trading",
"price_tick": "0.01",
"quantity_step": "0.01",
"min_quantity": "10",
"max_quantity": "500000",
"min_notional": "5000",
"price_decimals": 2,
"quantity_decimals": 2
},
{
"symbol": "BTC-NGN",
"base_currency": "BTC",
"quote_currency": "NGN",
"status": "trading",
"price_tick": "1000",
"quantity_step": "0.00000001",
"min_quantity": "0.0001",
"max_quantity": "5",
"min_notional": "5000",
"price_decimals": 0,
"quantity_decimals": 8
},
{
"symbol": "BTC-USDT",
"base_currency": "BTC",
"quote_currency": "USDT",
"status": "post_only",
"price_tick": "0.1",
"quantity_step": "0.00001",
"min_quantity": "0.0001",
"max_quantity": "20",
"min_notional": "5",
"price_decimals": 1,
"quantity_decimals": 5
}
]
}List exchange markets
Markets that accept new orders and the rules an order against them has to satisfy: the tick, the step, the size bounds, the minimum notional and the display precisions. A bot reads this once at start-up and again whenever a market_halted, price_off_tick or quantity_off_step rejection tells it the copy it holds has gone stale.
The list is small and unpaginated, as /v1/pairs is. Reading it needs no credential; a bearer token is accepted so a client can keep one code path for public and private calls. Read from the venue’s own market catalogue; a market that has not been listed under a symbol yet is absent. By default, only trading, post_only and limit_only markets are returned. Set include_inactive=true to also load halted, cancel_only and delisted market metadata for existing orders and history. An explicit status filter takes precedence over this flag.
curl --request GET \
--url https://api.sandbox.busha.so/v1/exchange/markets \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.busha.so/v1/exchange/markets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.busha.so/v1/exchange/markets', 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.sandbox.busha.so/v1/exchange/markets",
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.sandbox.busha.so/v1/exchange/markets"
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.sandbox.busha.so/v1/exchange/markets")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.busha.so/v1/exchange/markets")
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{
"status": "success",
"message": "Markets retrieved",
"data": [
{
"symbol": "USDT-NGN",
"base_currency": "USDT",
"quote_currency": "NGN",
"status": "trading",
"price_tick": "0.01",
"quantity_step": "0.01",
"min_quantity": "10",
"max_quantity": "500000",
"min_notional": "5000",
"price_decimals": 2,
"quantity_decimals": 2
},
{
"symbol": "BTC-NGN",
"base_currency": "BTC",
"quote_currency": "NGN",
"status": "trading",
"price_tick": "1000",
"quantity_step": "0.00000001",
"min_quantity": "0.0001",
"max_quantity": "5",
"min_notional": "5000",
"price_decimals": 0,
"quantity_decimals": 8
},
{
"symbol": "BTC-USDT",
"base_currency": "BTC",
"quote_currency": "USDT",
"status": "post_only",
"price_tick": "0.1",
"quantity_step": "0.00001",
"min_quantity": "0.0001",
"max_quantity": "20",
"min_notional": "5",
"price_decimals": 1,
"quantity_decimals": 5
}
]
}Query Parameters
Only markets in this state, including inactive states; overrides include_inactive
What a market currently admits. trading is normal two-sided trading. post_only accepts resting orders but no order that would take, which is how a venue reopens after a halt without letting the first taker cross a thin book. limit_only refuses market orders. cancel_only accepts no new orders and lets makers withdraw. halted accepts nothing. delisted is permanent.
trading, post_only, limit_only, cancel_only, halted, delisted "trading"