Get order book
curl --request GET \
--url https://api.aisa.one/apis/v1/polymarket/book \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/polymarket/book"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/polymarket/book', 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.aisa.one/apis/v1/polymarket/book",
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.aisa.one/apis/v1/polymarket/book"
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.aisa.one/apis/v1/polymarket/book")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/polymarket/book")
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{
"market": "0x1234567890123456789012345678901234567890",
"asset_id": "0xabc123def456...",
"timestamp": "1234567890",
"hash": "a1b2c3d4e5f6...",
"bids": [
{
"price": "0.45",
"size": "100"
},
{
"price": "0.44",
"size": "200"
}
],
"asks": [
{
"price": "0.46",
"size": "150"
},
{
"price": "0.47",
"size": "250"
}
],
"min_order_size": "1",
"tick_size": "0.01",
"neg_risk": false,
"last_trade_price": "0.45"
}Polymarket Clob
Get order book
Retrieves the order book summary for a specific token ID. Includes bids, asks, market details, and last trade price.
GET
https://api.aisa.one
/
apis
/
v1
/
polymarket
/
book
Get order book
curl --request GET \
--url https://api.aisa.one/apis/v1/polymarket/book \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/polymarket/book"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/polymarket/book', 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.aisa.one/apis/v1/polymarket/book",
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.aisa.one/apis/v1/polymarket/book"
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.aisa.one/apis/v1/polymarket/book")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/polymarket/book")
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{
"market": "0x1234567890123456789012345678901234567890",
"asset_id": "0xabc123def456...",
"timestamp": "1234567890",
"hash": "a1b2c3d4e5f6...",
"bids": [
{
"price": "0.45",
"size": "100"
},
{
"price": "0.44",
"size": "200"
}
],
"asks": [
{
"price": "0.46",
"size": "150"
},
{
"price": "0.47",
"size": "250"
}
],
"min_order_size": "1",
"tick_size": "0.01",
"neg_risk": false,
"last_trade_price": "0.45"
}授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
查询参数
Token ID (asset ID)
响应
Successfully retrieved order book
Market condition ID
示例:
"0x1234567890123456789012345678901234567890"
Token ID (asset ID)
示例:
"0xabc123def456..."
Timestamp of the order book snapshot
示例:
"1234567890"
Hash of the order book summary
示例:
"a1b2c3d4e5f6..."
List of bid orders (sorted by price descending)
Show child attributes
Show child attributes
List of ask orders (sorted by price ascending)
Show child attributes
Show child attributes
Minimum order size
示例:
"1"
Minimum price increment (tick size)
示例:
"0.01"
Whether negative risk is enabled for this market
示例:
false
Last trade price
示例:
"0.45"