InjectiveSpotExchangeRPC

InjectiveSpotExchangeRPC defines gRPC API of Spot Exchange provider.

atomicSwapHistory InjectiveSpotExchangeRPC

get

Get historical atomic swaps

Authorizations
Query parameters
addressstring · min: 42 · max: 42Required

sender of the atomic swap

Example: inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqkuPattern: ^inj1[0-9a-zA-Z]{38}$
contract_addressstring · min: 42 · max: 42Optional

atomic swap contract address to filter

Example: inj12lqjzxkp7q66cew9s42hvf4x7ya5nge8xxw69xPattern: ^inj1[0-9a-zA-Z]{38}$
limitinteger · int32Optional

limit number of swaps returned by this API

Default: 100Example: 100
skipinteger · max: 10000Optional

skip some swaps

Default: 0Example: 100
from_numberinteger · int32Optional

lowerbound of atomic swap index

Example: 1
to_numberinteger · int32Optional

upperbound of atomic swap index

Example: 100
Responses
200
OK response.
application/json
get
GET /api/exchange/spot/v1/atomicSwapHistory HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "contractAddress": "Doloremque et excepturi occaecati voluptates laborum tempore.",
      "destCoin": {
        "amount": "1000000000000000000",
        "denom": "USDT"
      },
      "executedAt": 5135189294612931000,
      "fees": [
        {
          "amount": "1000000000000000000",
          "denom": "USDT"
        },
        {
          "amount": "1000000000000000000",
          "denom": "USDT"
        }
      ],
      "indexBySender": 1535512668,
      "indexBySenderContract": 201189989,
      "refundAmount": "Amet at voluptatem natus.",
      "route": "Tempore earum sed.",
      "sender": "Voluptatum est distinctio molestiae similique eum.",
      "sourceCoin": {
        "amount": "1000000000000000000",
        "denom": "USDT"
      },
      "txHash": "Laboriosam vitae reiciendis sed molestiae ratione quisquam."
    },
    {
      "contractAddress": "Doloremque et excepturi occaecati voluptates laborum tempore.",
      "destCoin": {
        "amount": "1000000000000000000",
        "denom": "USDT"
      },
      "executedAt": 5135189294612931000,
      "fees": [
        {
          "amount": "1000000000000000000",
          "denom": "USDT"
        },
        {
          "amount": "1000000000000000000",
          "denom": "USDT"
        }
      ],
      "indexBySender": 1535512668,
      "indexBySenderContract": 201189989,
      "refundAmount": "Amet at voluptatem natus.",
      "route": "Tempore earum sed.",
      "sender": "Voluptatum est distinctio molestiae similique eum.",
      "sourceCoin": {
        "amount": "1000000000000000000",
        "denom": "USDT"
      },
      "txHash": "Laboriosam vitae reiciendis sed molestiae ratione quisquam."
    },
    {
      "contractAddress": "Doloremque et excepturi occaecati voluptates laborum tempore.",
      "destCoin": {
        "amount": "1000000000000000000",
        "denom": "USDT"
      },
      "executedAt": 5135189294612931000,
      "fees": [
        {
          "amount": "1000000000000000000",
          "denom": "USDT"
        },
        {
          "amount": "1000000000000000000",
          "denom": "USDT"
        }
      ],
      "indexBySender": 1535512668,
      "indexBySenderContract": 201189989,
      "refundAmount": "Amet at voluptatem natus.",
      "route": "Tempore earum sed.",
      "sender": "Voluptatum est distinctio molestiae similique eum.",
      "sourceCoin": {
        "amount": "1000000000000000000",
        "denom": "USDT"
      },
      "txHash": "Laboriosam vitae reiciendis sed molestiae ratione quisquam."
    },
    {
      "contractAddress": "Doloremque et excepturi occaecati voluptates laborum tempore.",
      "destCoin": {
        "amount": "1000000000000000000",
        "denom": "USDT"
      },
      "executedAt": 5135189294612931000,
      "fees": [
        {
          "amount": "1000000000000000000",
          "denom": "USDT"
        },
        {
          "amount": "1000000000000000000",
          "denom": "USDT"
        }
      ],
      "indexBySender": 1535512668,
      "indexBySenderContract": 201189989,
      "refundAmount": "Amet at voluptatem natus.",
      "route": "Tempore earum sed.",
      "sender": "Voluptatum est distinctio molestiae similique eum.",
      "sourceCoin": {
        "amount": "1000000000000000000",
        "denom": "USDT"
      },
      "txHash": "Laboriosam vitae reiciendis sed molestiae ratione quisquam."
    }
  ],
  "paging": {
    "countBySubaccount": 3144167030999342600,
    "from": 1916499695,
    "next": [
      "Ea rerum.",
      "Aut dolorem cum voluptas quae.",
      "Voluptas repellendus qui ipsam est."
    ],
    "to": 391437627,
    "total": 7364854934794692000
  }
}

