Close a move
curl --request POST \
--url https://api.lamarge.trade/v1/moves/{id}/close \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"unallocated": "<string>",
"unallocated_reason": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({unallocated: '<string>', unallocated_reason: '<string>'})
};
fetch('https://api.lamarge.trade/v1/moves/{id}/close', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/moves/{id}/close"
payload = {
"unallocated": "<string>",
"unallocated_reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_move_id": "<string>",
"from": {
"venue": "hyperliquid",
"chain_id": 123,
"token": "<string>"
},
"to": {
"venue": "hyperliquid",
"chain_id": 123,
"token": "<string>"
},
"amount_in": "<string>",
"min_out": "<string>",
"payer": "<string>",
"recipient": "<string>",
"max_fee_bps": 50,
"transfers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"final": true
}
],
"withdrawals": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"final": true
}
],
"direct": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"final": true
}
],
"bridges": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"move_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_bridge_id": "<string>",
"provider": "relay",
"request_id": "<string>",
"state": "prepared",
"from": {
"venue": "hyperliquid",
"chain_id": 123,
"token": "<string>"
},
"to": {
"venue": "hyperliquid",
"chain_id": 123,
"token": "<string>"
},
"amount_in": "<string>",
"min_out": "<string>",
"payer": "<string>",
"recipient": "<string>",
"order": {
"id": "<string>",
"data": {},
"deadline": 123
},
"nonce": "<string>",
"account_credit": "<string>",
"amount_out": "<string>",
"wallet_surplus": "<string>",
"refund": {
"chain_id": 123,
"token": "<string>",
"recipient": "<string>",
"amount": "<string>"
},
"origin_txs": [
"<string>"
],
"destination_txs": [
"<string>"
],
"refund_txs": [
"<string>"
],
"withdrawal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"source_dex": "<string>"
}
],
"closed_at": "2023-11-07T05:31:56Z",
"unallocated": "<string>",
"unallocated_reason": "<string>",
"state": "open",
"created_at": "2023-11-07T05:31:56Z"
}{
"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"
}
}Moves and bridges
Close a move
Declares that no part will be added, with what no part carries. Idempotent with the same body; refused while a bridge is prepared. Then the move is settling until every part is final.
POST
/
v1
/
moves
/
{id}
/
close
Close a move
curl --request POST \
--url https://api.lamarge.trade/v1/moves/{id}/close \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"unallocated": "<string>",
"unallocated_reason": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({unallocated: '<string>', unallocated_reason: '<string>'})
};
fetch('https://api.lamarge.trade/v1/moves/{id}/close', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/moves/{id}/close"
payload = {
"unallocated": "<string>",
"unallocated_reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_move_id": "<string>",
"from": {
"venue": "hyperliquid",
"chain_id": 123,
"token": "<string>"
},
"to": {
"venue": "hyperliquid",
"chain_id": 123,
"token": "<string>"
},
"amount_in": "<string>",
"min_out": "<string>",
"payer": "<string>",
"recipient": "<string>",
"max_fee_bps": 50,
"transfers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"final": true
}
],
"withdrawals": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"final": true
}
],
"direct": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"final": true
}
],
"bridges": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"move_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_bridge_id": "<string>",
"provider": "relay",
"request_id": "<string>",
"state": "prepared",
"from": {
"venue": "hyperliquid",
"chain_id": 123,
"token": "<string>"
},
"to": {
"venue": "hyperliquid",
"chain_id": 123,
"token": "<string>"
},
"amount_in": "<string>",
"min_out": "<string>",
"payer": "<string>",
"recipient": "<string>",
"order": {
"id": "<string>",
"data": {},
"deadline": 123
},
"nonce": "<string>",
"account_credit": "<string>",
"amount_out": "<string>",
"wallet_surplus": "<string>",
"refund": {
"chain_id": 123,
"token": "<string>",
"recipient": "<string>",
"amount": "<string>"
},
"origin_txs": [
"<string>"
],
"destination_txs": [
"<string>"
],
"refund_txs": [
"<string>"
],
"withdrawal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"source_dex": "<string>"
}
],
"closed_at": "2023-11-07T05:31:56Z",
"unallocated": "<string>",
"unallocated_reason": "<string>",
"state": "open",
"created_at": "2023-11-07T05:31:56Z"
}{
"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
Body
application/json
Response
The move.