pub struct TransactionLogEntry {Show 20 fields
pub id: String,
pub symbol: String,
pub side: String,
pub funding: Option<String>,
pub order_link_id: Option<String>,
pub order_id: String,
pub fee: f64,
pub change: String,
pub cash_flow: f64,
pub transaction_time: String,
pub type_field: String,
pub fee_rate: String,
pub bonus_change: Option<String>,
pub size: f64,
pub qty: f64,
pub cash_balance: f64,
pub currency: String,
pub category: String,
pub trade_price: String,
pub trade_id: String,
}Expand description
Represents a single transaction log entry.
Details a specific transaction, such as a trade, funding fee, or margin adjustment, including associated costs and quantities. Bots use this to audit trading activity and calculate net performance in perpetual futures trading.
Fields§
§id: StringThe unique identifier for the transaction.
A unique ID assigned by Bybit to track the transaction. Bots use this to correlate transactions with other data, such as orders or executions.
symbol: StringThe trading pair symbol (e.g., “BTCUSDT”).
Identifies the perpetual futures contract or asset involved in the transaction. Bots use this to filter transactions by market.
side: StringThe trade side (“Buy” or “Sell”).
Indicates whether the transaction was a buy or sell action. Bots use this to track position direction and calculate net exposure.
funding: Option<String>The funding fee (optional).
The funding fee applied to the transaction, if applicable, in the settlement currency. Bots use this to calculate funding costs for perpetual futures positions.
order_link_id: Option<String>The user-defined order link ID (optional).
A custom identifier for the order, if set by the bot. Bots use this to track specific orders across transactions.
order_id: StringThe unique order ID.
The Bybit-assigned ID for the order associated with the transaction. Bots use this to correlate transactions with specific orders.
fee: f64The transaction fee.
The fee charged for the transaction, in the settlement currency. Bots use this to calculate trading costs and optimize fee-efficient strategies.
change: StringThe balance change caused by the transaction.
The net change in account balance due to the transaction, as a string (e.g., “+100.50” or “-50.25”). Bots use this to track account balance updates.
cash_flow: f64The cash flow of the transaction.
The net cash flow (positive or negative) resulting from the transaction, in the settlement currency. Bots use this to calculate liquidity impacts.
transaction_time: StringThe timestamp of the transaction.
The time when the transaction occurred, as a string (e.g., “2025-05-19T13:07:00Z”). Bots use this to align transactions with market events.
type_field: StringThe type of transaction (e.g., “TRADE”, “FUNDING”).
Specifies the nature of the transaction, such as trade execution or funding fee. Bots use this to categorize transactions for analysis.
fee_rate: StringThe fee rate applied to the transaction.
The fee rate (e.g., “0.00075” for 0.075%) applied to the transaction. Bots use this to verify fee calculations and optimize trading costs.
bonus_change: Option<String>The bonus change, if any (optional).
Any bonus or promotional balance changes applied to the transaction, in the settlement currency. Bots use this to account for special incentives.
size: f64The position size affected by the transaction.
The size of the position involved in the transaction, in base asset units. Bots use this to track position changes and calculate exposure.
qty: f64The quantity traded in the transaction.
The amount of the base asset traded, in base asset units. Bots use this to verify trade execution details.
cash_balance: f64The resulting cash balance after the transaction.
The account’s cash balance after the transaction, in the settlement currency. Bots use this to monitor available funds for trading.
currency: StringThe currency of the transaction (e.g., “USDT”).
The settlement currency used for the transaction. Bots use this to ensure correct currency handling in multi-currency accounts.
category: StringThe product category (e.g., “linear”).
The instrument type of the transaction, such as linear for USDT-margined perpetuals. Bots use this to filter transactions by contract type.
trade_price: StringThe trade price.
The price at which the trade was executed, as a string (e.g., “50000.00”). Bots use this to verify execution prices and calculate P&L.
trade_id: StringThe unique trade ID.
A unique identifier for the trade execution associated with the transaction. Bots use this to track specific trade events.
Trait Implementations§
Source§impl Clone for TransactionLogEntry
impl Clone for TransactionLogEntry
Source§fn clone(&self) -> TransactionLogEntry
fn clone(&self) -> TransactionLogEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more