curl --request GET \
--url https://api.lamarge.trade/v1/fills \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lamarge.trade/v1/fills', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/fills"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"take_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "taker",
"order_id": "<string>",
"sequence": 123,
"quote_index": 1,
"swap_id": "<string>",
"hashlock": "<string>",
"secret": "<string>",
"from_venue": "<string>",
"to_venue": "<string>",
"amount_out": "<string>",
"amount_in": "<string>",
"taker_fee": "<string>",
"taker_fee_bps": 50,
"taker_fee_venue": "<string>",
"maker_out": "<string>",
"maker_in": "<string>",
"payer": "<string>",
"maker_owner": "<string>",
"maker_recipient": "<string>",
"taker_recipient": "<string>",
"destination": "venue",
"received": {
"token": "<string>",
"amount": "<string>",
"sender": "<string>"
},
"payment_leg": "NONE",
"payment_destination": "venue",
"maker_destination": "venue",
"maker_leg": "NONE",
"state": "PREPARED",
"reason": "<string>",
"pay_by": "2023-11-07T05:31:56Z",
"t1": "2023-11-07T05:31:56Z",
"t2": "2023-11-07T05:31:56Z",
"deliver_by": "2023-11-07T05:31:56Z",
"report_by": "2023-11-07T05:31:56Z",
"delivery_to": "<string>",
"delivery_hash": "<string>",
"delivery_fee": "<string>",
"maker_accept_by": "2023-11-07T05:31:56Z",
"maker_accepted_at": "2023-11-07T05:31:56Z",
"payment_verified_at": "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",
"transactions": [
{
"kind": "fund",
"chain_id": 123,
"hash": "<string>",
"status": "pending",
"error": "<string>",
"at": "2023-11-07T05:31:56Z"
}
],
"funding": "venue",
"signed_at": "2023-11-07T05:31:56Z",
"payment_locked_at": "2023-11-07T05:31:56Z",
"maker_claimed_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"
}
}List my fills
Nonfinal fills plus the latest 50 final, newest first: a session’s taker and maker fills, a credential’s identity’s maker fills (scope read). Over 1000: 503 SNAPSHOT_TOO_LARGE; page with /v1/fills/history.
curl --request GET \
--url https://api.lamarge.trade/v1/fills \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lamarge.trade/v1/fills', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/fills"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"take_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "taker",
"order_id": "<string>",
"sequence": 123,
"quote_index": 1,
"swap_id": "<string>",
"hashlock": "<string>",
"secret": "<string>",
"from_venue": "<string>",
"to_venue": "<string>",
"amount_out": "<string>",
"amount_in": "<string>",
"taker_fee": "<string>",
"taker_fee_bps": 50,
"taker_fee_venue": "<string>",
"maker_out": "<string>",
"maker_in": "<string>",
"payer": "<string>",
"maker_owner": "<string>",
"maker_recipient": "<string>",
"taker_recipient": "<string>",
"destination": "venue",
"received": {
"token": "<string>",
"amount": "<string>",
"sender": "<string>"
},
"payment_leg": "NONE",
"payment_destination": "venue",
"maker_destination": "venue",
"maker_leg": "NONE",
"state": "PREPARED",
"reason": "<string>",
"pay_by": "2023-11-07T05:31:56Z",
"t1": "2023-11-07T05:31:56Z",
"t2": "2023-11-07T05:31:56Z",
"deliver_by": "2023-11-07T05:31:56Z",
"report_by": "2023-11-07T05:31:56Z",
"delivery_to": "<string>",
"delivery_hash": "<string>",
"delivery_fee": "<string>",
"maker_accept_by": "2023-11-07T05:31:56Z",
"maker_accepted_at": "2023-11-07T05:31:56Z",
"payment_verified_at": "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",
"transactions": [
{
"kind": "fund",
"chain_id": 123,
"hash": "<string>",
"status": "pending",
"error": "<string>",
"at": "2023-11-07T05:31:56Z"
}
],
"funding": "venue",
"signed_at": "2023-11-07T05:31:56Z",
"payment_locked_at": "2023-11-07T05:31:56Z",
"maker_claimed_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"
}
}Authorizations
Response
The fills.
The taker fee, fixed at acceptance, in taker_fee_venue base units, carried by swap_id (fees); 0 without a fee.
^[0-9]{1,78}$Where a take delivers on to: venue, into the taker's account linked there; wallet, by plain transfer to recipient's address on to's escrow chain, in that chain's wallet token (chain.wallet in GET /v1/venues; on Polygon native USDC converted from pUSD), to any address a wallet delivery accepts.
venue, wallet The delivery on to_venue, from the order's escrow offer or, on Lighter or Aster, by the maker's transfer: CLAIMED once delivered, ABANDONED once it can no longer be. LOCKED and REFUNDED: maker locks, before deliveries.
NONE, LOCKED, CLAIMED, REFUNDED, ABANDONED PREPARED: no maker inventory is claimed. RESERVED: execution was admitted and inventory is held for payment. PAID: the payment is locked, or executed on Lighter or Aster, and the delivery pending. CLAIMING: delivered, the payment still locked. REFUNDING: the delivery abandoned, the payment still locked. PAYING and LOCKED: fills settled with maker locks, before deliveries.
PREPARED, RESERVED, PAID, PAYING, LOCKED, CLAIMING, SETTLED, EXPIRED, REFUNDING, REFUNDED, MAKER_LOSS, TAKER_LOSS Delivery on Lighter or Aster (to_venue settled venue): when the maker's transfer must execute. Paid and unreported ten minutes later, the maker leg is ABANDONED (timeline). Null on an escrow venue.