List my recoverable transfers
curl --request GET \
--url https://api.lamarge.trade/v1/transfers \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lamarge.trade/v1/transfers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/transfers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"destination": "venue",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_transfer_id": "<string>",
"client_take_id": "<string>",
"from": "<string>",
"to": "<string>",
"amount_in": "<string>",
"min_out": "<string>",
"max_parts": 4,
"payer": "<string>",
"recipient": "<string>",
"from_chain_id": 123,
"to_chain_id": 123,
"withdrawal_preparation": {
"amount": "<string>",
"typed_data": {
"types": {},
"primaryType": "<string>",
"domain": {
"name": "<string>",
"chainId": 123,
"verifyingContract": "<string>",
"version": "<string>"
},
"message": {}
},
"created_at": "2023-11-07T05:31:56Z"
},
"withdrawal": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"venue": "<string>",
"from_dex": "xyz",
"kind": "withdrawal",
"amount": "<string>",
"destination": "<string>",
"state": "queued",
"venue_ref": "<string>",
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"relayed_at": "2023-11-07T05:31:56Z",
"move_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"funding_plan": {
"observed_at": "2023-11-07T05:31:56Z",
"venue": "<string>",
"owner": "<string>",
"amount": "<string>",
"deposit": "<string>",
"withdrawal_amount": "<string>",
"withdrawal_to": "signer",
"payment_setup": "done",
"signed_at_once": true,
"requests": [
{
"kind": "permit",
"signer": "<string>",
"chain_id": 123
}
]
},
"funding_plan_error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"venue": "<string>",
"step": "permit",
"retry_after": 2
},
"take_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"take_final": true,
"previous_transfer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"continuable": "<string>",
"cancelled_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"grouped": {
"state": "prepared",
"second_transfer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"first_take_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"second_take_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"commit_by": "2023-11-07T05:31:56Z"
},
"move_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversion": {
"amount_in": "<string>",
"min_out": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chain_id": 123,
"escrow": "<string>",
"payer": "<string>",
"converter": "<string>",
"token": "<string>",
"nonce": "<string>",
"deadline": "<string>",
"prepared_block": 123,
"state": "prepared",
"attempts": [
"<string>"
],
"tx_hash": "<string>",
"received": "<string>",
"block_number": 123
},
"funding": "venue",
"max_fee_bps": 50,
"from_dex": "xyz",
"then": {
"to": "<string>",
"recipient": "<string>",
"amount_in": "<string>",
"min_out": "<string>",
"destination": "venue",
"max_fee_bps": 50,
"chain_id": 123
}
}
],
"next_cursor": "<string>",
"has_more": true
}{
"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"
}
}Transfers
List my recoverable transfers
Newest first, cancelled and completed included; follow next_cursor until null. Status lives in the linked withdrawal and take.
GET
/
v1
/
transfers
List my recoverable transfers
curl --request GET \
--url https://api.lamarge.trade/v1/transfers \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lamarge.trade/v1/transfers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/transfers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"destination": "venue",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_transfer_id": "<string>",
"client_take_id": "<string>",
"from": "<string>",
"to": "<string>",
"amount_in": "<string>",
"min_out": "<string>",
"max_parts": 4,
"payer": "<string>",
"recipient": "<string>",
"from_chain_id": 123,
"to_chain_id": 123,
"withdrawal_preparation": {
"amount": "<string>",
"typed_data": {
"types": {},
"primaryType": "<string>",
"domain": {
"name": "<string>",
"chainId": 123,
"verifyingContract": "<string>",
"version": "<string>"
},
"message": {}
},
"created_at": "2023-11-07T05:31:56Z"
},
"withdrawal": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"venue": "<string>",
"from_dex": "xyz",
"kind": "withdrawal",
"amount": "<string>",
"destination": "<string>",
"state": "queued",
"venue_ref": "<string>",
"error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"relayed_at": "2023-11-07T05:31:56Z",
"move_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"funding_plan": {
"observed_at": "2023-11-07T05:31:56Z",
"venue": "<string>",
"owner": "<string>",
"amount": "<string>",
"deposit": "<string>",
"withdrawal_amount": "<string>",
"withdrawal_to": "signer",
"payment_setup": "done",
"signed_at_once": true,
"requests": [
{
"kind": "permit",
"signer": "<string>",
"chain_id": 123
}
]
},
"funding_plan_error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"reason": "<string>",
"venue": "<string>",
"step": "permit",
"retry_after": 2
},
"take_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"take_final": true,
"previous_transfer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"continuable": "<string>",
"cancelled_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"grouped": {
"state": "prepared",
"second_transfer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"first_take_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"second_take_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"commit_by": "2023-11-07T05:31:56Z"
},
"move_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversion": {
"amount_in": "<string>",
"min_out": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chain_id": 123,
"escrow": "<string>",
"payer": "<string>",
"converter": "<string>",
"token": "<string>",
"nonce": "<string>",
"deadline": "<string>",
"prepared_block": 123,
"state": "prepared",
"attempts": [
"<string>"
],
"tx_hash": "<string>",
"received": "<string>",
"block_number": 123
},
"funding": "venue",
"max_fee_bps": 50,
"from_dex": "xyz",
"then": {
"to": "<string>",
"recipient": "<string>",
"amount_in": "<string>",
"min_out": "<string>",
"destination": "venue",
"max_fee_bps": 50,
"chain_id": 123
}
}
],
"next_cursor": "<string>",
"has_more": true
}{
"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"
}
}