markets InjectiveSpotExchangeRPC

get

Get a list of Spot Markets

Authorizations
Query parameters
marketStatusstring · enumOptional

Filter by market status

Default: activeExample: activePossible values:
quoteDenomstringOptional

Filter by the Coin denomination of the quote currency

Example: peggy0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
baseDenomstringOptional

Filter by the Coin denomination of the base currency

Example: peggy0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Responses
200
OK response.
application/json
get
GET /api/exchange/spot/v1/markets HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
  "markets": [
    {
      "baseDenom": "inj",
      "baseTokenMeta": {
        "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
        "decimals": 18,
        "logo": "https://static.alchemyapi.io/images/assets/825.png",
        "name": "Tether",
        "symbol": "USDT",
        "updatedAt": 1544614248000
      },
      "makerFeeRate": "0.001",
      "marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
      "marketStatus": "active",
      "minPriceTickSize": "0.001",
      "minQuantityTickSize": "0.001",
      "quoteDenom": "peggy0xdAC17F958D2ee523a2206206994597C13D831ec7",
      "quoteTokenMeta": {
        "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
        "decimals": 18,
        "logo": "https://static.alchemyapi.io/images/assets/825.png",
        "name": "Tether",
        "symbol": "USDT",
        "updatedAt": 1544614248000
      },
      "serviceProviderFee": "0.4",
      "takerFeeRate": "0.002",
      "ticker": "INJ/USDC"
    },
    {
      "baseDenom": "inj",
      "baseTokenMeta": {
        "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
        "decimals": 18,
        "logo": "https://static.alchemyapi.io/images/assets/825.png",
        "name": "Tether",
        "symbol": "USDT",
        "updatedAt": 1544614248000
      },
      "makerFeeRate": "0.001",
      "marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
      "marketStatus": "active",
      "minPriceTickSize": "0.001",
      "minQuantityTickSize": "0.001",
      "quoteDenom": "peggy0xdAC17F958D2ee523a2206206994597C13D831ec7",
      "quoteTokenMeta": {
        "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
        "decimals": 18,
        "logo": "https://static.alchemyapi.io/images/assets/825.png",
        "name": "Tether",
        "symbol": "USDT",
        "updatedAt": 1544614248000
      },
      "serviceProviderFee": "0.4",
      "takerFeeRate": "0.002",
      "ticker": "INJ/USDC"
    }
  ]
}

market InjectiveSpotExchangeRPC

get

Get details of a single spot market

Authorizations
Path parameters
marketIdstring · min: 66 · max: 66Required

MarketId of the market we want to fetch

Example: 0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bbPattern: ^0x[0-9a-fA-F]{64}$
Responses
200
OK response.
application/json
get
GET /api/exchange/spot/v1/markets/{marketId} HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
  "market": {
    "baseDenom": "inj",
    "baseTokenMeta": {
      "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
      "decimals": 18,
      "logo": "https://static.alchemyapi.io/images/assets/825.png",
      "name": "Tether",
      "symbol": "USDT",
      "updatedAt": 1544614248000
    },
    "makerFeeRate": "0.001",
    "marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
    "marketStatus": "active",
    "minPriceTickSize": "0.001",
    "minQuantityTickSize": "0.001",
    "quoteDenom": "peggy0xdAC17F958D2ee523a2206206994597C13D831ec7",
    "quoteTokenMeta": {
      "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
      "decimals": 18,
      "logo": "https://static.alchemyapi.io/images/assets/825.png",
      "name": "Tether",
      "symbol": "USDT",
      "updatedAt": 1544614248000
    },
    "serviceProviderFee": "0.4",
    "takerFeeRate": "0.002",
    "ticker": "INJ/USDC"
  }
}

orders InjectiveSpotExchangeRPC

get

Orders of a Spot Market

Authorizations
Query parameters
marketIdstring · min: 66 · max: 66Optional

MarketId of the market's orderbook we want to fetch

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

