Read public snapshot
curl --request GET \
--url https://api.lamarge.trade/v1/snapshotconst options = {method: 'GET'};
fetch('https://api.lamarge.trade/v1/snapshot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/snapshot"
response = requests.get(url)
print(response.text){
"cursor": "<string>",
"books": [
{
"order_id": "<string>",
"sequence": 123,
"revision": "<string>",
"to": "<string>",
"quotes": [
{
"venue": "<string>",
"chain_id": 123,
"token": "<string>",
"recipient": "<string>",
"supply": "<string>",
"receive": "<string>",
"min_fill": "<string>"
}
],
"available": "<string>",
"valid_until": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z"
}
],
"server_time": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}Events
Read public snapshot
Public books and a committed cursor; replay strictly after it. Each collection holds at most 1000 rows; more returns 503 SNAPSHOT_TOO_LARGE, never a partial snapshot. History pages do not provide a replay cursor.
GET
/
v1
/
snapshot
Read public snapshot
curl --request GET \
--url https://api.lamarge.trade/v1/snapshotconst options = {method: 'GET'};
fetch('https://api.lamarge.trade/v1/snapshot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/snapshot"
response = requests.get(url)
print(response.text){
"cursor": "<string>",
"books": [
{
"order_id": "<string>",
"sequence": 123,
"revision": "<string>",
"to": "<string>",
"quotes": [
{
"venue": "<string>",
"chain_id": 123,
"token": "<string>",
"recipient": "<string>",
"supply": "<string>",
"receive": "<string>",
"min_fill": "<string>"
}
],
"available": "<string>",
"valid_until": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z"
}
],
"server_time": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}Response
OK.
Unsigned 64-bit integer as a decimal string. Event cursors are positions, not contiguous per subscriber.
Pattern:
^[0-9]+$Public books; empty in a private snapshot.
Maximum array length:
1000Show child attributes
Show child attributes
RFC 3339 UTC; snapshots and history may keep fractional seconds.