Build transaction data for the wallet
Create a build-only client using addresses instead of private keys. This lets your app use the SDK to construct the correct calldata without submitting through the SDK.tx.kind === 'eoa', pass it to the wallet:
getCloseTradeTx(), getModifyOrderTx(), getCancelOrderTx(), and getUpdateCollateralTx().
Stream live position updates
Fetch the current positions once, then stream price-driven updates over WebSocket.pairId values present in the current positions response, so it is usually lighter than subscribing to the full price feed.
Poll trade status after wallet submission
Once a wallet sends the transaction, pollgetOrders() by initiatedTxHashes until the order leaves the pending state.