MarketIds of the markets of which we want to get trades

Example: ["0x4ca0f92fc28be0c9761326016b5a1a2177dd6375558365116b5bdda9abc229ce","0x1f73e21972972c69c03fb105a5864592ac2b47996ffea3c500d1ea2d20138717"]
orderSidestring · enumOptional

Look for specific order side

Example: buyPossible values:
subaccountIdstring · min: 66 · max: 66Optional

Look for specific subaccountId of an order

Example: 0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002Pattern: ^0x[0-9a-fA-F]{64}$
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
startTimeinteger · int64Optional

The starting timestamp in UNIX milliseconds that the trades must be equal or older than

Example: 1645579770
endTimeinteger · int64Optional

The ending timestamp in UNIX milliseconds that the trades must be equal or younger than

Example: 1645579787
includeInactivebooleanOptional

Should include inactive orders

Default: falseExample: true
subaccountTotalOrdersbooleanOptional

Choose to return subaccount total orders

Default: falseExample: true
tradeIdstringOptional

TradeId of the order we want to fetch

Example: 96_1_0
cidstringOptional

Client order ID

Example: my_custom_cid
Responses
200
OK response.
application/json
get
GET /api/exchange/spot/v1/orders HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
  "orders": [
    {
      "cid": "custom_cid",
      "createdAt": 1544614248000,
      "feeRecipient": "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r",
      "marketId": "0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e",
      "orderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
      "orderSide": "buy",
      "price": "0.000000003156",
      "quantity": "28000000000000000.00000000000000000",
      "state": "partial_filled",
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
      "triggerPrice": "0",
      "txHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
      "unfilledQuantity": "28000000000000000.00000000000000000",
      "updatedAt": 1544614248000
    },
    {
      "cid": "custom_cid",
      "createdAt": 1544614248000,
      "feeRecipient": "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r",
      "marketId": "0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e",
      "orderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
      "orderSide": "buy",
      "price": "0.000000003156",
      "quantity": "28000000000000000.00000000000000000",
      "state": "partial_filled",
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
      "triggerPrice": "0",
      "txHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
      "unfilledQuantity": "28000000000000000.00000000000000000",
      "updatedAt": 1544614248000
    },
    {
      "cid": "custom_cid",
      "createdAt": 1544614248000,
      "feeRecipient": "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r",
      "marketId": "0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e",
      "orderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
      "orderSide": "buy",
      "price": "0.000000003156",
      "quantity": "28000000000000000.00000000000000000",
      "state": "partial_filled",
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
      "triggerPrice": "0",
      "txHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
      "unfilledQuantity": "28000000000000000.00000000000000000",
      "updatedAt": 1544614248000
    }
  ],
  "paging": {
    "countBySubaccount": 3144167030999342600,
    "from": 1916499695,
    "next": [
      "Ea rerum.",
      "Aut dolorem cum voluptas quae.",
      "Voluptas repellendus qui ipsam est."
    ],
    "to": 391437627,
    "total": 7364854934794692000
  }
}

ordersHistory InjectiveSpotExchangeRPC

get

Lists history orders posted from this subaccount

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

subaccount ID to filter orders for specific subaccount

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

Market ID to filter orders for specific market

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

Market IDs to filter orders

Example: ["0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb","0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb","0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb"]
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
directionstringOptional

order side filter

Example: Ipsa labore qui quis assumenda.
startTimeinteger · int64Optional

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

Example: 7872547194233891000
endTimeinteger · int64Optional

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

Example: 1665593752166447900
statestring · enumOptional

Filter by order state

Example: filledPossible values:
tradeIdstringOptional

TradeId of the order we want to fetch

Example: 96_1_0
cidstringOptional

Client order ID

