Replay public events
curl --request GET \
--url https://api.lamarge.trade/v1/eventsconst options = {method: 'GET'};
fetch('https://api.lamarge.trade/v1/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/events"
response = requests.get(url)
print(response.text){
"events": [
{
"cursor": "<string>",
"resource_id": "<string>",
"revision": "<string>",
"occurred_at": "2023-11-07T05:31:56Z",
"kind": "book.changed",
"data": {
"from": "<string>",
"to": "<string>"
}
}
],
"next_cursor": "<string>",
"has_more": true,
"oldest_cursor": "<string>",
"server_time": "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"
}
}Events
Replay public events
Events in commit order (HTTP replay); continue from next_cursor until has_more is false, even after an empty page.
GET
/
v1
/
events
Replay public events
curl --request GET \
--url https://api.lamarge.trade/v1/eventsconst options = {method: 'GET'};
fetch('https://api.lamarge.trade/v1/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/events"
response = requests.get(url)
print(response.text){
"events": [
{
"cursor": "<string>",
"resource_id": "<string>",
"revision": "<string>",
"occurred_at": "2023-11-07T05:31:56Z",
"kind": "book.changed",
"data": {
"from": "<string>",
"to": "<string>"
}
}
],
"next_cursor": "<string>",
"has_more": true,
"oldest_cursor": "<string>",
"server_time": "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"
}
}Query Parameters
Response
A page of events.
Maximum array length:
500Committed cursor order. Payloads are previews at publication, not a transition log; events can repeat, so skip applied revisions (event kinds).
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
Show child attributes
Show child attributes