WebSocket event replay
curl --request GET \
--url https://api.lamarge.trade/v1/streamconst options = {method: 'GET'};
fetch('https://api.lamarge.trade/v1/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/stream"
response = requests.get(url)
print(response.text){
"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
WebSocket event replay
Live events: the first text frame is a StreamSubscription, never token in the URL; frames are EventPages of up to 100 events, or a StreamControl before closure (WebSocket). Private streams need a session or read credential, rechecked about every 500 ms.
GET
/
v1
/
stream
WebSocket event replay
curl --request GET \
--url https://api.lamarge.trade/v1/streamconst options = {method: 'GET'};
fetch('https://api.lamarge.trade/v1/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/stream"
response = requests.get(url)
print(response.text){
"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"
}
}Response
Upgraded to WebSocket.