Get liquidated positions info
curl --request GET \
--url https://api.orderly.org/v1/public/liquidated_positionsimport requests
url = "https://api.orderly.org/v1/public/liquidated_positions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orderly.org/v1/public/liquidated_positions', 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/liquidated_positions",
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/liquidated_positions"
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/liquidated_positions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v1/public/liquidated_positions")
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": {
"meta": {
"total": 9,
"records_per_page": 25,
"current_page": 1
},
"rows": [
{
"timestamp": 1683802462092,
"liquidation_id": 29,
"transfer_amount_to_insurance_fund": 0,
"positions_by_perp": [
{
"symbol": "PERP_ETH_USDC",
"position_qty": 0,
"liquidator_fee": 0.015,
"cost_position_transfer": 0,
"transfer_price": 1860,
"insurance_fund_fee": 0.011999,
"abs_insurance_fund_fee": 0,
"seq": 1730181536341943600,
"abs_liquidator_fee": 0
}
],
"type": "liquidated"
}
]
},
"timestamp": 1702989203989
}Liquidations
Get liquidated positions info
Limit: 10 requests per 1 second per IP address
GET /v1/public/liquidated_positions
Returns a list of positions that have been fully liquidated. This includes historical data on positions that were closed by the liquidation engine after margin was exhausted.
GET
/
v1
/
public
/
liquidated_positions
Get liquidated positions info
curl --request GET \
--url https://api.orderly.org/v1/public/liquidated_positionsimport requests
url = "https://api.orderly.org/v1/public/liquidated_positions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orderly.org/v1/public/liquidated_positions', 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/liquidated_positions",
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/liquidated_positions"
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/liquidated_positions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v1/public/liquidated_positions")
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": {
"meta": {
"total": 9,
"records_per_page": 25,
"current_page": 1
},
"rows": [
{
"timestamp": 1683802462092,
"liquidation_id": 29,
"transfer_amount_to_insurance_fund": 0,
"positions_by_perp": [
{
"symbol": "PERP_ETH_USDC",
"position_qty": 0,
"liquidator_fee": 0.015,
"cost_position_transfer": 0,
"transfer_price": 1860,
"insurance_fund_fee": 0.011999,
"abs_insurance_fund_fee": 0,
"seq": 1730181536341943600,
"abs_liquidator_fee": 0
}
],
"type": "liquidated"
}
]
},
"timestamp": 1702989203989
}Query Parameters
Filter results to a specific trading symbol, for example PERP_ETH_USDC.
Start time of the query range as a 13-digit Unix timestamp in milliseconds.
End time of the query range as a 13-digit Unix timestamp in milliseconds.
Page number to return. Starts from 1.
Number of records to return per page.