OrdersHistory

ordersHistory InjectiveDerivativeExchangeRPC

get

Lists history orders posted from a subaccount

Query parameters
subaccountIdstring · min: 66 · max: 66Optional

subaccount ID to filter orders for specific subaccount

Example: 0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002Pattern: ^0x[0-9a-fA-F]{64}$
marketIdsstring[] · max: 100Optional

Market IDs to filter orders

Example: ["0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb","0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb","0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb"]
marketIdstring · min: 66 · max: 66Optional

Market ID to filter orders for specific market

Example: 0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bbPattern: ^0x[0-9a-fA-F]{64}$
activeMarketsOnlybooleanOptional

Return only orders for active markets

Default: falseExample: true
skipintegerOptional

Skip will skip the first n item from the result

Default: 0Example: 0
limitinteger · min: 1 · max: 100Optional

Limit is used to specify the maximum number of items to be returned

Default: 100Example: 100
orderTypesstring · enum[] · max: 10Optional

filter by order types

Example: ["sell","sell_po","stop_sell"]
directionstringOptional

order side filter

Example: Voluptas tempore et placeat debitis dolorem possimus.
startTimeinteger · int64Optional

Search for orders which createdAt >= startTime, time in millisecond

Example: 908824050053655300
endTimeinteger · int64Optional

Search for orders which createdAt <= endTime, time in millisecond

Example: 3200731956915594000
isConditionalstring · enumOptional

Only search for conditional/non-conditional orders

Example: trueAvailable options:
orderTypestring · enumOptional

filter by order type

Example: stop_buyAvailable options:
statestring · enumOptional

Filter by order state

Example: filledAvailable options:
executionTypesstring · enum[]Optional

Execution type of order

Example: ["market","market"]
tradeIdstringOptional

TradeId of the order we want to fetch

Example: 96_1_0
cidstringOptional

Client order ID

