Plan a move
curl --request GET \
--url https://api.lamarge.trade/v1/moves/quote \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lamarge.trade/v1/moves/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/moves/quote"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"lamarge": {
"route": {
"destination": "venue",
"minimum_received": {
"token": "<string>",
"amount": "<string>"
},
"from": "<string>",
"to": "<string>",
"amount_in": "<string>",
"capped": true,
"amount_out": "<string>",
"legs": [
{
"from": "<string>",
"to": "<string>",
"amount_in": "<string>",
"amount_out": "<string>",
"parts": 4,
"taker_fee": "<string>",
"taker_fee_bps": 50
}
],
"funding": "venue"
},
"budget": "<string>"
},
"lamarge_unavailable": "no_route",
"bridge": {
"provider": "relay",
"amount_in": "<string>",
"amount_out": "<string>",
"minimum_out": "<string>",
"account_credit": "<string>",
"wallet_surplus": "<string>",
"eta_seconds": 123
},
"bridge_unavailable": "insufficient_liquidity",
"unallocated": "<string>",
"unallocated_reason": "<string>"
}{
"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"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}Moves and bridges
Plan a move
What LaMarge’s makers fill now and what an external bridge would carry of the rest, at the floor rate min_out / amount_in (moves). A plan, not a reservation: each part is quoted again before signing. A refusal only LaMarge’s part meets (no route, no liquidity, an Aster account without a deposit…) is lamarge_unavailable; the bridge’s, bridge_unavailable.
GET
/
v1
/
moves
/
quote
Plan a move
curl --request GET \
--url https://api.lamarge.trade/v1/moves/quote \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lamarge.trade/v1/moves/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/moves/quote"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"lamarge": {
"route": {
"destination": "venue",
"minimum_received": {
"token": "<string>",
"amount": "<string>"
},
"from": "<string>",
"to": "<string>",
"amount_in": "<string>",
"capped": true,
"amount_out": "<string>",
"legs": [
{
"from": "<string>",
"to": "<string>",
"amount_in": "<string>",
"amount_out": "<string>",
"parts": 4,
"taker_fee": "<string>",
"taker_fee_bps": 50
}
],
"funding": "venue"
},
"budget": "<string>"
},
"lamarge_unavailable": "no_route",
"bridge": {
"provider": "relay",
"amount_in": "<string>",
"amount_out": "<string>",
"minimum_out": "<string>",
"account_credit": "<string>",
"wallet_surplus": "<string>",
"eta_seconds": 123
},
"bridge_unavailable": "insufficient_liquidity",
"unallocated": "<string>",
"unallocated_reason": "<string>"
}{
"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"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}Authorizations
Query Parameters
Response
The plan.
Why no bridge carries the rest; slippage when its guaranteed output is below the part's floor; disabled when the deployment has no bridge provider.
Available options:
insufficient_liquidity, below_minimum, unsupported, hyperliquid_mode, provider_unavailable, slippage, disabled, null