Get order rules per symbol
curl --request GET \
--url https://api.orderly.org/v1/public/info/{symbol}import requests
url = "https://api.orderly.org/v1/public/info/{symbol}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orderly.org/v1/public/info/{symbol}', 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.orderly.org/v1/public/info/{symbol}",
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://api.orderly.org/v1/public/info/{symbol}"
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://api.orderly.org/v1/public/info/{symbol}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v1/public/info/{symbol}")
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{
"success": true,
"data": {
"symbol": "PERP_BTC_USDC",
"quote_min": 0,
"quote_max": 100000,
"quote_tick": 0.1,
"base_min": 0.00001,
"base_max": 20,
"base_tick": 0.00001,
"min_notional": 1,
"price_range": 0.02,
"price_scope": 0.4,
"std_liquidation_fee": 0.03,
"liquidator_fee": 0.015,
"claim_insurance_fund_discount": 0.0075,
"funding_period": 8,
"cap_funding": 0.000375,
"floor_funding": -0.000375,
"interest_rate": 0.0001,
"created_time": 1684140107326,
"updated_time": 1685345968053,
"base_mmr": 0.05,
"base_imr": 0.1,
"cap_ir": 0.0003,
"floor_ir": -0.0003,
"imr_factor": 0.025,
"liquidation_tier": 1,
"global_max_oi_cap": 11111
},
"timestamp": 1702989203989
}Market info
Get order rules per symbol
Limit: 10 requests per 1 second per IP address
GET /v1/public/info/{symbol}
This endpoint provides all the values for the rules that an order need to fulfil in order for it to be placed successfully. The rules are defined as follows:
Price filter
-
price>=quote_min -
price=<quote_max -
(price - quote_min) % quote_tickshould equal to zero -
price=<mark_price * (1 + price_range)when BUY -
price>=mark_price * (1 - price_range)when SELL
Size filter
-
base_min=<quantity=<base_max -
(quantity - base_min) % base_tickshould equal to zero
Min Notional filter
price * quantityshould greater thanmin_notional
Risk Exposure filer
- Order size should be within holding threshold. See account_info
GET
/
v1
/
public
/
info
/
{symbol}
Get order rules per symbol
curl --request GET \
--url https://api.orderly.org/v1/public/info/{symbol}import requests
url = "https://api.orderly.org/v1/public/info/{symbol}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orderly.org/v1/public/info/{symbol}', 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.orderly.org/v1/public/info/{symbol}",
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://api.orderly.org/v1/public/info/{symbol}"
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://api.orderly.org/v1/public/info/{symbol}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v1/public/info/{symbol}")
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{
"success": true,
"data": {
"symbol": "PERP_BTC_USDC",
"quote_min": 0,
"quote_max": 100000,
"quote_tick": 0.1,
"base_min": 0.00001,
"base_max": 20,
"base_tick": 0.00001,
"min_notional": 1,
"price_range": 0.02,
"price_scope": 0.4,
"std_liquidation_fee": 0.03,
"liquidator_fee": 0.015,
"claim_insurance_fund_discount": 0.0075,
"funding_period": 8,
"cap_funding": 0.000375,
"floor_funding": -0.000375,
"interest_rate": 0.0001,
"created_time": 1684140107326,
"updated_time": 1685345968053,
"base_mmr": 0.05,
"base_imr": 0.1,
"cap_ir": 0.0003,
"floor_ir": -0.0003,
"imr_factor": 0.025,
"liquidation_tier": 1,
"global_max_oi_cap": 11111
},
"timestamp": 1702989203989
}