Skip to main content
POST
https://api.blockdb.io
/
v1
/
evm
/
prices
/
spot
/
crypto
/
impact-grid
curl -X POST "https://api.blockdb.io/v1/evm/prices/spot/crypto/impact-grid" \
  -H "Authorization: Bearer $BLOCKDB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "chain_id": 1,
  "base_token_address": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
  "quote_token_address": "a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "from_timestamp": "2025-11-11T18:00:00Z",
  "to_timestamp": "2025-11-11T19:00:00Z",
  "exchange_ids": [
    1
  ],
  "pool_uids": [
    "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000"
  ],
  "grid_step_bps": 10,
  "grid_radius_bps": 1000,
  "limit": 200,
  "cursor": null
}'
{
  "chain_id": 1,
  "metric": "impact-grid",
  "base_token_address": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
  "quote_token_address": "a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "meta": {
    "request_window": {
      "from_block": null,
      "to_block": null,
      "from_timestamp": "2025-11-11T18:00:00Z",
      "to_timestamp": "2025-11-11T19:00:00Z"
    },
    "filters": {
      "exchange_ids": [
        1
      ],
      "pool_uids": [
        "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000"
      ]
    }
  },
  "data": [
    {
      "chain_id": 1,
      "pool_uid": "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000",
      "current_price": "3025.219821481234567890",
      "grid_step_bps": 10,
      "grid_radius_bps": 1000,
      "grid_points": 101,
      "points": [
        {
          "offset_bps_abs": 0,
          "size_in": "0.000000000000000000",
          "size_out": "0.000000000000000000",
          "price_at_point": "3025.219821481234567890"
        },
        {
          "offset_bps_abs": 10,
          "size_in": "12.500000000000000000",
          "size_out": "37980.000000000000000000",
          "price_at_point": "3032.984812912345678901"
        }
      ],
      "genesis_block_number": 18935678,
      "genesis_block_time": "2025-11-11T18:42:15.123Z",
      "genesis_tx_index": 4,
      "genesis_log_index": 2,
      "_tracing_id": "0402000000000000000000000000000000000000",
      "_parent_tracing_ids": [
        "0203000000000000000000000000000000000000"
      ],
      "_genesis_tracing_ids": [
        "0103000000000000000000000000000000000000"
      ],
      "_created_at": "2025-11-11T18:42:15.123Z",
      "_updated_at": "2025-11-11T18:42:15.123Z"
    }
  ],
  "cursor": null,
  "count": 1
}

Description

Returns Level 2 impact grids summarising executable size, resulting price, and impact across a configurable basis-point radius for ERC-20 base and quote token pairs.

Parameters

chain_id
number
required
Target EVM chain. See the Chain enumeration for supported values.
base_token_address
string
required
ERC-20 contract address for the base asset (hex string, 20 bytes, no 0x prefix).
quote_token_address
string
required
ERC-20 contract address for the quote asset (hex string, 20 bytes, no 0x prefix).

Range Filters (mutually exclusive)

from_block
number
Starting block number (inclusive) for the query. Use with to_block.
to_block
number
Ending block number (inclusive) for the query. Use with from_block.
from_timestamp
string
Starting timestamp (ISO-8601). If it falls between blocks, the next block after this timestamp is used. Use with to_timestamp.
to_timestamp
string
Ending timestamp (ISO-8601). If it falls between blocks, the last block before this timestamp is used. Use with from_timestamp.
Validation rule:
You must provide either a block range, a time range, or at least one direct selector.
Providing more than one option results in HTTP 400.
Providing none results in HTTP 400.

Pool Selectors

exchange_ids
number[]
Filter by exchange identifiers. See the DigitalExchange enumeration.
pool_uids
string[]
Restrict to specific BlockDB pool identifiers.

Grid Controls

grid_step_bps
number
default:"10"
Basis-point spacing between grid points.
grid_radius_bps
number
default:"1000"
Maximum absolute offset covered (e.g., 1000 ⇒ ±10%).

Pagination Controls

limit
number
default:"250"
Recommended default 250; maximum 1000 to stay under ~10 MB responses.
cursor
string
Opaque pagination cursor supplied by a previous response.

Response Fields

chain_id
number
EVM chain ID echoed at the response root.
metric
string
Always impact-grid for this endpoint.
base_token_address
string
ERC-20 contract address of the base asset.
quote_token_address
string
ERC-20 contract address of the quote asset.

