Trade interface representing a single trade

interface Trade {
    attributes: {
        block_number: number;
        block_timestamp: string;
        from_token_address: string;
        from_token_amount: string;
        kind: string;
        price_from_in_currency_token: string;
        price_from_in_usd: string;
        price_to_in_currency_token: string;
        price_to_in_usd: string;
        to_token_address: string;
        to_token_amount: string;
        tx_from_address: string;
        tx_hash: string;
        volume_in_usd: string;
    };
    id: string;
    type: string;
}

Hierarchy (View Summary)

Properties

Properties

attributes: {
    block_number: number;
    block_timestamp: string;
    from_token_address: string;
    from_token_amount: string;
    kind: string;
    price_from_in_currency_token: string;
    price_from_in_usd: string;
    price_to_in_currency_token: string;
    price_to_in_usd: string;
    to_token_address: string;
    to_token_amount: string;
    tx_from_address: string;
    tx_hash: string;
    volume_in_usd: string;
}

Type declaration

  • block_number: number

    Block number of the trade

  • block_timestamp: string

    Block timestamp

  • from_token_address: string

    Address of sent token

  • from_token_amount: string

    Amount of tokens sent

  • kind: string

    Type of trade

  • price_from_in_currency_token: string

    Price of sent token in currency token

  • price_from_in_usd: string

    Price of sent token in USD

  • price_to_in_currency_token: string

    Price of received token in currency token

  • price_to_in_usd: string

    Price of received token in USD

  • to_token_address: string

    Address of received token

  • to_token_amount: string

    Amount of tokens received

  • tx_from_address: string

    Sender address

  • tx_hash: string

    Transaction hash

  • volume_in_usd: string

    Trade volume in USD

id: string

Unique identifier for the entity

type: string

Type of the entity