Trade

Get trades with optional filtering and pagination.

get/api/trade

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/trade
  • Auth: API key in header Authorization

Query parameters

assetIdIninteger

Filter by input asset ID. When used alone, matches trades where this asset is either input or output.

assetIdOutinteger

Filter by output asset ID. When used with assetIdIn, requires exact asset pair match.

assetIdinteger

Filter by asset ID on either side of the trade.

assetIdAinteger

Filter unordered pair asset A.

assetIdBinteger

Filter unordered pair asset B.

txIdstring

Filter by transaction ID. Takes precedence over asset filters.

traderstring

Filter by trader address.

poolAddressstring

Filter by pool address.

poolAppIdinteger

Filter by pool application ID.

protocol'Pact' | 'Tiny' | 'Biatec' | 'Scam'

Filter by DEX protocol.

tradeState'TxPool' | 'Confirmed'

Filter by trade state.

blockFrominteger

Filter by minimum block.

blockTointeger

Filter by maximum block.

timestampFromstring date-time

Filter by minimum timestamp.

timestampTostring date-time

Filter by maximum timestamp.

minValueUSDnumber double

Filter by minimum USD value.

maxValueUSDnumber double

Filter by maximum USD value.

minFeesUSDnumber double

Filter by minimum USD fees.

maxFeesUSDnumber double

Filter by maximum USD fees.

minAmountIninteger

Filter by minimum input amount.

maxAmountIninteger

Filter by maximum input amount.

minAmountOutinteger

Filter by minimum output amount.

maxAmountOutinteger

Filter by maximum output amount.

sortBystring

Sort by timestamp, valueUSD, feesUSD, assetAmountIn, or assetAmountOut.

sortDirectionstring

Sort direction: asc or desc.

offsetinteger

Number of records to skip for pagination (default: 0).

sizeinteger

Maximum number of records to return (default: 100, max: 500).

Response

OK

totalinteger
offsetinteger
sizeinteger
hasMoreboolean

Changes

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