Set trading delegate
Set trading delegate

gTrade · Acts onchain

Names the one address that may trade the wallet's gTrade book. The diamond's setTradingDelegate records the delegate for the sender, replacing any delegate before it. The delegate then places, updates, closes and cancels the sender's orders and trades through delegatedTradingAction, each run as the sender, so collateral is pulled from and proceeds are paid to the sender; it can move nothing else of the sender's. The wallet sends it itself. A program that trades the wallet's book names the wallet's Plug account as the delegate, and gTrade's own one-click trading names a session key, so naming one replaces the other. Reach for it to hand the wallet's book back to its Plug account, or to a key trusted to trade it.