• Trades a specified amount of a from asset to a to asset for the wallet.

    Parameters

    • wallet: Wallet

      The wallet to trade the asset from.

    • args: { amount: Amount; fromAssetId: string; toAssetId: string }

      The input arguments for the action.

    Returns Promise<string>

    A message containing the trade details.