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>"
}
],
"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>",
"receive_venue": "<string>",
"escrow_available": "<string>",
"sequence": 123,
"cancel_epoch": "<string>",
"client_order_id": "<string>",
"quote_identity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": "<string>",
"amount": "<string>"
}
],
"fills": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"take_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_id": "<string>",
"sequence": 123,
"state": "RESERVED",
"payment_leg": "NONE",
"maker_leg": "NONE",
"amount_in": "<string>",
"amount_out": "<string>",
"from": "<string>",
"to": "<string>",
"pay_by": "2023-11-07T05:31:56Z",
"t1": "2023-11-07T05:31:56Z",
"t2": "2023-11-07T05:31:56Z",
"reason": "<string>",
"role": "taker",
"revision": "<string>"
}
],
"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
}
}{
"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
}
}Events
Read private and public snapshot
The caller’s nonterminal orders and fills and nonrevoked quote identities, with a replay cursor. books is empty: read public books separately. At most 1000 rows per collection, else 503. 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>"
}
],
"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>",
"receive_venue": "<string>",
"escrow_available": "<string>",
"sequence": 123,
"cancel_epoch": "<string>",
"client_order_id": "<string>",
"quote_identity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": "<string>",
"amount": "<string>"
}
],
"fills": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"take_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_id": "<string>",
"sequence": 123,
"state": "RESERVED",
"payment_leg": "NONE",
"maker_leg": "NONE",
"amount_in": "<string>",
"amount_out": "<string>",
"from": "<string>",
"to": "<string>",
"pay_by": "2023-11-07T05:31:56Z",
"t1": "2023-11-07T05:31:56Z",
"t2": "2023-11-07T05:31:56Z",
"reason": "<string>",
"role": "taker",
"revision": "<string>"
}
],
"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
}
}{
"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
sessionmakerCredential
Master session from POST /v1/auth/verify. Revocable; expires after seven days by default. Required for financial operations.
Response
OK.
Unsigned 64-bit integer as a decimal string. Event cursors are positions, not contiguous per subscriber.
Pattern:
^[0-9]+$Maximum array length:
1000Show child attributes
Show child attributes
RFC 3339 UTC; snapshots and history may keep fractional seconds.
Maximum array length:
1000Show child attributes
Show child attributes
Maximum array length:
1000Show child attributes
Show child attributes
Maximum array length:
1000Show child attributes
Show child attributes