curl --request GET \
--url https://api.vane.xyz/api/v1/tokens/swap-limits \
--header 'x-tenant-api-key: <api-key>'const options = {method: 'GET', headers: {'x-tenant-api-key': '<api-key>'}};
fetch('https://api.vane.xyz/api/v1/tokens/swap-limits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vane.xyz/api/v1/tokens/swap-limits"
headers = {"x-tenant-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"depositToken": "BTC",
"depositTokenMin": 0.00011765,
"depositTokenMax": 0.14166439,
"settleToken": "USDT",
"settleTokenMin": 6.24364607,
"settleTokenMax": 9000
}Get swap limits
Returns the minimum and maximum amounts for a deposit/settle token pair, expressed on both sides of the swap. Limits are direction sensitive: the response is keyed to which token is the deposit and which is the settle side, so swap the two ids to get the reverse direction.
Check limits before quoting and again before depositing. Quotes do not enforce them, and order creation does not validate intendedAmount against them; only the actual deposit is bound by the order’s minimalAmount and maximalAmount. Always check the minimum and maximum amount returned from the order creation endpoint before making a deposit.
Send a tenant API key in x-tenant-api-key (a JWT access token also works).
curl --request GET \
--url https://api.vane.xyz/api/v1/tokens/swap-limits \
--header 'x-tenant-api-key: <api-key>'const options = {method: 'GET', headers: {'x-tenant-api-key': '<api-key>'}};
fetch('https://api.vane.xyz/api/v1/tokens/swap-limits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vane.xyz/api/v1/tokens/swap-limits"
headers = {"x-tenant-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"depositToken": "BTC",
"depositTokenMin": 0.00011765,
"depositTokenMax": 0.14166439,
"settleToken": "USDT",
"settleTokenMin": 6.24364607,
"settleTokenMax": 9000
}Authorizations
Vane's shared tenant key. Contact support for a dedicated key if you need custom parameters or separate order tracking.
Query Parameters
Numeric id of the token being deposited. Ids are chain-specific: BTC is 158 on Bitcoin, 159 on Ethereum (ERC20), and 157 on BNB Smart Chain. Look ids up with GET /v1/tokens.
Numeric id of the token to receive. Pick the id on the chain you want to receive on; the catalog at GET /v1/tokens lists them all.
Response
Swap limits for the pair, on both sides of the swap.
Swap limits for a pair, expressed on both sides. They are direction sensitive: fields are keyed to which token is the deposit and which is the settle side.
Symbol of the deposit token, for example BTC.
Minimum deposit amount, in deposit-token units.
Maximum deposit amount, in deposit-token units.
Symbol of the settle token, for example USDT.
Minimum settle amount, in settle-token units.
Maximum settle amount, in settle-token units.

