Get single vault history
curl --request GET \
--url https://sandbox.api.byzantine.fi/v1/query/history/{vault_id} \
--header 'X-Pubkey: <x-pubkey>' \
--header 'X-Pubkey, X-Timestamp, X-Signature: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>'import requests
url = "https://sandbox.api.byzantine.fi/v1/query/history/{vault_id}"
headers = {
"X-Pubkey": "<x-pubkey>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Pubkey, X-Timestamp, X-Signature": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-Pubkey': '<x-pubkey>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Pubkey, X-Timestamp, X-Signature': '<api-key>'
}
};
fetch('https://sandbox.api.byzantine.fi/v1/query/history/{vault_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"vault_id": "<string>",
"data": [
{
"timestamp": "2023-11-07T05:31:56Z",
"share_price": 123,
"total_assets": 123,
"hourly_apy": 123
}
],
"total_count": 123
}{
"error": "Resource not found",
"status": 404
}Products
Get single vault history
Returns hourly aggregated share price data for a vault.
GET
/
v1
/
query
/
history
/
{vault_id}
Get single vault history
curl --request GET \
--url https://sandbox.api.byzantine.fi/v1/query/history/{vault_id} \
--header 'X-Pubkey: <x-pubkey>' \
--header 'X-Pubkey, X-Timestamp, X-Signature: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>'import requests
url = "https://sandbox.api.byzantine.fi/v1/query/history/{vault_id}"
headers = {
"X-Pubkey": "<x-pubkey>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Pubkey, X-Timestamp, X-Signature": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-Pubkey': '<x-pubkey>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Pubkey, X-Timestamp, X-Signature': '<api-key>'
}
};
fetch('https://sandbox.api.byzantine.fi/v1/query/history/{vault_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"vault_id": "<string>",
"data": [
{
"timestamp": "2023-11-07T05:31:56Z",
"share_price": 123,
"total_assets": 123,
"hourly_apy": 123
}
],
"total_count": 123
}{
"error": "Resource not found",
"status": 404
}Authorizations
Headers
Integrator's ECDSA public key (P-256 curve, compressed SEC1 format). Example: 0x038fedef7c12f93bbf342ad8943b7a825a3b41f61c9dc118b2c718efebabbf62fd
Unix timestamp in seconds (UTC). Must be within tolerance window (1 minute) to prevent replay attacks. Example: 1760375826
ECDSA signature (DER-encoded, hex with 0x prefix). Signs the message: {timestamp}{METHOD}{path_and_query}{json_body}. Example: 0x3045022100...
Path Parameters
Vault ID
Query Parameters
Start date for history
End date for history
Limit number of results (default: 1000)
Offset for pagination (default: 0)
Order by timestamp: asc or desc (default: asc)

