Submit take signatures
curl --request POST \
--url https://api.lamarge.trade/v1/takes/{id}/signatures \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"signatures": [
{
"kind": "<string>",
"signature": "<string>",
"fill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
signatures: [
{
kind: '<string>',
signature: '<string>',
fill_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
]
})
};
fetch('https://api.lamarge.trade/v1/takes/{id}/signatures', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/takes/{id}/signatures"
payload = { "signatures": [
{
"kind": "<string>",
"signature": "<string>",
"fill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"fills": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"take_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "taker",
"order_id": "<string>",
"sequence": 123,
"swap_id": "<string>",
"hashlock": "<string>",
"from_venue": "<string>",
"to_venue": "<string>",
"amount_out": "<string>",
"amount_in": "<string>",
"payer": "<string>",
"maker_owner": "<string>",
"maker_recipient": "<string>",
"taker_recipient": "<string>",
"payment_leg": "NONE",
"maker_leg": "NONE",
"state": "RESERVED",
"reason": "<string>",
"pay_by": "2023-11-07T05:31:56Z",
"reveal_by": "2023-11-07T05:31:56Z",
"t1": "2023-11-07T05:31:56Z",
"t2": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"settled_at": "2023-11-07T05:31:56Z",
"margin_move": {
"venue": "<string>",
"amount": "<string>",
"venue_ref": "<string>",
"state": "queued",
"error": "<string>",
"at": "2023-11-07T05:31:56Z"
},
"transactions": [
{
"kind": "permit",
"chain_id": 123,
"hash": "<string>",
"status": "pending",
"error": "<string>",
"at": "2023-11-07T05:31:56Z"
}
],
"payment_destination": "venue",
"maker_destination": "venue"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}Takes and fills
Submit take signatures
Takes exactly the persisted permit and payment signatures before pay_by. A permit grants the escrow an unlimited allowance, asked only while the allowance is short; the escrow spends it only on payments and fundings the owner signs. Each payment must still be mined before its deadline. An exact retry returns the current fills.
POST
/
v1
/
takes
/
{id}
/
signatures
Submit take signatures
curl --request POST \
--url https://api.lamarge.trade/v1/takes/{id}/signatures \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"signatures": [
{
"kind": "<string>",
"signature": "<string>",
"fill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
signatures: [
{
kind: '<string>',
signature: '<string>',
fill_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
]
})
};
fetch('https://api.lamarge.trade/v1/takes/{id}/signatures', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/takes/{id}/signatures"
payload = { "signatures": [
{
"kind": "<string>",
"signature": "<string>",
"fill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"fills": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"take_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "taker",
"order_id": "<string>",
"sequence": 123,
"swap_id": "<string>",
"hashlock": "<string>",
"from_venue": "<string>",
"to_venue": "<string>",
"amount_out": "<string>",
"amount_in": "<string>",
"payer": "<string>",
"maker_owner": "<string>",
"maker_recipient": "<string>",
"taker_recipient": "<string>",
"payment_leg": "NONE",
"maker_leg": "NONE",
"state": "RESERVED",
"reason": "<string>",
"pay_by": "2023-11-07T05:31:56Z",
"reveal_by": "2023-11-07T05:31:56Z",
"t1": "2023-11-07T05:31:56Z",
"t2": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"settled_at": "2023-11-07T05:31:56Z",
"margin_move": {
"venue": "<string>",
"amount": "<string>",
"venue_ref": "<string>",
"state": "queued",
"error": "<string>",
"at": "2023-11-07T05:31:56Z"
},
"transactions": [
{
"kind": "permit",
"chain_id": 123,
"hash": "<string>",
"status": "pending",
"error": "<string>",
"at": "2023-11-07T05:31:56Z"
}
],
"payment_destination": "venue",
"maker_destination": "venue"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true
}
}Authorizations
Master session from POST /v1/auth/verify. Revocable; expires after seven days by default. Required for financial operations.
Path Parameters
Body
application/json
Exactly one per requested (kind, fill_id); extra or duplicate items are refused.
Show child attributes
Show child attributes
Response
The take's fills.
Show child attributes
Show child attributes