QueryPositionsResponse is the response type for the Query/Positions RPC method.
GET /injective/exchange/v1beta1/positions HTTP/1.1 Host: inj.nownodes.io Accept: */*
A successful response.
{ "state": [ { "subaccount_id": "text", "market_id": "text", "position": { "isLong": true, "quantity": "text", "entry_price": "text", "margin": "text", "cumulative_funding_entry": "text" } } ] }
QuerySubaccountPositionsResponse is the response type for the Query/SubaccountPositions RPC method.
GET /injective/exchange/v1beta1/positions/{subaccount_id} HTTP/1.1 Host: inj.nownodes.io Accept: */*
QuerySubaccountPositionInMarketResponse is the response type for the Query/SubaccountPositionInMarket RPC method.
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" } }