Example: my_custom_cid
Responses
application/json
objectOptionalExample: {"orders":[{"cid":"custom_cid","createdAt":1544614248000,"direction":"buy","executionType":"Maiores molestiae blanditiis provident.","filledQuantity":"28000000000000000.00000000000000000","isActive":true,"isConditional":true,"isReduceOnly":false,"margin":"0.00003156","marketId":"0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e","orderHash":"0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e","orderType":"stop_sell","placedOrderHash":"0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e","price":"0.000000003156","quantity":"28000000000000000.00000000000000000","state":"partial_filled","subaccountId":"0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002","triggerAt":1544614248000,"triggerPrice":"0.000000003156","txHash":"0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36","updatedAt":1544614248000},{"cid":"custom_cid","createdAt":1544614248000,"direction":"buy","executionType":"Maiores molestiae blanditiis provident.","filledQuantity":"28000000000000000.00000000000000000","isActive":true,"isConditional":true,"isReduceOnly":false,"margin":"0.00003156","marketId":"0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e","orderHash":"0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e","orderType":"stop_sell","placedOrderHash":"0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e","price":"0.000000003156","quantity":"28000000000000000.00000000000000000","state":"partial_filled","subaccountId":"0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002","triggerAt":1544614248000,"triggerPrice":"0.000000003156","txHash":"0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36","updatedAt":1544614248000},{"cid":"custom_cid","createdAt":1544614248000,"direction":"buy","executionType":"Maiores molestiae blanditiis provident.","filledQuantity":"28000000000000000.00000000000000000","isActive":true,"isConditional":true,"isReduceOnly":false,"margin":"0.00003156","marketId":"0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e","orderHash":"0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e","orderType":"stop_sell","placedOrderHash":"0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e","price":"0.000000003156","quantity":"28000000000000000.00000000000000000","state":"partial_filled","subaccountId":"0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002","triggerAt":1544614248000,"triggerPrice":"0.000000003156","txHash":"0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36","updatedAt":1544614248000},{"cid":"custom_cid","createdAt":1544614248000,"direction":"buy","executionType":"Maiores molestiae blanditiis provident.","filledQuantity":"28000000000000000.00000000000000000","isActive":true,"isConditional":true,"isReduceOnly":false,"margin":"0.00003156","marketId":"0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e","orderHash":"0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e","orderType":"stop_sell","placedOrderHash":"0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e","price":"0.000000003156","quantity":"28000000000000000.00000000000000000","state":"partial_filled","subaccountId":"0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002","triggerAt":1544614248000,"triggerPrice":"0.000000003156","txHash":"0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36","updatedAt":1544614248000}],"paging":{"countBySubaccount":3144167030999342600,"from":1916499695,"next":["Ea rerum.","Aut dolorem cum voluptas quae.","Voluptas repellendus qui ipsam est."],"to":391437627,"total":7364854934794692000}}
get
GET /api/exchange/derivative/v1/ordersHistory HTTP/1.1
Host: inj-indexer.nownodes.io
Accept: */*
{
  "orders": [
    {
      "cid": "custom_cid",
      "createdAt": 1544614248000,
      "direction": "buy",
      "executionType": "Maiores molestiae blanditiis provident.",
      "filledQuantity": "28000000000000000.00000000000000000",
      "isActive": true,
      "isConditional": true,
      "isReduceOnly": false,
      "margin": "0.00003156",
      "marketId": "0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e",
      "orderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
      "orderType": "stop_sell",
      "placedOrderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
      "price": "0.000000003156",
      "quantity": "28000000000000000.00000000000000000",
      "state": "partial_filled",
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
      "triggerAt": 1544614248000,
      "triggerPrice": "0.000000003156",
      "txHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
      "updatedAt": 1544614248000
    },
    {
      "cid": "custom_cid",
      "createdAt": 1544614248000,
      "direction": "buy",
      "executionType": "Maiores molestiae blanditiis provident.",
      "filledQuantity": "28000000000000000.00000000000000000",
      "isActive": true,
      "isConditional": true,
      "isReduceOnly": false,
      "margin": "0.00003156",
      "marketId": "0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e",
      "orderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
      "orderType": "stop_sell",
      "placedOrderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
      "price": "0.000000003156",
      "quantity": "28000000000000000.00000000000000000",
      "state": "partial_filled",
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
      "triggerAt": 1544614248000,
      "triggerPrice": "0.000000003156",
      "txHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
      "updatedAt": 1544614248000
    },
    {
      "cid": "custom_cid",
      "createdAt": 1544614248000,
      "direction": "buy",
      "executionType": "Maiores molestiae blanditiis provident.",
      "filledQuantity": "28000000000000000.00000000000000000",
      "isActive": true,
      "isConditional": true,
      "isReduceOnly": false,
      "margin": "0.00003156",
      "marketId": "0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e",
      "orderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
      "orderType": "stop_sell",
      "placedOrderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
      "price": "0.000000003156",
      "quantity": "28000000000000000.00000000000000000",
      "state": "partial_filled",
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
      "triggerAt": 1544614248000,
      "triggerPrice": "0.000000003156",
      "txHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
      "updatedAt": 1544614248000
    },
    {
      "cid": "custom_cid",
      "createdAt": 1544614248000,
      "direction": "buy",
      "executionType": "Maiores molestiae blanditiis provident.",
      "filledQuantity": "28000000000000000.00000000000000000",
      "isActive": true,
      "isConditional": true,
      "isReduceOnly": false,
      "margin": "0.00003156",
      "marketId": "0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e",
      "orderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
      "orderType": "stop_sell",
      "placedOrderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
      "price": "0.000000003156",
      "quantity": "28000000000000000.00000000000000000",
      "state": "partial_filled",
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
      "triggerAt": 1544614248000,
      "triggerPrice": "0.000000003156",
      "txHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
      "updatedAt": 1544614248000
    }
  ],
  "paging": {
    "countBySubaccount": 3144167030999342600,
    "from": 1916499695,
    "next": [
      "Ea rerum.",
      "Aut dolorem cum voluptas quae.",
      "Voluptas repellendus qui ipsam est."
    ],
    "to": 391437627,
    "total": 7364854934794692000
  }
}