curl --request GET \
--url https://api.anchorage-staging.com/v2/atlas/requests \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v2/atlas/requests"
headers = {"Api-Access-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Access-Key': '<api-key>'}};
fetch('https://api.anchorage-staging.com/v2/atlas/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"agreementId": "<string>",
"approvalRequired": true,
"createdAt": "2023-11-07T05:31:56Z",
"initiatedBy": "pledgor",
"pledgorParticipantId": "<string>",
"requestId": "<string>",
"securedPartyParticipantId": "<string>",
"status": "proposed",
"type": "createOESAgreement",
"updatedAt": "2023-11-07T05:31:56Z",
"delegationChange": {
"delegationId": "<string>",
"items": [
{
"amount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"currentAmount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"resultingAmount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"walletId": "<string>"
}
],
"vaultId": "<string>"
},
"expiresAt": "2023-11-07T05:31:56Z",
"oesAgreement": {
"exchangeAccountId": "<string>",
"exchangeProfileId": "<string>"
}
}
],
"page": {
"next": "<next page url>"
}
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}List requests
Permissions required: Read vault activity
List the requests raised on the control agreements your Atlas participants are a party to, at every status, newest first, whether you or your counterparty initiated them. Your counterparty’s requests appear once their quorum has endorsed them.
A request that becomes pending your decision is also pushed to your organization’s webhook endpoints as the atlas-request.approval-requested event, with the same fields as this resource. Only createOESAgreement requests are pushed for now.
curl --request GET \
--url https://api.anchorage-staging.com/v2/atlas/requests \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v2/atlas/requests"
headers = {"Api-Access-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Access-Key': '<api-key>'}};
fetch('https://api.anchorage-staging.com/v2/atlas/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"agreementId": "<string>",
"approvalRequired": true,
"createdAt": "2023-11-07T05:31:56Z",
"initiatedBy": "pledgor",
"pledgorParticipantId": "<string>",
"requestId": "<string>",
"securedPartyParticipantId": "<string>",
"status": "proposed",
"type": "createOESAgreement",
"updatedAt": "2023-11-07T05:31:56Z",
"delegationChange": {
"delegationId": "<string>",
"items": [
{
"amount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"currentAmount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"resultingAmount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"walletId": "<string>"
}
],
"vaultId": "<string>"
},
"expiresAt": "2023-11-07T05:31:56Z",
"oesAgreement": {
"exchangeAccountId": "<string>",
"exchangeProfileId": "<string>"
}
}
],
"page": {
"next": "<next page url>"
}
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}Query Parameters
Filter to requests of this type The kind of change a request represents. More types will be added; ignore requests of a type you do not recognize.
createOESAgreement- The creation of a new Off-Exchange Settlement control agreement between the pledgor (the trader) and the secured party (the exchange).increaseDelegation- A pledge: more collateral placed under the agreement's delegation.decreaseDelegation- An unpledge: collateral released from the agreement's delegation.
Either party may propose a pledge or unpledge, and the proposer's quorum endorses it first. When the pledgor proposes it, the secured party then approves it. When the secured party proposes it, the pledgor then chooses the wallets it applies to and approves it; until then its items carry no walletId.
createOESAgreement, increaseDelegation, decreaseDelegation Filter to requests in this status
proposed- Recorded and awaiting its first approval.pending- At least one approval is in and at least one more is still required.approved- Every required approval is in, and the change is being carried out. An increase still fails if its funds are not locked byexpiresAt.completed- The change is in effect.rejected- A required approver declined, or the initiator cancelled the request. Nothing changed.failed- The request could not be carried out, including when it was not decided in time. Nothing changed.expired- A required approver did not decide in time. Not produced yet: such a request currently reads asfailed. Nothing changed.
proposed, pending, approved, completed, rejected, failed, expired Was this page helpful?