A trade of an asset to another asset

Export

Trade

interface Trade {
    address_id: string;
    approve_transaction?: Transaction;
    from_amount: string;
    from_asset: Asset;
    network_id: string;
    to_amount: string;
    to_asset: Asset;
    trade_id: string;
    transaction: Transaction;
    wallet_id: string;
}

Properties

address_id: string

The onchain address of the sender

Memberof

Trade

approve_transaction?: Transaction

Memberof

Trade

from_amount: string

The amount of the from asset to be traded (in atomic units of the from asset)

Memberof

Trade

from_asset: Asset

Memberof

Trade

network_id: string

The ID of the blockchain network

Memberof

Trade

to_amount: string

The amount of the to asset that will be received (in atomic units of the to asset)

Memberof

Trade

to_asset: Asset

Memberof

Trade

trade_id: string

The ID of the trade

Memberof

Trade

transaction: Transaction

Memberof

Trade

wallet_id: string

The ID of the wallet that owns the from address

Memberof

Trade