Get a book
curl --request GET \
--url https://api.lamarge.trade/v1/booksconst options = {method: 'GET'};
fetch('https://api.lamarge.trade/v1/books', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/books"
response = requests.get(url)
print(response.text){
"from": "<string>",
"to": "<string>",
"max_fill": "<string>",
"taker_fee_bps": 50,
"levels": [
{
"order_id": "<string>",
"quote_index": 1,
"supply": "<string>",
"receive": "<string>",
"available": "<string>",
"min_fill": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"quoted_at": "2023-11-07T05:31:56Z",
"sequence": 2,
"valid_until": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}Market data
Get a book
Levels the taker pays on from and receives on to; they are not reservations. A level is a quote that admits takes, with a signed expiry at least the maker timeout away and min(available, max_fill) at least min_fill. With a Hyperliquid from, or a Lighter or Aster pool (approved makers only), the maker’s balance must have been read within two minutes (before quoting); such a pool also leaves the book once its bot’s lease is two minutes old (bot loop).
GET
/
v1
/
books
Get a book
curl --request GET \
--url https://api.lamarge.trade/v1/booksconst options = {method: 'GET'};
fetch('https://api.lamarge.trade/v1/books', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/books"
response = requests.get(url)
print(response.text){
"from": "<string>",
"to": "<string>",
"max_fill": "<string>",
"taker_fee_bps": 50,
"levels": [
{
"order_id": "<string>",
"quote_index": 1,
"supply": "<string>",
"receive": "<string>",
"available": "<string>",
"min_fill": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"quoted_at": "2023-11-07T05:31:56Z",
"sequence": 2,
"valid_until": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}Query Parameters
Response
The book.