bybit/models/
move_position_result.rs

1use crate::prelude::*;
2
3/// Details the result of a position move between accounts.
4///
5/// Part of the `MovePositionResponse`, this struct provides the outcome of the position transfer, including identifiers and status. Bots use this to confirm the transfer and track its execution.
6#[derive(Deserialize, Serialize, Clone, Debug)]
7#[serde(rename_all = "camelCase")]
8pub struct MovePositionResult {
9    /// The block trade ID for the position move.
10    ///
11    /// A unique identifier for the transfer, treated as a block trade by Bybit. Bots use this to track the specific transfer event.
12    pub block_trade_id: String,
13
14    /// The status of the position move.
15    ///
16    /// Indicates whether the transfer was successful (e.g., "Filled") or encountered issues (e.g., "Rejected"). Bots should check this to confirm transfer completion.
17    pub status: String,
18
19    /// The party that rejected the move, if applicable.
20    ///
21    /// Identifies the account (source or destination) that caused a rejection, if any. Bots use this for error handling and to diagnose transfer failures.
22    pub reject_party: String,
23}