pub struct PlatformVaultSetupPrepareRequest {
pub wallet_address: String,
pub session_public_key: String,
pub replace_session_public_key: Option<String>,
pub market_id: Option<String>,
pub expires_at_ms: Option<u64>,
pub minimum_interval_seconds: Option<u32>,
pub maximum_tolerance_bps: Option<u16>,
pub spending_limits: Vec<PlatformVaultSpendingLimit>,
}Expand description
One-signature onboarding: only the wallet and the external session key are required. One session then trades every market. Everything else is an optional policy on top; absent values take the product defaults.
Fields§
§wallet_address: String§session_public_key: String§replace_session_public_key: Option<String>Optional old session key to revoke in the same transaction that
registers session_public_key. If it is already absent, setup still
succeeds. This makes local credential rotation one owner signature.
market_id: Option<String>Optional. Names the market whose price protection the session pins when the product has one; the session trades every market either way.
expires_at_ms: Option<u64>Null or absent requests the permanent-session expiry supported by the product.
minimum_interval_seconds: Option<u32>Optional legacy hard cadence floor. Absent/zero leaves timing to the strategy.
maximum_tolerance_bps: Option<u16>Absent takes PLATFORM_SESSION_DEFAULT_MAXIMUM_TOLERANCE_BPS.
spending_limits: Vec<PlatformVaultSpendingLimit>Optional per-asset ceilings, at most PLATFORM_SESSION_MAX_SPENDING_LIMITS.
Assets without a limit are unlimited.
Trait Implementations§
Source§impl Clone for PlatformVaultSetupPrepareRequest
impl Clone for PlatformVaultSetupPrepareRequest
Source§fn clone(&self) -> PlatformVaultSetupPrepareRequest
fn clone(&self) -> PlatformVaultSetupPrepareRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more