A completed trade on the exchange.

const trades = await client.getTrades("fFUEL/fUSDC", 10);
for (const trade of trades) {
console.log(`${trade.side} ${trade.quantity} @ ${trade.price}`);
}
interface Trade {
    maker?: Identity;
    price: bigint;
    quantity: bigint;
    side: Side;
    taker?: Identity;
    timestamp: number;
    total: bigint;
    trade_id: string;
    trader_side?: "maker" | "taker" | "both";
}

Properties

maker?: Identity

Maker account identity.

price: bigint

Trade price (chain integer).

quantity: bigint

Trade quantity in base asset (chain integer).

side: Side

The maker's order side ("buy" or "sell").

This is an objective property of the trade — both maker and taker see the same value. To determine your own direction when you may be either maker or taker, combine side with trader_side.

taker?: Identity

Taker account identity.

timestamp: number

Trade execution timestamp (milliseconds since epoch).

total: bigint

Total trade value in quote asset (chain integer).

trade_id: string

Unique trade identifier.

trader_side?: "maker" | "taker" | "both"

The querying account's role: "maker", "taker", or "both" (self-trade). Only present on trades returned by account-scoped endpoints (e.g. getTrades({ account: ... })).