Follow market moves
curl --request GET \
--url https://api.leneutre.trade/v1/markets/eventsconst options = {method: 'GET'};
fetch('https://api.leneutre.trade/v1/markets/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.leneutre.trade/v1/markets/events"
response = requests.get(url)
print(response.text){
"venues": [
"<string>"
],
"markets": [
"<string>"
]
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "Too many requests: wait, then try again."
}Markets and accounts
Follow market moves
Server-sent events: which venues’ and markets’ carry or price moved, as the collector writes them. The API reads every market’s figures once a second and sends at most one carry event per read. Without markets, every move comes, by venue; with markets, only the moves of those markets. A comment line every 15 seconds keeps the stream open. Listen with an EventSource, and read the opportunities again when an event comes.
GET
/
v1
/
markets
/
events
Follow market moves
curl --request GET \
--url https://api.leneutre.trade/v1/markets/eventsconst options = {method: 'GET'};
fetch('https://api.leneutre.trade/v1/markets/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.leneutre.trade/v1/markets/events"
response = requests.get(url)
print(response.text){
"venues": [
"<string>"
],
"markets": [
"<string>"
]
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "Too many requests: wait, then try again."
}Query Parameters
Up to 20 markets to follow, as venue:market, comma-separated.
Example:
"hyperliquid:BTC,aster:BTCUSDT"