Get recent trades
curl --request GET \
--url https://api.lamarge.trade/v1/tradesconst options = {method: 'GET'};
fetch('https://api.lamarge.trade/v1/trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/trades"
response = requests.get(url)
print(response.text){
"a": "<string>",
"b": "<string>",
"trades": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from": "<string>",
"amount_in": "<string>",
"amount_out": "<string>",
"at": "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
}
}Market data
Get recent trades
The last 50 fills settled between two venues, either way, the latest first.
GET
/
v1
/
trades
Get recent trades
curl --request GET \
--url https://api.lamarge.trade/v1/tradesconst options = {method: 'GET'};
fetch('https://api.lamarge.trade/v1/trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/trades"
response = requests.get(url)
print(response.text){
"a": "<string>",
"b": "<string>",
"trades": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from": "<string>",
"amount_in": "<string>",
"amount_out": "<string>",
"at": "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
}
}Page every pair, or one, with
GET /v1/trades/history; public trade events report new ones. Each trade’s proof holds both signed agreements.Query Parameters
One venue of the pair.
A venue id from GET /v1/venues.
The other venue of the pair.
A venue id from GET /v1/venues.