const transaction = await aptos.transaction.build.simple({
sender: account.accountAddress,
data: {
function: `${PACKAGE}::dex_accounts_entry::update_sl_order_for_position`,
typeArguments: [],
functionArguments: [
"0x123...abc", // subaccountAddr
12345678901234567890, // orderId (u128)
"0x456...def", // marketAddr (PerpMarket object address)
5400000000, // slTriggerPrice (optional, 5.4 with 9 decimals)
5350000000, // slLimitPrice (optional, 5.35 with 9 decimals)
750000000, // slSize (optional, 0.75 with 9 decimals)
],
},
});