const transaction = await aptos.transaction.build.simple({
sender: account.accountAddress,
data: {
function: `${PACKAGE}::dex_accounts_entry::update_tp_order_for_position`,
typeArguments: [],
functionArguments: [
"0x123...abc", // subaccountAddr
12345678901234567890, // orderId (u128)
"0x456...def", // marketAddr (PerpMarket object address)
6100000000, // tpTriggerPrice (optional, 6.1 with 9 decimals)
6150000000, // tpLimitPrice (optional, 6.15 with 9 decimals)
750000000, // tpSize (optional, 0.75 with 9 decimals)
],
},
});