Get Binance Depth
curl --request GET \
--url https://api.polyquantlab.com/v1/binance/depth \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.polyquantlab.com/v1/binance/depth"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.polyquantlab.com/v1/binance/depth', 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.polyquantlab.com/v1/binance/depth",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.polyquantlab.com/v1/binance/depth"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.polyquantlab.com/v1/binance/depth")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polyquantlab.com/v1/binance/depth")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"ticker": "BTC",
"total": 86400,
"limit": 100,
"offset": 0,
"snapshots": [
{
"timestamp": "2026-06-06T03:55:00.100+00:00",
"update_id": 78421042,
"bids": [
[
109519.5,
0.842
],
[
109519,
1.241
],
[
109518.5,
0.518
]
],
"asks": [
[
109520,
0.612
],
[
109520.5,
0.982
],
[
109521,
1.142
]
],
"best_bid": 109519.5,
"best_ask": 109520,
"n_bids": 20,
"n_asks": 20
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}L2 depth — exchanges
Get Binance Depth
Binance spot L2 (top-20) order-book snapshots.
Collected via <symbol>@depth20@100ms partial-book WebSocket — each
snapshot is a complete top-20 push, no diff replay needed. Cadence
is ~100 ms when actively quoting.
GET
/
v1
/
binance
/
depth
Get Binance Depth
curl --request GET \
--url https://api.polyquantlab.com/v1/binance/depth \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.polyquantlab.com/v1/binance/depth"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.polyquantlab.com/v1/binance/depth', 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.polyquantlab.com/v1/binance/depth",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.polyquantlab.com/v1/binance/depth"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.polyquantlab.com/v1/binance/depth")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polyquantlab.com/v1/binance/depth")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"ticker": "BTC",
"total": 86400,
"limit": 100,
"offset": 0,
"snapshots": [
{
"timestamp": "2026-06-06T03:55:00.100+00:00",
"update_id": 78421042,
"bids": [
[
109519.5,
0.842
],
[
109519,
1.241
],
[
109518.5,
0.518
]
],
"asks": [
[
109520,
0.612
],
[
109520.5,
0.982
],
[
109521,
1.142
]
],
"best_bid": 109519.5,
"best_ask": 109520,
"n_bids": 20,
"n_asks": 20
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Examples:
"BTC"
"ETH"
"SOL"
Required range:
x <= 10000Required range:
x >= 0⌘I