Example: my_custom_cid
Responses
200
OK response.
application/json
get
GET /api/exchange/spot/v1/ordersHistory HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
  "orders": [
    {
      "cid": "custom_cid",
      "createdAt": 1544614248000,
      "direction": "buy",
      "executionType": "Consequatur eum ex sunt assumenda autem et.",
      "filledQuantity": "28000000000000000.00000000000000000",
      "isActive": true,
      "marketId": "0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e",
      "orderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
      "orderType": "stop_sell",
      "price": "0.000000003156",
      "quantity": "28000000000000000.00000000000000000",
      "state": "partial_filled",
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
      "triggerPrice": "0.000000003156",
      "txHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
      "updatedAt": 1544614248000
    },
    {
      "cid": "custom_cid",
      "createdAt": 1544614248000,
      "direction": "buy",
      "executionType": "Consequatur eum ex sunt assumenda autem et.",
      "filledQuantity": "28000000000000000.00000000000000000",
      "isActive": true,
      "marketId": "0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e",
      "orderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
      "orderType": "stop_sell",
      "price": "0.000000003156",
      "quantity": "28000000000000000.00000000000000000",
      "state": "partial_filled",
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
      "triggerPrice": "0.000000003156",
      "txHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
      "updatedAt": 1544614248000
    },
    {
      "cid": "custom_cid",
      "createdAt": 1544614248000,
      "direction": "buy",
      "executionType": "Consequatur eum ex sunt assumenda autem et.",
      "filledQuantity": "28000000000000000.00000000000000000",
      "isActive": true,
      "marketId": "0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e",
      "orderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
      "orderType": "stop_sell",
      "price": "0.000000003156",
      "quantity": "28000000000000000.00000000000000000",
      "state": "partial_filled",
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
      "triggerPrice": "0.000000003156",
      "txHash": "0x92da72606d9d26bbc5a8a5578373c6bbe11e39d0944788b5cd142a14d01f9d36",
      "updatedAt": 1544614248000
    },
    {
      "cid": "custom_cid",
      "createdAt": 1544614248000,
      "direction": "buy",
      "executionType": "Consequatur eum ex sunt assumenda autem et.",
      "filledQuantity": "28000000000000000.00000000000000000",
      "isActive": true,
      "marketId": "0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e",
      "orderHash": "0x4f4391f8ee11f656d0a9396370c6991f59c4bb491214e8b6ab2011a1bcf1c44e",
      "orderType": "stop_sell",
      "price": "0.000000003156",
      "quantity": "28000000000000000.00000000000000000",
      "state": "partial_filled",
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
      "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
  }
}

trades InjectiveSpotExchangeRPC

get

Trades of a Spot Market

Authorizations
Query parameters
marketIdstring · min: 66 · max: 66Optional

MarketId of the market's orderbook we want to fetch

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

MarketIds of the markets of which we want to get trades

Example: ["0x4ca0f92fc28be0c9761326016b5a1a2177dd6375558365116b5bdda9abc229ce","0x1f73e21972972c69c03fb105a5864592ac2b47996ffea3c500d1ea2d20138717"]
executionSidestring · enumOptional

Filter by execution side of the trade

Example: makerPossible values:
directionstring · enumOptional

Filter by direction the trade

Example: buyPossible values:
skipintegerOptional

Skip will skip the first n item from the item result

Example: 0
limitinteger · int64Optional

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

Example: 100
startTimeinteger · int64Optional

The starting timestamp in UNIX milliseconds that the trades must be equal or older than

Example: 1645579770
endTimeinteger · int64Optional

The ending timestamp in UNIX milliseconds that the trades must be equal or younger than

Example: 1645579787
subaccountIdstring · min: 66 · max: 66Optional

SubaccountId of the trader we want to get the trades from

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

Subaccount ids of traders we want to get trades

Example: ["0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000001","0x80f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000000"]
tradeIdstringOptional

Filter by the tradeId of the trade

Example: 502733_0_0
accountAddressstring · min: 42 · max: 42Optional

Account address

Example: inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885rPattern: ^inj1[0-9a-zA-Z]{38}$
cidstringOptional

Client order ID

