Market Info
curl --request GET \
--url https://whitebit.com/api/v4/public/marketsimport requests
url = "https://whitebit.com/api/v4/public/markets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://whitebit.com/api/v4/public/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://whitebit.com/api/v4/public/markets",
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://whitebit.com/api/v4/public/markets"
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://whitebit.com/api/v4/public/markets")
.asString();require 'uri'
require 'net/http'
url = URI("https://whitebit.com/api/v4/public/markets")
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[
{
"name": "SON_USD",
"stock": "SON",
"money": "USD",
"stockPrec": "3",
"moneyPrec": "2",
"feePrec": "4",
"makerFee": "0.001",
"takerFee": "0.001",
"minAmount": "0.001",
"minTotal": "0.001",
"tradesEnabled": true,
"type": "spot",
"maxTotal": "10000000000",
"isCollateral": true
}
]{
"success": false,
"message": "ERROR MESSAGE",
"params": []
}Market Info
Get detailed configuration and trading rules for all available markets on WhiteBIT via the V4 API.
GET
/
api
/
v4
/
public
/
markets
Market Info
curl --request GET \
--url https://whitebit.com/api/v4/public/marketsimport requests
url = "https://whitebit.com/api/v4/public/markets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://whitebit.com/api/v4/public/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://whitebit.com/api/v4/public/markets",
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://whitebit.com/api/v4/public/markets"
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://whitebit.com/api/v4/public/markets")
.asString();require 'uri'
require 'net/http'
url = URI("https://whitebit.com/api/v4/public/markets")
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[
{
"name": "SON_USD",
"stock": "SON",
"money": "USD",
"stockPrec": "3",
"moneyPrec": "2",
"feePrec": "4",
"makerFee": "0.001",
"takerFee": "0.001",
"minAmount": "0.001",
"minTotal": "0.001",
"tradesEnabled": true,
"type": "spot",
"maxTotal": "10000000000",
"isCollateral": true
}
]{
"success": false,
"message": "ERROR MESSAGE",
"params": []
}Response
Successful response
Market pair name
Example:
"SON_USD"
Ticker of stock currency
Example:
"SON"
Ticker of money currency
Example:
"USD"
Stock currency precision
Example:
"3"
Precision of money currency
Example:
"2"
Fee precision
Example:
"4"
Default maker fee ratio
Example:
"0.001"
Default taker fee ratio
Example:
"0.001"
Minimal amount of stock to trade
Example:
"0.001"
Minimal amount of money to trade
Example:
"0.001"
Indicates whether trading is enabled
Example:
true
Market type. Possible values: spot, futures
Available options:
spot, futures Example:
"spot"
Maximum total (amount * price) of money to trade
Example:
"10000000000"
Indicates whether margin trading is enabled
Example:
true
Was this page helpful?