Get venue prices
curl --request GET \
--url https://api.lamarge.trade/v1/marketsconst options = {method: 'GET'};
fetch('https://api.lamarge.trade/v1/markets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/markets"
response = requests.get(url)
print(response.text){
"as_of": "2023-11-07T05:31:56Z",
"venues": [
{
"venue": "<string>",
"symbol": "<string>",
"decimals": 123,
"best_buy": "<string>",
"best_sell": "<string>",
"liquidity": "<string>",
"volume_24h": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}Market data
Get venue prices
Per enabled venue, among the quote identities whose quotes the books show: best_buy, the highest price a maker pays to receive the venue’s token there, and best_sell, the lowest it asks to deliver it there, in USDC (quote lines); its liquidity and volume_24h. An answer is reused for two seconds.
GET
/
v1
/
markets
Get venue prices
curl --request GET \
--url https://api.lamarge.trade/v1/marketsconst options = {method: 'GET'};
fetch('https://api.lamarge.trade/v1/markets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/markets"
response = requests.get(url)
print(response.text){
"as_of": "2023-11-07T05:31:56Z",
"venues": [
{
"venue": "<string>",
"symbol": "<string>",
"decimals": 123,
"best_buy": "<string>",
"best_sell": "<string>",
"liquidity": "<string>",
"volume_24h": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}