Get price info for all symbols
curl --request GET \
--url https://api.orderly.org/v1/public/market_info/price_changesimport requests
url = "https://api.orderly.org/v1/public/market_info/price_changes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orderly.org/v1/public/market_info/price_changes', 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/market_info/price_changes",
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/market_info/price_changes"
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/market_info/price_changes")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v1/public/market_info/price_changes")
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_BTC_USDC",
"last_price": 31000,
"5m": 31000,
"30m": 31000,
"1h": 31000,
"4h": 31000,
"24h": 31000,
"3d": 31000,
"7d": 31000,
"30d": null
}
]
},
"timestamp": 1702989203989
}Market info
Get price info for all symbols
Limit: 10 requests per 1 second per IP address
GET /v1/public/market_info/price_changes
Return the current price and the price 5m, 30m, 1h, 24h, 3d, 7d, 30d ago for all symbols
Examples:
-
Now: 11:06:30 (2024-07-11)
-
5m: 11:01:00 (2024-07-11)
-
30m: 10:36:00 (2024-07-11)
-
1h: 10:06:00 (2024-07-11)
-
4h: 07:06:00 (2024-07-11)
-
24h: 11:06:00 (2024-07-10)
-
3d: 00:00:00 (2024-07-08)
-
7d: 00:00:00 (2024-07-04)
-
30d: 00:00:00 (2024-06-11)
GET
/
v1
/
public
/
market_info
/
price_changes
Get price info for all symbols
curl --request GET \
--url https://api.orderly.org/v1/public/market_info/price_changesimport requests
url = "https://api.orderly.org/v1/public/market_info/price_changes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orderly.org/v1/public/market_info/price_changes', 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/market_info/price_changes",
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/market_info/price_changes"
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/market_info/price_changes")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v1/public/market_info/price_changes")
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_BTC_USDC",
"last_price": 31000,
"5m": 31000,
"30m": 31000,
"1h": 31000,
"4h": 31000,
"24h": 31000,
"3d": 31000,
"7d": 31000,
"30d": null
}
]
},
"timestamp": 1702989203989
}