DerivativeLimitOrders gets the limit orders of a derivative Market.
OK response.
Paging defines the structure for required params for handling pagination
const response = await fetch('https://inj-indexer.nownodes.io/api/exchange/derivative/v1/orders', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"orders": [
{
"cid": "custom_cid",
"createdAt": 1544614248000,
"executionType": "market",
"feeRecipient": "inj15gnk95hvqrsr343ecqjuv7yf2af9rkdqeax52d",
"isConditional": false,
"isReduceOnly": false,
"margin": "20000000000.000000000000000000",
"marketId": "0x4ca0f92fc28be0c9761326016b5a1a2177dd6375558365116b5bdda9abc229ce",
"orderHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
"orderNumber": 10,
"orderSide": "buy",
"orderType": "stop_buy",
"placedOrderHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
"price": "50900000000.000000000000000000",
"quantity": "0.200000000000000000",
"state": "partial_filled",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"triggerAt": 1544614248000,
"triggerPrice": "0",
"txHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
"unfilledQuantity": "0.200000000000000000",
"updatedAt": 1544614248000
},
{
"cid": "custom_cid",
"createdAt": 1544614248000,
"executionType": "market",
"feeRecipient": "inj15gnk95hvqrsr343ecqjuv7yf2af9rkdqeax52d",
"isConditional": false,
"isReduceOnly": false,
"margin": "20000000000.000000000000000000",
"marketId": "0x4ca0f92fc28be0c9761326016b5a1a2177dd6375558365116b5bdda9abc229ce",
"orderHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
"orderNumber": 10,
"orderSide": "buy",
"orderType": "stop_buy",
"placedOrderHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
"price": "50900000000.000000000000000000",
"quantity": "0.200000000000000000",
"state": "partial_filled",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"triggerAt": 1544614248000,
"triggerPrice": "0",
"txHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
"unfilledQuantity": "0.200000000000000000",
"updatedAt": 1544614248000
},
{
"cid": "custom_cid",
"createdAt": 1544614248000,
"executionType": "market",
"feeRecipient": "inj15gnk95hvqrsr343ecqjuv7yf2af9rkdqeax52d",
"isConditional": false,
"isReduceOnly": false,
"margin": "20000000000.000000000000000000",
"marketId": "0x4ca0f92fc28be0c9761326016b5a1a2177dd6375558365116b5bdda9abc229ce",
"orderHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
"orderNumber": 10,
"orderSide": "buy",
"orderType": "stop_buy",
"placedOrderHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
"price": "50900000000.000000000000000000",
"quantity": "0.200000000000000000",
"state": "partial_filled",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"triggerAt": 1544614248000,
"triggerPrice": "0",
"txHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
"unfilledQuantity": "0.200000000000000000",
"updatedAt": 1544614248000
},
{
"cid": "custom_cid",
"createdAt": 1544614248000,
"executionType": "market",
"feeRecipient": "inj15gnk95hvqrsr343ecqjuv7yf2af9rkdqeax52d",
"isConditional": false,
"isReduceOnly": false,
"margin": "20000000000.000000000000000000",
"marketId": "0x4ca0f92fc28be0c9761326016b5a1a2177dd6375558365116b5bdda9abc229ce",
"orderHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
"orderNumber": 10,
"orderSide": "buy",
"orderType": "stop_buy",
"placedOrderHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
"price": "50900000000.000000000000000000",
"quantity": "0.200000000000000000",
"state": "partial_filled",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"triggerAt": 1544614248000,
"triggerPrice": "0",
"txHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
"unfilledQuantity": "0.200000000000000000",
"updatedAt": 1544614248000
}
],
"paging": {
"countBySubaccount": 3144167030999342600,
"from": 1916499695,
"next": [
"Ea rerum.",
"Aut dolorem cum voluptas quae.",
"Voluptas repellendus qui ipsam est."
],
"to": 391437627,
"total": 7364854934794692000
}
}