A successful response.
const response = await fetch('https://inj.nownodes.io/injective/exchange/v1beta1/positions', { method: 'GET', headers: {}, }); const data = await response.json();
{ "state": [ { "subaccount_id": "text", "market_id": "text", "position": { "isLong": false, "quantity": "text", "entry_price": "text", "margin": "text", "cumulative_funding_entry": "text" } } ] }
const response = await fetch('https://inj.nownodes.io/injective/exchange/v1beta1/positions/{subaccount_id}/{market_id}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "state": { "isLong": false, "quantity": "text", "entry_price": "text", "margin": "text", "cumulative_funding_entry": "text" } }
const response = await fetch('https://inj.nownodes.io/injective/exchange/v1beta1/positions/{subaccount_id}', { method: 'GET', headers: {}, }); const data = await response.json();