List order states by order hashes
OK response.
List of the derivative order state records
List of the spot order state records
const response = await fetch('https://inj-indexer.nownodes.io/api/exchange/account/v1/orderStates', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"derivativeOrderStates": [
{
"createdAt": 1544614248000,
"margin": "0.0000000002",
"marketId": "0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e",
"orderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
"orderSide": "buy",
"orderType": "limit",
"price": "0.0000000002",
"quantityFilled": "28000000000000000.00000000000000000",
"quantityRemaining": "28000000000000000.00000000000000000",
"state": "partial_filled",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"updatedAt": 1544614248000
},
{
"createdAt": 1544614248000,
"margin": "0.0000000002",
"marketId": "0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e",
"orderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
"orderSide": "buy",
"orderType": "limit",
"price": "0.0000000002",
"quantityFilled": "28000000000000000.00000000000000000",
"quantityRemaining": "28000000000000000.00000000000000000",
"state": "partial_filled",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"updatedAt": 1544614248000
},
{
"createdAt": 1544614248000,
"margin": "0.0000000002",
"marketId": "0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e",
"orderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
"orderSide": "buy",
"orderType": "limit",
"price": "0.0000000002",
"quantityFilled": "28000000000000000.00000000000000000",
"quantityRemaining": "28000000000000000.00000000000000000",
"state": "partial_filled",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"updatedAt": 1544614248000
}
],
"spotOrderStates": [
{
"createdAt": 1544614248000,
"margin": "0.0000000002",
"marketId": "0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e",
"orderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
"orderSide": "buy",
"orderType": "limit",
"price": "0.0000000002",
"quantityFilled": "28000000000000000.00000000000000000",
"quantityRemaining": "28000000000000000.00000000000000000",
"state": "partial_filled",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"updatedAt": 1544614248000
},
{
"createdAt": 1544614248000,
"margin": "0.0000000002",
"marketId": "0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e",
"orderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
"orderSide": "buy",
"orderType": "limit",
"price": "0.0000000002",
"quantityFilled": "28000000000000000.00000000000000000",
"quantityRemaining": "28000000000000000.00000000000000000",
"state": "partial_filled",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"updatedAt": 1544614248000
}
]
}