Interface AssetTrade

Asset Trade

interface AssetTrade {
    askOrder: string;
    askOrderHeight: number;
    asset: string;
    bidOrder: string;
    block: string;
    buyer: string;
    buyerRS: string;
    decimals: number;
    height: number;
    name: string;
    price: string;
    priceNQT: string;
    quantityQNT: string;
    seller: string;
    sellerRS: string;
    timestamp: number;
    tradeType: "buy" | "sell";
}

Properties

askOrder: string
askOrderHeight: number
asset: string
bidOrder: string
block: string
buyer: string
buyerRS: string
decimals: number
height: number
name: string
price: string

The price per integral token, i.e. if a token has 2 (two) decimals, then this amount is per 100 QNT (Quantity). The amount is always returned in Planck, that is Signa multiplied by 10E8

priceNQT: string

The price in planck per one token quantity. To get the right Planck expression use either price field or this formula: (priceNQT * 10^8) * 10^(decimals-8)

quantityQNT: string
seller: string
sellerRS: string
timestamp: number
tradeType: "buy" | "sell"