Read private and public snapshot
curl --request GET \
--url https://api.lamarge.trade/v1/me/snapshot \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lamarge.trade/v1/me/snapshot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/me/snapshot"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"cursor": "<string>",
"books": [
{
"order_id": "<string>",
"sequence": 123,
"revision": "<string>",
"to": "<string>",
"quotes": [
{
"venue": "<string>",
"chain_id": 123,
"token": "<string>",
"recipient": "<string>",
"supply": "<string>",
"receive": "<string>",
"min_fill": "<string>",
"quote_index": 1,
"available": "<string>"
}
],
"available": "<string>",
"valid_until": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z"
}
],
"server_time": "2023-11-07T05:31:56Z",
"orders": [
{
"id": "<string>",
"state": "preparing",
"venue": "<string>",
"held": "<string>",
"held_in": "escrow",
"sequence": 123,
"cancel_epoch": "<string>",
"client_order_id": "<string>",
"quote_identity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": "<string>",
"amount": "<string>"
}
],
"fills": [
{
"destination": "venue",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"take_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_id": "<string>",
"sequence": 123,
"quote_index": 1,
"state": "PREPARED",
"payment_leg": "NONE",
"maker_leg": "NONE",
"payment_destination": "venue",
"maker_destination": "venue",
"amount_in": "<string>",
"amount_out": "<string>",
"taker_fee": "<string>",
"taker_fee_bps": 50,
"taker_fee_venue": "<string>",
"maker_in": "<string>",
"maker_out": "<string>",
"from_venue": "<string>",
"to_venue": "<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",
"reason": "<string>",
"role": "taker",
"revision": "<string>",
"funding": "venue"
}
],
"quote_identities": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"generation": "<string>",
"lease_expires_at": "2023-11-07T05:31:56Z",
"revoked_at": "2023-11-07T05:31:56Z",
"credential_expires_at": "2023-11-07T05:31:56Z",
"revision": "<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"
}
}Events
Read private and public snapshot
Your nonterminal orders and fills and unrevoked quote identities, with a replay cursor; books stays empty. Credential scope: read.
GET
/
v1
/
me
/
snapshot
Read private and public snapshot
curl --request GET \
--url https://api.lamarge.trade/v1/me/snapshot \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lamarge.trade/v1/me/snapshot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/me/snapshot"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"cursor": "<string>",
"books": [
{
"order_id": "<string>",
"sequence": 123,
"revision": "<string>",
"to": "<string>",
"quotes": [
{
"venue": "<string>",
"chain_id": 123,
"token": "<string>",
"recipient": "<string>",
"supply": "<string>",
"receive": "<string>",
"min_fill": "<string>",
"quote_index": 1,
"available": "<string>"
}
],
"available": "<string>",
"valid_until": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z"
}
],
"server_time": "2023-11-07T05:31:56Z",
"orders": [
{
"id": "<string>",
"state": "preparing",
"venue": "<string>",
"held": "<string>",
"held_in": "escrow",
"sequence": 123,
"cancel_epoch": "<string>",
"client_order_id": "<string>",
"quote_identity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": "<string>",
"amount": "<string>"
}
],
"fills": [
{
"destination": "venue",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"take_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_id": "<string>",
"sequence": 123,
"quote_index": 1,
"state": "PREPARED",
"payment_leg": "NONE",
"maker_leg": "NONE",
"payment_destination": "venue",
"maker_destination": "venue",
"amount_in": "<string>",
"amount_out": "<string>",
"taker_fee": "<string>",
"taker_fee_bps": 50,
"taker_fee_venue": "<string>",
"maker_in": "<string>",
"maker_out": "<string>",
"from_venue": "<string>",
"to_venue": "<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",
"reason": "<string>",
"role": "taker",
"revision": "<string>",
"funding": "venue"
}
],
"quote_identities": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"generation": "<string>",
"lease_expires_at": "2023-11-07T05:31:56Z",
"revoked_at": "2023-11-07T05:31:56Z",
"credential_expires_at": "2023-11-07T05:31:56Z",
"revision": "<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"
}
}Authorizations
sessionmakerCredential
Response
The snapshot.