GET
/v3-node-0/smartaccount/{address}/positionsGet current account positions
Returns all open positions for a specific smart account across all markets
Base URL
https://api.storm.tgExamples
curl --request GET 'https://api.storm.tg/v3-node-0/smartaccount/{address}/positions' \
--header 'Accept: application/json'const response = await fetch("https://api.storm.tg/v3-node-0/smartaccount/{address}/positions", {
method: "GET",
headers: {
"Accept": "application/json"
},
});
console.log(response.status, await response.text());import requests
response = requests.request(
"GET",
"https://api.storm.tg/v3-node-0/smartaccount/{address}/positions",
headers={"Accept":"application/json"},
timeout=30,
)
print(response.status_code, response.text)Responses
200OKapplication/json
Array of Trading.api.PositionResponse
directionstringoptionalExample:
stringmarketstringoptionalExample:
stringstateobjectoptionalTrading.api.PositionStateResponse · 3 fields
bundle_idstringoptionalExample:
stringstatusstringoptionalExample:
stringvalueobjectoptionalTrading.schemas.PositionState · 9 fields
directionintegeroptionalExample:
0discountintegeroptionalExample:
0feeintegeroptionalExample:
0last_updated_cumulative_premiumintegeroptionalExample:
0last_updated_timestampintegeroptionalExample:
0marginobjectoptionalExample:
{}open_notionalobjectoptionalExample:
{}rebateintegeroptionalExample:
0sizeobjectoptionalExample:
{}View example
{
"direction": 0,
"discount": 0,
"fee": 0,
"last_updated_cumulative_premium": 0,
"last_updated_timestamp": 0,
"margin": {},
"open_notional": {},
"rebate": 0,
"size": {}
}View example
{
"bundle_id": "string",
"status": "string",
"value": {
"direction": 0,
"discount": 0,
"fee": 0,
"last_updated_cumulative_premium": 0,
"last_updated_timestamp": 0,
"margin": {},
"open_notional": {},
"rebate": 0,
"size": {}
}
}[
{
"direction": "string",
"market": "string",
"state": {
"bundle_id": "string",
"status": "string",
"value": {
"direction": 0,
"discount": 0,
"fee": 0,
"last_updated_cumulative_premium": 0,
"last_updated_timestamp": 0,
"margin": {},
"open_notional": {},
"rebate": 0,
"size": {}
}
}
}
]400Bad Requestapplication/json
codestringoptionalExample:
stringerrorstringoptionalExample:
stringexternalQueryIdstringoptionalExample:
stringmsgstringoptionalExample:
string{
"code": "string",
"error": "string",
"externalQueryId": "string",
"msg": "string"
}500Internal Server Errorapplication/json
codestringoptionalExample:
stringerrorstringoptionalExample:
stringexternalQueryIdstringoptionalExample:
stringmsgstringoptionalExample:
string{
"code": "string",
"error": "string",
"externalQueryId": "string",
"msg": "string"
}