Get product specifications
curl --request GET \
--url https://market-data.sandbox.rails.xyz/api/v1/product-specificationsimport requests
url = "https://market-data.sandbox.rails.xyz/api/v1/product-specifications"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://market-data.sandbox.rails.xyz/api/v1/product-specifications', 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://market-data.sandbox.rails.xyz/api/v1/product-specifications",
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://market-data.sandbox.rails.xyz/api/v1/product-specifications"
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://market-data.sandbox.rails.xyz/api/v1/product-specifications")
.asString();require 'uri'
require 'net/http'
url = URI("https://market-data.sandbox.rails.xyz/api/v1/product-specifications")
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[
{
"market": "BTC-USDT",
"tickSize": "0.01",
"lotSize": "0.0000001",
"fundingIntervalHours": 1,
"minOrderSizeUSD": "1",
"maxOrderSizeUSD": "",
"contractType": "Vanilla"
},
{
"market": "ETH-USDT",
"tickSize": "0.01",
"lotSize": "0.0000001",
"fundingIntervalHours": 1,
"minOrderSizeUSD": "1",
"maxOrderSizeUSD": "",
"contractType": "Vanilla"
}
]Market Data
Get Product Specifications
This endpoint retrieves product specifications.
GET
/
api
/
v1
/
product-specifications
Get product specifications
curl --request GET \
--url https://market-data.sandbox.rails.xyz/api/v1/product-specificationsimport requests
url = "https://market-data.sandbox.rails.xyz/api/v1/product-specifications"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://market-data.sandbox.rails.xyz/api/v1/product-specifications', 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://market-data.sandbox.rails.xyz/api/v1/product-specifications",
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://market-data.sandbox.rails.xyz/api/v1/product-specifications"
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://market-data.sandbox.rails.xyz/api/v1/product-specifications")
.asString();require 'uri'
require 'net/http'
url = URI("https://market-data.sandbox.rails.xyz/api/v1/product-specifications")
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[
{
"market": "BTC-USDT",
"tickSize": "0.01",
"lotSize": "0.0000001",
"fundingIntervalHours": 1,
"minOrderSizeUSD": "1",
"maxOrderSizeUSD": "",
"contractType": "Vanilla"
},
{
"market": "ETH-USDT",
"tickSize": "0.01",
"lotSize": "0.0000001",
"fundingIntervalHours": 1,
"minOrderSizeUSD": "1",
"maxOrderSizeUSD": "",
"contractType": "Vanilla"
}
]Response
200 - application/json
Market name. Example value: ETH-USDT. To get all supported markets, call /api/v1/markets endpoint.
Minimum price movement.
Minimum quantity movement.
Funding interval in hours.
Minimum order size in USD.
Maximum order size in USD. Empty string means no limit.
Type of the contract.
⌘I