bybit/models/move_position_request.rs
1use crate::prelude::*;
2
3/// Parameters for moving a position between accounts.
4///
5/// Used to construct a request to the `/v5/position/move-position` endpoint to transfer a position from one Bybit account (UID) to another. Bots use this for portfolio management, such as consolidating positions or transferring risk between accounts in perpetual futures trading.
6#[derive(Clone, Default, Serialize)]
7pub struct MovePositionRequest<'a> {
8 /// The source account UID.
9 ///
10 /// The unique identifier of the account from which the position is being transferred. Bots must ensure this UID has sufficient permissions and position size.
11 pub from_uid: u64,
12
13 /// The destination account UID.
14 ///
15 /// The unique identifier of the account to which the position is being transferred. Bots must verify the destination account is eligible to receive the position.
16 pub to_uid: u64,
17
18 /// A list of positions to move.
19 ///
20 /// Contains the details of each position to transfer, including symbol, price, side, and quantity. Bots should populate this with valid `PositionItem` structs to specify the exact positions to move.
21 pub list: Vec<PositionItem<'a>>,
22}