Skip to main content
GET
/
v1
/
public
/
liquidated_positions
Get liquidated positions info
curl --request GET \
  --url https://api.orderly.org/v1/public/liquidated_positions
import 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

symbol
string

Filter results to a specific trading symbol, for example PERP_ETH_USDC.

start_t
string

Start time of the query range as a 13-digit Unix timestamp in milliseconds.

end_t
string

End time of the query range as a 13-digit Unix timestamp in milliseconds.

page
string

Page number to return. Starts from 1.

size
string

Number of records to return per page.

Response

200 - application/json

Success

success
boolean
required

Indicates whether the request was successful.

Example:

true

data
object
required
timestamp
integer

Server timestamp in milliseconds.

Example:

1702989203989