List venues
curl --request GET \
--url https://api.lamarge.trade/v1/venuesconst options = {method: 'GET'};
fetch('https://api.lamarge.trade/v1/venues', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/venues"
response = requests.get(url)
print(response.text)[
{
"id": "<string>",
"name": "<string>",
"enabled": true,
"chain": {
"id": 123,
"escrow": "<string>",
"token": "<string>",
"symbol": "<string>",
"decimals": 123,
"permit": {
"name": "<string>",
"version": "<string>"
}
},
"margin_move": {
"primary_type": "<string>",
"types": {},
"domain": {},
"fixed": {},
"amount": "base_units",
"destinations": [
"wallet"
]
},
"release_minimum": "<string>"
}
]{
"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
List venues
Every venue with its escrow chain, token, permit domain, margin-transfer format and deposit minimum. A disabled venue has null chain, margin_move and release_minimum. Check these against independently pinned deployment values before signing.
GET
/
v1
/
venues
List venues
curl --request GET \
--url https://api.lamarge.trade/v1/venuesconst options = {method: 'GET'};
fetch('https://api.lamarge.trade/v1/venues', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/venues"
response = requests.get(url)
print(response.text)[
{
"id": "<string>",
"name": "<string>",
"enabled": true,
"chain": {
"id": 123,
"escrow": "<string>",
"token": "<string>",
"symbol": "<string>",
"decimals": 123,
"permit": {
"name": "<string>",
"version": "<string>"
}
},
"margin_move": {
"primary_type": "<string>",
"types": {},
"domain": {},
"fixed": {},
"amount": "base_units",
"destinations": [
"wallet"
]
},
"release_minimum": "<string>"
}
]{
"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
Every venue, enabled or not.
A venue id from GET /v1/venues.
Null for a disabled venue.
Show child attributes
Show child attributes
The venue's margin-transfer format; null for a disabled venue.
Show child attributes
Show child attributes
Smallest deposit the venue's deposit contract accepts, in base units; a smaller release stays in escrow. Null when the venue has none.