OrderStates

orderStates InjectiveAccountsRPC

get

List order states by order hashes

Query parameters
spotOrderHashesstring[]Optional

Hash of the order

Example: ["0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36","0xd57778edc532dd7a974f2e3ed610d31c0aee380594fff3243d1b5065fea70fc1"]
derivativeOrderHashesstring[]Optional

Hash of the order

Example: ["0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36","0xd57778edc532dd7a974f2e3ed610d31c0aee380594fff3243d1b5065fea70fc1"]
Responses
200
OK response.
application/json
get
GET /api/exchange/account/v1/orderStates HTTP/1.1
Host: inj-indexer.nownodes.io
Accept: */*
{
  "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
    },
    {
      "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
    },
    {
      "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
    }
  ]
}