Positions

Retrieves the entire exchange module's positions

get
Responses
200
A successful 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"
      }
    }
  ]
}

Retrieves subaccount's positions

get
Path parameters
subaccount_idstringRequired
Responses
200
A successful 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"
      }
    }
  ]
}

Retrieves subaccount's position in market

get
Path parameters
subaccount_idstringRequired
market_idstringRequired
Responses
200
A successful 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"
  }
}