Read wallet funding
curl --request GET \
--url https://api.lamarge.trade/v1/wallets/{venue} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lamarge.trade/v1/wallets/{venue}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/wallets/{venue}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"venue": "<string>",
"chain_id": 123,
"escrow": "<string>",
"token": "<string>",
"symbol": "<string>",
"decimals": 123,
"address": "<string>",
"wallet": "<string>",
"available": "<string>",
"committed_wallet": "<string>",
"committed_available": "<string>",
"spendable_wallet": "<string>",
"spendable_available": "<string>",
"block": 123,
"observed_at": "2023-11-07T05:31:56Z",
"payment_setup": {
"address": "<string>",
"authorized": true,
"pending": true,
"hash": "<string>",
"permit": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_sign": {
"kind": "permit",
"signer": "<string>",
"typed_data": {
"types": {},
"primaryType": "<string>",
"domain": {
"name": "<string>",
"chainId": 123,
"verifyingContract": "<string>",
"version": "<string>"
},
"message": {}
}
}
}
},
"conversion": {
"token": "<string>",
"balance": "<string>",
"allowance": "<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"
}
}{
"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"
}
}Account
Read wallet funding
Fresh escrow-token balances of the payer, net of what its other takes hold (wallet funding); the master needs no link. On Polygon, also its native USDC balance and allowance toward the escrow (conversion).
GET
/
v1
/
wallets
/
{venue}
Read wallet funding
curl --request GET \
--url https://api.lamarge.trade/v1/wallets/{venue} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lamarge.trade/v1/wallets/{venue}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/wallets/{venue}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"venue": "<string>",
"chain_id": 123,
"escrow": "<string>",
"token": "<string>",
"symbol": "<string>",
"decimals": 123,
"address": "<string>",
"wallet": "<string>",
"available": "<string>",
"committed_wallet": "<string>",
"committed_available": "<string>",
"spendable_wallet": "<string>",
"spendable_available": "<string>",
"block": 123,
"observed_at": "2023-11-07T05:31:56Z",
"payment_setup": {
"address": "<string>",
"authorized": true,
"pending": true,
"hash": "<string>",
"permit": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_sign": {
"kind": "permit",
"signer": "<string>",
"typed_data": {
"types": {},
"primaryType": "<string>",
"domain": {
"name": "<string>",
"chainId": 123,
"verifyingContract": "<string>",
"version": "<string>"
},
"message": {}
}
}
}
},
"conversion": {
"token": "<string>",
"balance": "<string>",
"allowance": "<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"
}
}{
"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 balances.