Stats

Returns aggregated DEX statistics (volume, fees) for the given protocol over the window [timestamp, to). When to is omitted, the window defaults to a full day: [timestamp, timestamp + 1 day), preserving the original daily-aggregate behaviour. An explicit to allows arbitrary windows (e.g. 1 hour) for consumers that pull data more granularly, such as DefiLlama's v2 adapter model (`pullHourly: true`). Only confirmed trades are included. Suitable for DefiLlama adapter consumption.

get/api/Stats/dex

Request

  • Base URL: https://api.testnet.scan.biatec.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.testnet.scan.biatec.io/api/Stats/dex
  • Auth: none declared

Query parameters

dexstring

DEX protocol identifier: Biatec, Pact, or Tiny.

timestampstring date-time

Inclusive start of the statistics window.

tostring date-time

Exclusive end of the statistics window. Defaults to timestamp + 1 day when omitted.

Response

OK

protocolstring nullable

DEX protocol identifier (Biatec, Pact, or Tiny).

fromstring date-time

Start of the statistics window (inclusive).

tostring date-time

End of the statistics window (exclusive; equals From + 1 day unless an explicit end was requested).

volumeUSDnumber double

Total USD volume traded during the window (sum of valueUSD across all confirmed trades).

feesUSDnumber double

Total fees collected from all trades in USD (sum of feesUSD).

feesLPUSDnumber double

Total fees collected by liquidity providers in USD (sum of feesUSDProvider).

feesProtocolUSDnumber double

Total fees collected by the protocol in USD (sum of feesUSDProtocol).

Changes

No recorded changes to this operation across all 1 revision of this API.