Meta

meta
object
Echo of request metadata applied to the response.
meta.request_window
object
Normalized block/timestamp bounds derived from the request.
meta.filters
object
Filter parameters echoed from the request.

Data

data
object[]
Impact grid snapshots.
data.chain_id
number
EVM chain identifier.
data.pool_uid
string
BlockDB pool identifier. Present for per-pool grids.
data.current_price
string
Mid price expressed in quote units per base unit.
data.grid_step_bps
number
Basis-point spacing between grid points.
data.grid_radius_bps
number
Maximum absolute offset covered by the grid.
data.grid_points
number
Number of grid points returned (including midpoint).
data.points
object[]
Ordered impact datapoints from best price outward.
data.points[].offset_bps_abs
number
Absolute offset from mid.
data.points[].size_in
string
Executable size of the base asset to reach the offset.
data.points[].size_out
string
Executable size of the quote asset to reach the offset.
data.points[].price_at_point
string
Average price at that depth.
data.genesis_block_number
number
Block height anchoring the snapshot.
data.genesis_block_time
string
Timestamp of the genesis block.
data.genesis_tx_index
number
Transaction index associated with the snapshot.
data.genesis_log_index
number
Log index associated with the snapshot.
data._tracing_id
string
Tracing identifier for the snapshot row.
data._parent_tracing_ids
string[]
Parent lineage references.
data._genesis_tracing_ids
string[]
Lineage references to original on-chain events.
data._created_at
string
Record creation timestamp.
data._updated_at
string
Record update timestamp.

Envelope Fields

cursor
string | null
Pagination cursor.
count
number
Number of snapshots returned.

Usage Notes

  • Fiat or NFT combinations adopt the same grid semantics; BlockDB normalises amounts into human-readable decimal form based on the asset descriptors.
  • Omit filters.pool_uids to receive grids for every pool supporting the requested market.
curl -X POST "https://api.blockdb.io/v1/evm/prices/spot/crypto/impact-grid" \
  -H "Authorization: Bearer $BLOCKDB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "chain_id": 1,
  "base_token_address": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
  "quote_token_address": "a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "from_timestamp": "2025-11-11T18:00:00Z",
  "to_timestamp": "2025-11-11T19:00:00Z",
  "exchange_ids": [
    1
  ],
  "pool_uids": [
    "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000"
  ],
  "grid_step_bps": 10,
  "grid_radius_bps": 1000,
  "limit": 200,
  "cursor": null
}'
{
  "chain_id": 1,
  "metric": "impact-grid",
  "base_token_address": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
  "quote_token_address": "a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "meta": {
    "request_window": {
      "from_block": null,
      "to_block": null,
      "from_timestamp": "2025-11-11T18:00:00Z",
      "to_timestamp": "2025-11-11T19:00:00Z"
    },
    "filters": {
      "exchange_ids": [
        1
      ],
      "pool_uids": [
        "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000"
      ]
    }
  },
  "data": [
    {
      "chain_id": 1,
      "pool_uid": "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000",
      "current_price": "3025.219821481234567890",
      "grid_step_bps": 10,
      "grid_radius_bps": 1000,
      "grid_points": 101,
      "points": [
        {
          "offset_bps_abs": 0,
          "size_in": "0.000000000000000000",
          "size_out": "0.000000000000000000",
          "price_at_point": "3025.219821481234567890"
        },
        {
          "offset_bps_abs": 10,
          "size_in": "12.500000000000000000",
          "size_out": "37980.000000000000000000",
          "price_at_point": "3032.984812912345678901"
        }
      ],
      "genesis_block_number": 18935678,
      "genesis_block_time": "2025-11-11T18:42:15.123Z",
      "genesis_tx_index": 4,
      "genesis_log_index": 2,
      "_tracing_id": "0402000000000000000000000000000000000000",
      "_parent_tracing_ids": [
        "0203000000000000000000000000000000000000"
      ],
      "_genesis_tracing_ids": [
        "0103000000000000000000000000000000000000"
      ],
      "_created_at": "2025-11-11T18:42:15.123Z",
      "_updated_at": "2025-11-11T18:42:15.123Z"
    }
  ],
  "cursor": null,
  "count": 1
}