Positions
Responses
200
A successful response.
application/json
default
An unexpected error response.
application/json
get
GET /injective/exchange/v1beta1/positions HTTP/1.1
Host: inj.nownodes.io
Accept: */*
{
"state": [
{
"subaccount_id": "text",
"market_id": "text",
"position": {
"isLong": true,
"quantity": "text",
"entry_price": "text",
"margin": "text",
"cumulative_funding_entry": "text"
}
}
]
}
Path parameters
subaccount_idstringRequired
Responses
200
A successful response.
application/json
default
An unexpected error response.
application/json
get
GET /injective/exchange/v1beta1/positions/{subaccount_id} HTTP/1.1
Host: inj.nownodes.io
Accept: */*
{
"state": [
{
"subaccount_id": "text",
"market_id": "text",
"position": {
"isLong": true,
"quantity": "text",
"entry_price": "text",
"margin": "text",
"cumulative_funding_entry": "text"
}
}
]
}
Path parameters
subaccount_idstringRequired
market_idstringRequired
Responses
200
A successful response.
application/json
default
An unexpected error response.
application/json
get
GET /injective/exchange/v1beta1/positions/{subaccount_id}/{market_id} HTTP/1.1
Host: inj.nownodes.io
Accept: */*
{
"state": {
"isLong": true,
"quantity": "text",
"entry_price": "text",
"margin": "text",
"cumulative_funding_entry": "text"
}
}