Transactions
Partners can fetch the history of transactions associated with their API key.
Query results may be truncated. Queries are limited to 100 results. Please see Pagination at the bottom of page.
get
https://partners.liquid.com
/api/v1/partner/{public_api_key}/transactions
Fetch Transactions

Swagger

X-Quoine-Auth

Encoded payload must contain:
1
{
2
"token_id": "{created in Liquid web app, link above}",
3
"path": "/realtime",
4
"delegate_path": "/api/v1/partner/{public_api_key}/transactions",
5
"nonce": {current unix timestamp}
6
}
Copied!

Example (Javascript)

1
const jwt = require("jwt-simple");
2
const axios = require("axios");
3
4
const tokenId = "";
5
const tokenSecret = "";
6
const publicApiKey = "pk_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
7
8
const path = `/api/v1/partner/${publicApiKey}/transactions`;
9
const apiBase = "https://partners.liquid.com";
10
11
const xQuoineAuth = jwt.encode(
12
{
13
token_id: tokenId,
14
path: "/realtime",
15
delegate_path: path,
16
nonce: Date.now(),
17
},
18
tokenSecret
19
);
20
21
axios
22
.get(apiBase + path + "?min_ts=1623165462000&status=FILLED", {
23
headers: {
24
"X-Quoine-Auth": xQuoineAuth,
25
},
26
})
27
.then((response) => {
28
console.log(response.data);
29
})
30
.catch((err) => console.log(err));
Copied!

Pagination

The selection object returned in the query contains information about:
  • How many transactions exist for the given partner (total_*)
  • How many transactions are responsive to the given query (range_*)
  • How many transactions were actually returned in the payload (payload_*)
1
"selection": {
2
"payload_min_ts": 1621417624122,
3
"payload_max_ts": 1623231033118,
4
"payload_count": 46,
5
"range_min_ts": 1620639114127,
6
"range_max_ts": 1623231114127,
7
"range_count": 46,
8
"total_max_ts": 1623231033118,
9
"total_min_ts": 1618978440482,
10
"total_count": 57
11
}
Copied!
If the payload_count is less than the range_count then results are being hidden. A new query should be made again form min_ts={payload_max_ts + 1}.
Last modified 5mo ago