Lists all trading strategies
OK response.
Paging defines the structure for required params for handling pagination
The trading strategies
const response = await fetch('https://inj-indexer.nownodes.io/api/trading/v1/strategies', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"paging": {
"countBySubaccount": 3144167030999342600,
"from": 1916499695,
"next": [
"Ea rerum.",
"Aut dolorem cum voluptas quae.",
"Voluptas repellendus qui ipsam est."
],
"to": 391437627,
"total": 7364854934794692000
},
"strategies": [
{
"StopReason": "user",
"accountAddress": "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r",
"baseDeposit": "7696000000000000000",
"baseQuantity": "10378000000000000000",
"contractAddress": "inj1djlhetddzrztjn4v0s4vt0dca3y8hwshkh37zg",
"contract_name": "Maxime animi laboriosam optio praesentium vel aperiam.",
"contract_version": "Quae dignissimos.",
"createdAt": 1544614248000,
"createdHeight": 395000000,
"executionPrice": "7550000",
"exitType": "default",
"lowerBound": "0.00069",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"marketMidPrice": "0.0000000000076155",
"numberOfGridLevels": "50",
"pendingExecution": true,
"quoteDeposit": "38019088",
"quoteQuantity": "20332000",
"removedHeight": 40000000,
"shouldExitWithQuoteOnly": true,
"state": "active",
"stopLoss": "0.00069",
"stopLossConfig": {
"exitPrice": "40",
"exitType": "default"
},
"strategy_type": "Incidunt omnis autem sint tempore.",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"subscriptionBaseQuantity": "100",
"subscriptionQuoteQuantity": "100000000",
"swapFee": "94024680000000000000000",
"takeProfit": "0.00099",
"takeProfitConfig": {
"exitPrice": "40",
"exitType": "default"
},
"updatedAt": 1544614248000,
"upperBound": "0.00099"
},
{
"StopReason": "user",
"accountAddress": "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r",
"baseDeposit": "7696000000000000000",
"baseQuantity": "10378000000000000000",
"contractAddress": "inj1djlhetddzrztjn4v0s4vt0dca3y8hwshkh37zg",
"contract_name": "Maxime animi laboriosam optio praesentium vel aperiam.",
"contract_version": "Quae dignissimos.",
"createdAt": 1544614248000,
"createdHeight": 395000000,
"executionPrice": "7550000",
"exitType": "default",
"lowerBound": "0.00069",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"marketMidPrice": "0.0000000000076155",
"numberOfGridLevels": "50",
"pendingExecution": true,
"quoteDeposit": "38019088",
"quoteQuantity": "20332000",
"removedHeight": 40000000,
"shouldExitWithQuoteOnly": true,
"state": "active",
"stopLoss": "0.00069",
"stopLossConfig": {
"exitPrice": "40",
"exitType": "default"
},
"strategy_type": "Incidunt omnis autem sint tempore.",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"subscriptionBaseQuantity": "100",
"subscriptionQuoteQuantity": "100000000",
"swapFee": "94024680000000000000000",
"takeProfit": "0.00099",
"takeProfitConfig": {
"exitPrice": "40",
"exitType": "default"
},
"updatedAt": 1544614248000,
"upperBound": "0.00099"
},
{
"StopReason": "user",
"accountAddress": "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r",
"baseDeposit": "7696000000000000000",
"baseQuantity": "10378000000000000000",
"contractAddress": "inj1djlhetddzrztjn4v0s4vt0dca3y8hwshkh37zg",
"contract_name": "Maxime animi laboriosam optio praesentium vel aperiam.",
"contract_version": "Quae dignissimos.",
"createdAt": 1544614248000,
"createdHeight": 395000000,
"executionPrice": "7550000",
"exitType": "default",
"lowerBound": "0.00069",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"marketMidPrice": "0.0000000000076155",
"numberOfGridLevels": "50",
"pendingExecution": true,
"quoteDeposit": "38019088",
"quoteQuantity": "20332000",
"removedHeight": 40000000,
"shouldExitWithQuoteOnly": true,
"state": "active",
"stopLoss": "0.00069",
"stopLossConfig": {
"exitPrice": "40",
"exitType": "default"
},
"strategy_type": "Incidunt omnis autem sint tempore.",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"subscriptionBaseQuantity": "100",
"subscriptionQuoteQuantity": "100000000",
"swapFee": "94024680000000000000000",
"takeProfit": "0.00099",
"takeProfitConfig": {
"exitPrice": "40",
"exitType": "default"
},
"updatedAt": 1544614248000,
"upperBound": "0.00099"
}
]
}