Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request GET \ --url https://{host}/extern/svr/{accountTypeId}/account/{accountId}/positions \ --header 'X-API-Key: <api-key>'
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}}; fetch('https://{host}/extern/svr/{accountTypeId}/account/{accountId}/positions', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
import requests url = "https://{host}/extern/svr/{accountTypeId}/account/{accountId}/positions" headers = {"X-API-Key": "<api-key>"} response = requests.get(url, headers=headers) print(response.text)
{ "status": "<string>", "data": { "accountId": "<string>", "safeAddress": "<string>", "events": [ { "chainId": 123, "transactionHash": "<string>", "blockTime": "2023-11-07T05:31:56Z", "tokenSymbol": "<string>", "tokenDecimals": 123, "tokenAddress": "<string>", "amount": "<string>", "price": {} } ] } }
{ "status": "<string>", "message": "<string>" }
Server-to-server API key
Success
"success"
Show child attributes
Was this page helpful?