Example: my_custom_cid
Responses
200
OK response.
application/json
get
GET /api/exchange/spot/v1/trades HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
  "paging": {
    "countBySubaccount": 3144167030999342600,
    "from": 1916499695,
    "next": [
      "Ea rerum.",
      "Aut dolorem cum voluptas quae.",
      "Voluptas repellendus qui ipsam est."
    ],
    "to": 391437627,
    "total": 7364854934794692000
  },
  "trades": [
    {
      "cid": "custom_cid",
      "executedAt": 1544614248000,
      "executionSide": "Enim voluptatem temporibus eveniet fuga voluptatibus.",
      "fee": "1960000000000000",
      "feeRecipient": "inj15gnk95hvqrsr343ecqjuv7yf2af9rkdqeax52d",
      "marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
      "orderHash": "0x482ce078117d4835fe005b643056d2d3f439e3010db40f68449d9e5b77e911bc",
      "price": {
        "price": "1960000000000000000",
        "quantity": "40",
        "timestamp": 1544614248000
      },
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
      "tradeDirection": "buy",
      "tradeExecutionType": "market",
      "tradeId": "Quidem aut officia ad soluta eveniet saepe."
    },
    {
      "cid": "custom_cid",
      "executedAt": 1544614248000,
      "executionSide": "Enim voluptatem temporibus eveniet fuga voluptatibus.",
      "fee": "1960000000000000",
      "feeRecipient": "inj15gnk95hvqrsr343ecqjuv7yf2af9rkdqeax52d",
      "marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
      "orderHash": "0x482ce078117d4835fe005b643056d2d3f439e3010db40f68449d9e5b77e911bc",
      "price": {
        "price": "1960000000000000000",
        "quantity": "40",
        "timestamp": 1544614248000
      },
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
      "tradeDirection": "buy",
      "tradeExecutionType": "market",
      "tradeId": "Quidem aut officia ad soluta eveniet saepe."
    },
    {
      "cid": "custom_cid",
      "executedAt": 1544614248000,
      "executionSide": "Enim voluptatem temporibus eveniet fuga voluptatibus.",
      "fee": "1960000000000000",
      "feeRecipient": "inj15gnk95hvqrsr343ecqjuv7yf2af9rkdqeax52d",
      "marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
      "orderHash": "0x482ce078117d4835fe005b643056d2d3f439e3010db40f68449d9e5b77e911bc",
      "price": {
        "price": "1960000000000000000",
        "quantity": "40",
        "timestamp": 1544614248000
      },
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
      "tradeDirection": "buy",
      "tradeExecutionType": "market",
      "tradeId": "Quidem aut officia ad soluta eveniet saepe."
    }
  ]
}

orderbookV2 InjectiveSpotExchangeRPC

get

Orderbook of a Spot Market

Authorizations
Path parameters
marketIdstring · min: 66 · max: 66Required

MarketId of the market's orderbook we want to fetch

Example: 0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bbPattern: ^0x[0-9a-fA-F]{64}$
Responses
200
OK response.
application/json
get
GET /api/exchange/spot/v2/orderbook/{marketId} HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
  "orderbook": {
    "buys": [
      {
        "price": "1960000000000000000",
        "quantity": "40",
        "timestamp": 1544614248000
      },
      {
        "price": "1960000000000000000",
        "quantity": "40",
        "timestamp": 1544614248000
      },
      {
        "price": "1960000000000000000",
        "quantity": "40",
        "timestamp": 1544614248000
      }
    ],
    "sells": [
      {
        "price": "1960000000000000000",
        "quantity": "40",
        "timestamp": 1544614248000
      },
      {
        "price": "1960000000000000000",
        "quantity": "40",
        "timestamp": 1544614248000
      },
      {
        "price": "1960000000000000000",
        "quantity": "40",
        "timestamp": 1544614248000
      }
    ],
    "sequence": 16352721108687080000,
    "timestamp": 5946075348860917000
  }
}

orderbooksV2 InjectiveSpotExchangeRPC

get

Orderbook of Spot Markets

Authorizations
Query parameters
marketIdsstring[] · max: 100Required

MarketIds of the markets

Example: ["0x74b17b0d6855feba39f1f7ab1e8bad0363bd510ee1dcc74e40c2adfe1502f781","0x26413a70c9b78a495023e5ab8003c9cf963ef963f6755f8b57255feb5744bf31"]
Responses
200
OK response.
application/json
get
GET /api/exchange/spot/v2/orderbooks HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
  "orderbooks": [
    {
      "marketId": "Id exercitationem.",
      "orderbook": {
        "buys": [
          {
            "price": "1960000000000000000",
            "quantity": "40",
            "timestamp": 1544614248000
          },
          {
            "price": "1960000000000000000",
            "quantity": "40",
            "timestamp": 1544614248000
          },
          {
            "price": "1960000000000000000",
            "quantity": "40",
            "timestamp": 1544614248000
          }
        ],
        "sells": [
          {
            "price": "1960000000000000000",
            "quantity": "40",
            "timestamp": 1544614248000
          },
          {
            "price": "1960000000000000000",
            "quantity": "40",
            "timestamp": 1544614248000
          },
          {
            "price": "1960000000000000000",
            "quantity": "40",
            "timestamp": 1544614248000
          }
        ],
        "sequence": 16352721108687080000,
        "timestamp": 5946075348860917000
      }
    },
    {
      "marketId": "Id exercitationem.",
      "orderbook": {
        "buys": [
          {
            "price": "1960000000000000000",
            "quantity": "40",
            "timestamp": 1544614248000
          },
          {
            "price": "1960000000000000000",
            "quantity": "40",
            "timestamp": 1544614248000
          },
          {
            "price": "1960000000000000000",
            "quantity": "40",
            "timestamp": 1544614248000
          }
        ],
        "sells": [
          {
            "price": "1960000000000000000",
            "quantity": "40",
            "timestamp": 1544614248000
          },
          {
            "price": "1960000000000000000",
            "quantity": "40",
            "timestamp": 1544614248000
          },
          {
            "price": "1960000000000000000",
            "quantity": "40",
            "timestamp": 1544614248000
          }
        ],
        "sequence": 16352721108687080000,
        "timestamp": 5946075348860917000
      }
    }
  ]
}

