Get market info for all symbols
curl --request GET \
--url https://api.orderly.org/v1/public/futuresimport requests
url = "https://api.orderly.org/v1/public/futures"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orderly.org/v1/public/futures', 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/futures",
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/futures"
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/futures")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v1/public/futures")
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": {
"rows": [
{
"symbol": "PERP_ETH_USDC",
"index_price": 1901.6,
"mark_price": 1950.1,
"sum_unitary_funding": 387.891,
"est_funding_rate": 0.00046875,
"last_funding_rate": 0.00046875,
"next_funding_time": 1683270060000,
"open_interest": 815539,
"24h_open": 2115.1,
"24h_close": 2115.2,
"24h_high": 2115.3,
"24h_low": 2114.9,
"24h_amount": 449054.7636,
"24h_volume": 6716559
}
]
},
"timestamp": 1702989203989
}Market info
Get market info for all symbols
Limit: 10 requests per 1 second per IP address
GET /v1/public/futures
Get basic market information for all the symbols.
GET
/
v1
/
public
/
futures
Get market info for all symbols
curl --request GET \
--url https://api.orderly.org/v1/public/futuresimport requests
url = "https://api.orderly.org/v1/public/futures"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orderly.org/v1/public/futures', 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/futures",
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/futures"
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/futures")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v1/public/futures")
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": {
"rows": [
{
"symbol": "PERP_ETH_USDC",
"index_price": 1901.6,
"mark_price": 1950.1,
"sum_unitary_funding": 387.891,
"est_funding_rate": 0.00046875,
"last_funding_rate": 0.00046875,
"next_funding_time": 1683270060000,
"open_interest": 815539,
"24h_open": 2115.1,
"24h_close": 2115.2,
"24h_high": 2115.3,
"24h_low": 2114.9,
"24h_amount": 449054.7636,
"24h_volume": 6716559
}
]
},
"timestamp": 1702989203989
}⌘I