def asset_asset_swap(
            self, asset1_id, asset1_transfer_spec, asset2_id, asset2_transfer_spec, fees):
        btc_transfer_spec = TransferParameters(
            asset1_transfer_spec.unspent_outputs, asset1_transfer_spec.to_script, asset1_transfer_spec.change_script, 0)

        return self.transfer(
            [(asset1_id, asset1_transfer_spec), (asset2_id, asset2_transfer_spec)], btc_transfer_spec, fees)
Creates a transaction for swapping an asset for another asset.
dataset/ETHPy150Open OpenAssets/openassets/openassets/transactions.py/TransactionBuilder.asset_asset_swap