pub struct DelegatedAgent {Show 15 fields
pub agent_address: Option<String>,
pub allowed_actions: Option<Vec<DelegatedAgentAllowedActionsItem>>,
pub allowed_margin_account_ids: Option<Vec<Uuid>>,
pub allowed_order_types: Option<Vec<DelegatedAgentAllowedOrderTypesItem>>,
pub allowed_time_in_force: Option<Vec<DelegatedAgentAllowedTimeInForceItem>>,
pub allowed_trading_pair_ids: Option<Vec<Uuid>>,
pub expires_at: Option<String>,
pub id: Option<Uuid>,
pub is_active: Option<bool>,
pub max_leverage: Option<String>,
pub max_open_orders: Option<i32>,
pub max_order_notional: Option<String>,
pub name: Option<String>,
pub owner_user_id: Option<Uuid>,
pub revoked_at: Option<String>,
}Expand description
DelegatedAgent
JSON schema
{
"type": "object",
"properties": {
"agentAddress": {
"description": "Agent wallet address (EVM)",
"examples": [
"0x742d35cc6634c0532925a3b8d4060f31e2c3d8b5"
],
"type": [
"string",
"null"
]
},
"allowedActions": {
"description": "Actions the agent may perform",
"type": [
"array",
"null"
],
"items": {
"type": "string",
"minLength": 1
}
},
"allowedMarginAccountIds": {
"description": "Margin account UUIDs the agent may trade against",
"type": [
"array",
"null"
],
"items": {
"type": "string",
"format": "uuid",
"minLength": 1
}
},
"allowedOrderTypes": {
"description": "Permitted order types. Empty means unrestricted.",
"type": [
"array",
"null"
],
"items": {
"type": "string",
"minLength": 1
}
},
"allowedTimeInForce": {
"description": "Permitted time-in-force values. Empty means unrestricted.",
"type": [
"array",
"null"
],
"items": {
"type": "string",
"minLength": 1
}
},
"allowedTradingPairIds": {
"description": "Trading pair UUIDs the agent may trade",
"type": [
"array",
"null"
],
"items": {
"type": "string",
"format": "uuid",
"minLength": 1
}
},
"expiresAt": {
"description": "Delegation expiry timestamp (ISO 8601), if set",
"type": [
"string",
"null"
]
},
"id": {
"description": "Delegation UUID",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"isActive": {
"description": "Whether the delegation is active",
"type": [
"boolean",
"null"
]
},
"maxLeverage": {
"description": "Maximum leverage (decimal string), if set",
"type": [
"string",
"null"
]
},
"maxOpenOrders": {
"description": "Maximum concurrent open orders, if set",
"type": [
"integer",
"null"
],
"format": "int32"
},
"maxOrderNotional": {
"description": "Maximum order notional (decimal string), if set",
"type": [
"string",
"null"
]
},
"name": {
"description": "Human-friendly label for the agent",
"type": [
"string",
"null"
]
},
"ownerUserId": {
"description": "Owner account UUID the agent acts on behalf of",
"type": [
"string",
"null"
],
"format": "uuid"
},
"revokedAt": {
"description": "Revocation timestamp (ISO 8601), if revoked",
"type": [
"string",
"null"
]
}
}
}Fields§
§agent_address: Option<String>Agent wallet address (EVM)
allowed_actions: Option<Vec<DelegatedAgentAllowedActionsItem>>Actions the agent may perform
allowed_margin_account_ids: Option<Vec<Uuid>>Margin account UUIDs the agent may trade against
allowed_order_types: Option<Vec<DelegatedAgentAllowedOrderTypesItem>>Permitted order types. Empty means unrestricted.
allowed_time_in_force: Option<Vec<DelegatedAgentAllowedTimeInForceItem>>Permitted time-in-force values. Empty means unrestricted.
allowed_trading_pair_ids: Option<Vec<Uuid>>Trading pair UUIDs the agent may trade
expires_at: Option<String>Delegation expiry timestamp (ISO 8601), if set
id: Option<Uuid>Delegation UUID
is_active: Option<bool>Whether the delegation is active
max_leverage: Option<String>Maximum leverage (decimal string), if set
max_open_orders: Option<i32>Maximum concurrent open orders, if set
max_order_notional: Option<String>Maximum order notional (decimal string), if set
name: Option<String>Human-friendly label for the agent
owner_user_id: Option<Uuid>Owner account UUID the agent acts on behalf of
revoked_at: Option<String>Revocation timestamp (ISO 8601), if revoked
Trait Implementations§
Source§impl Clone for DelegatedAgent
impl Clone for DelegatedAgent
Source§fn clone(&self) -> DelegatedAgent
fn clone(&self) -> DelegatedAgent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DelegatedAgent
impl Debug for DelegatedAgent
Source§impl Default for DelegatedAgent
impl Default for DelegatedAgent
Source§impl<'de> Deserialize<'de> for DelegatedAgent
impl<'de> Deserialize<'de> for DelegatedAgent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DelegatedAgent
impl RefUnwindSafe for DelegatedAgent
impl Send for DelegatedAgent
impl Sync for DelegatedAgent
impl Unpin for DelegatedAgent
impl UnsafeUnpin for DelegatedAgent
impl UnwindSafe for DelegatedAgent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more