MoveHistoryEntry

Struct MoveHistoryEntry 

Source
pub struct MoveHistoryEntry {
Show 16 fields pub block_trade_id: String, pub category: String, pub order_id: String, pub user_id: u64, pub symbol: String, pub side: String, pub price: f64, pub qty: f64, pub exec_fee: f64, pub status: String, pub exec_id: String, pub result_code: i16, pub result_message: String, pub created_at: u64, pub updated_at: u64, pub reject_party: String,
}
Expand description

Represents a single position move history record.

Details a specific position transfer between accounts, including trade parameters and status. Bots use this to audit individual transfers and diagnose issues.

Fields§

§block_trade_id: String

The block trade ID for the transfer.

A unique identifier for the position move, treated as a block trade. Bots use this to track specific transfer events.

§category: String

The product category (e.g., “linear”).

Indicates the instrument type of the transferred position. Bots should verify this matches the requested category.

§order_id: String

The unique order ID.

Identifies the order associated with the transfer. Bots use this to correlate transfers with specific orders.

§user_id: u64

The user ID of the account involved.

Indicates the account (source or destination) associated with the transfer. Bots use this to verify the correct accounts were involved.

§symbol: String

The trading pair symbol (e.g., “BTCUSDT”).

Identifies the perpetual futures contract for the transferred position. Bots should confirm this matches the requested symbol.

§side: String

The trade side (“Buy” or “Sell”).

Indicates whether the transferred position was long (Buy) or short (Sell). Bots use this to verify position direction.

§price: f64

The transfer price.

The price at which the position was transferred, used for valuation. Bots use this to verify the fairness of the transfer price.

§qty: f64

The quantity of the transferred position.

The amount of the base asset transferred. Bots use this to verify the correct position size was moved.

§exec_fee: f64

The execution fee for the transfer.

The fee charged for the transfer, in the settlement currency. Bots use this to calculate the net cost of the transfer.

§status: String

The status of the transfer (e.g., “Filled”, “Rejected”).

Indicates whether the transfer was successful or encountered issues. Bots should check this to confirm transfer completion.

§exec_id: String

The unique execution ID.

A unique identifier for the transfer execution on Bybit’s exchange. Bots use this to track specific transfer events and avoid duplicates.

§result_code: i16

The result code for the transfer.

A code indicating the outcome of the transfer (e.g., 0 for success). Bots should check this to identify issues with specific transfers.

§result_message: String

A message describing the transfer result.

Provides details about the transfer’s status, such as success or error reasons. Bots should log this for debugging and error handling.

§created_at: u64

The timestamp when the transfer was created.

Indicates when the transfer request was initiated. Bots use this to align transfer data with other time-series data.

§updated_at: u64

The timestamp when the transfer was last updated.

Indicates when the transfer status was last modified (e.g., completed or rejected). Bots use this to track transfer progress.

§reject_party: String

The party that rejected the transfer, if applicable.

Identifies the account (source or destination) that caused a rejection. Bots use this to diagnose transfer failures.

Trait Implementations§

Source§

impl Clone for MoveHistoryEntry

Source§

fn clone(&self) -> MoveHistoryEntry

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MoveHistoryEntry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for MoveHistoryEntry

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for MoveHistoryEntry

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,