tradesV2 InjectiveSpotExchangeRPC

get

Trades of a Spot Market

Authorizations
Query parameters
marketIdstring · min: 66 · max: 66Optional

MarketId of the market's orderbook we want to fetch

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

MarketIds of the markets of which we want to get trades

Example: ["0x4ca0f92fc28be0c9761326016b5a1a2177dd6375558365116b5bdda9abc229ce","0x1f73e21972972c69c03fb105a5864592ac2b47996ffea3c500d1ea2d20138717"]
executionSidestring · enumOptional

Filter by execution side of the trade

Example: makerPossible values:
directionstring · enumOptional

Filter by direction the trade

Example: buyPossible values:
skipintegerOptional

Skip will skip the first n item from the item result

Example: 0
limitinteger · int64Optional

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

Example: 100
startTimeinteger · int64Optional

The starting timestamp in UNIX milliseconds that the trades must be equal or older than

Example: 1645579770
endTimeinteger · int64Optional

The ending timestamp in UNIX milliseconds that the trades must be equal or younger than

Example: 1645579787
subaccountIdstring · min: 66 · max: 66Optional

SubaccountId of the trader we want to get the trades from

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

Subaccount ids of traders we want to get trades

Example: ["0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000001","0x80f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000000"]
tradeIdstringOptional

Filter by the tradeId of the trade

Example: 502733_0_0
accountAddressstring · min: 42 · max: 42Optional

Account address

Example: inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885rPattern: ^inj1[0-9a-zA-Z]{38}$
cidstringOptional

Client order ID

Example: my_custom_cid
Responses
200
OK response.
application/json
get
GET /api/exchange/spot/v2/trades HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
  "paging": {
    "countBySubaccount": 3144167030999342600,
    "from": 1916499695,
    "next": [
      "Ea rerum.",
      "Aut dolorem cum voluptas quae.",
      "Voluptas repellendus qui ipsam est."
    ],
    "to": 391437627,
    "total": 7364854934794692000
  },
  "trades": [
    {
      "cid": "custom_cid",
      "executedAt": 1544614248000,
      "executionSide": "Enim voluptatem temporibus eveniet fuga voluptatibus.",
      "fee": "1960000000000000",
      "feeRecipient": "inj15gnk95hvqrsr343ecqjuv7yf2af9rkdqeax52d",
      "marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
      "orderHash": "0x482ce078117d4835fe005b643056d2d3f439e3010db40f68449d9e5b77e911bc",
      "price": {
        "price": "1960000000000000000",
        "quantity": "40",
        "timestamp": 1544614248000
      },
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
      "tradeDirection": "buy",
      "tradeExecutionType": "market",
      "tradeId": "Quidem aut officia ad soluta eveniet saepe."
    },
    {
      "cid": "custom_cid",
      "executedAt": 1544614248000,
      "executionSide": "Enim voluptatem temporibus eveniet fuga voluptatibus.",
      "fee": "1960000000000000",
      "feeRecipient": "inj15gnk95hvqrsr343ecqjuv7yf2af9rkdqeax52d",
      "marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
      "orderHash": "0x482ce078117d4835fe005b643056d2d3f439e3010db40f68449d9e5b77e911bc",
      "price": {
        "price": "1960000000000000000",
        "quantity": "40",
        "timestamp": 1544614248000
      },
      "subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
      "tradeDirection": "buy",
      "tradeExecutionType": "market",
      "tradeId": "Quidem aut officia ad soluta eveniet saepe."
    }
  ]
}