InjectiveSpotExchangeRPC
InjectiveSpotExchangeRPC defines gRPC API of Spot Exchange provider.
Get historical atomic swaps
sender of the atomic swap
inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku
Pattern: ^inj1[0-9a-zA-Z]{38}$
atomic swap contract address to filter
inj12lqjzxkp7q66cew9s42hvf4x7ya5nge8xxw69x
Pattern: ^inj1[0-9a-zA-Z]{38}$
limit number of swaps returned by this API
100
Example: 100
skip some swaps
0
Example: 100
lowerbound of atomic swap index
1
upperbound of atomic swap index
100
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
}
}
Get a list of Spot Markets
Filter by market status
active
Example: active
Possible values: Filter by the Coin denomination of the quote currency
peggy0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Filter by the Coin denomination of the base currency
peggy0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
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"
}
]
}
Get details of a single spot market
MarketId of the market we want to fetch
0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb
Pattern: ^0x[0-9a-fA-F]{64}$
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 of a Spot Market
MarketId of the market's orderbook we want to fetch
0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb
Pattern: ^0x[0-9a-fA-F]{64}$
MarketIds of the markets of which we want to get trades
["0x4ca0f92fc28be0c9761326016b5a1a2177dd6375558365116b5bdda9abc229ce","0x1f73e21972972c69c03fb105a5864592ac2b47996ffea3c500d1ea2d20138717"]
Look for specific order side
buy
Possible values: Look for specific subaccountId of an order
0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002
Pattern: ^0x[0-9a-fA-F]{64}$
Skip will skip the first n item from the result
0
Example: 0
Limit is used to specify the maximum number of items to be returned.
100
Example: 100
The starting timestamp in UNIX milliseconds that the trades must be equal or older than
1645579770
The ending timestamp in UNIX milliseconds that the trades must be equal or younger than
1645579787
Should include inactive orders
false
Example: true
Choose to return subaccount total orders
false
Example: true
TradeId of the order we want to fetch
96_1_0
Client order ID
my_custom_cid
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
}
}
Lists history orders posted from this subaccount
subaccount ID to filter orders for specific subaccount
0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002
Pattern: ^0x[0-9a-fA-F]{64}$
Market ID to filter orders for specific market
0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb
Pattern: ^0x[0-9a-fA-F]{64}$
Market IDs to filter orders
["0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb","0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb","0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb"]
Return only orders for active markets
false
Example: true
Skip will skip the first n item from the result
0
Example: 0
Limit is used to specify the maximum number of items to be returned
100
Example: 100
order side filter
Ipsa labore qui quis assumenda.
Search for orders which createdAt >= startTime, time in millisecond
7872547194233891000
Search for orders which createdAt <= endTime, time in millisecond
1665593752166447900
Filter by order state
filled
Possible values: TradeId of the order we want to fetch
96_1_0
Client order ID
my_custom_cid
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 of a Spot Market
MarketId of the market's orderbook we want to fetch
0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb
Pattern: ^0x[0-9a-fA-F]{64}$
MarketIds of the markets of which we want to get trades
["0x4ca0f92fc28be0c9761326016b5a1a2177dd6375558365116b5bdda9abc229ce","0x1f73e21972972c69c03fb105a5864592ac2b47996ffea3c500d1ea2d20138717"]
Filter by execution side of the trade
maker
Possible values: Filter by direction the trade
buy
Possible values: Skip will skip the first n item from the item result
0
Limit is used to specify the maximum number of items to be returned.
100
The starting timestamp in UNIX milliseconds that the trades must be equal or older than
1645579770
The ending timestamp in UNIX milliseconds that the trades must be equal or younger than
1645579787
SubaccountId of the trader we want to get the trades from
0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002
Pattern: ^0x[0-9a-fA-F]{64}$
Subaccount ids of traders we want to get trades
["0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000001","0x80f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000000"]
Filter by the tradeId of the trade
502733_0_0
Account address
inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r
Pattern: ^inj1[0-9a-zA-Z]{38}$
Client order ID
my_custom_cid
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."
}
]
}
Orderbook of a Spot Market
MarketId of the market's orderbook we want to fetch
0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb
Pattern: ^0x[0-9a-fA-F]{64}$
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
}
}
Orderbook of Spot Markets
MarketIds of the markets
["0x74b17b0d6855feba39f1f7ab1e8bad0363bd510ee1dcc74e40c2adfe1502f781","0x26413a70c9b78a495023e5ab8003c9cf963ef963f6755f8b57255feb5744bf31"]
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
}
}
]
}
Trades of a Spot Market
MarketId of the market's orderbook we want to fetch
0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb
Pattern: ^0x[0-9a-fA-F]{64}$
MarketIds of the markets of which we want to get trades
["0x4ca0f92fc28be0c9761326016b5a1a2177dd6375558365116b5bdda9abc229ce","0x1f73e21972972c69c03fb105a5864592ac2b47996ffea3c500d1ea2d20138717"]
Filter by execution side of the trade
maker
Possible values: Filter by direction the trade
buy
Possible values: Skip will skip the first n item from the item result
0
Limit is used to specify the maximum number of items to be returned.
100
The starting timestamp in UNIX milliseconds that the trades must be equal or older than
1645579770
The ending timestamp in UNIX milliseconds that the trades must be equal or younger than
1645579787
SubaccountId of the trader we want to get the trades from
0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002
Pattern: ^0x[0-9a-fA-F]{64}$
Subaccount ids of traders we want to get trades
["0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000001","0x80f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000000"]
Filter by the tradeId of the trade
502733_0_0
Account address
inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r
Pattern: ^inj1[0-9a-zA-Z]{38}$
Client order ID
my_custom_cid
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."
}
]
}