Interface: AdvTradeGlobalTransactionLog
Properties
| Property | Type | Description |
|---|---|---|
amount? | number | Order size. Use base-coin units for spot, options, and linear instruments, including linear perpetuals; use USD for inverse futures and inverse perpetuals. |
balance | number | Cash balance after the transaction |
block_rfq_id? | number | ID of the Block RFQ - when trade was part of the Block RFQ |
cashflow | number | For futures and perpetual contracts: Realized session PNL (since last settlement). For options: the amount paid or received for the options traded. |
change | number | Change in cash balance. For trades: fees and options premium paid/received. For settlement: Futures session PNL and perpetual session funding. |
commission | number | Commission paid so far (in base currency) |
contracts? | number | It represents the order size in contract units. (Optional, may be absent in historical data). |
currency | string | Currency, i.e "BTC", "ETH", "USDC" |
equity? | number | Updated equity value after the transaction |
fee_role? | AdvTradeGlobalFeeRole | Fee role of the user: maker or taker. Can be different from trade role of the user when iceberg order was involved in matching. |
id | number | Unique identifier |
index_price? | number | The index price for the instrument during the delivery |
info? | object | Additional information regarding transaction. Strongly dependent on the log entry type |
instrument_name? | string | Unique instrument identifier |
interest_pl? | number | Funding PnL amount for the interval between this log entry and the previous trade or position change on perpetual instruments |
ip? | string | The IP address from which the trade was initiated |
mark_price? | number | Market price during the trade |
order_id? | string | Unique order identifier |
position? | number | Updated position size after the transaction |
price? | number | Settlement/delivery price or the price level of the traded contracts |
price_currency? | string | Currency symbol associated with the price field value |
profit_as_cashflow? | boolean | Indicator informing whether the cashflow is waiting for settlement or not |
role? | "source" | "destination" | For LSP transfer, ADL transfer and liquidation transfer entries, indicates which side of the position move this entry represents: source (the liquidated account) or destination (the account receiving the position, e.g. an LSP participant) |
session_rpl? | number | Realized profit and loss accrued in the current trading session (since the last daily settlement). Resets at each daily settlement. |
session_upl? | number | Unrealized profit and loss on open positions in the current trading session (since the last daily settlement). |
settlement_price? | number | The settlement price for the instrument during the delivery |
side? | string | One of: short or long in case of settlements, close sell or close buy in case of deliveries, open sell, open buy, close sell, close buy in case of trades |
starbase_match_id? | number | Starbase match id for trade entries executed in Starbase |
starbase_order_id? | number | Raw Starbase order id for trade entries associated with orders placed in Starbase |
starbase_timestamp? | number | Starbase causal timestamp for trade entries executed in Starbase |
timestamp | number | The timestamp (milliseconds since the Unix epoch) |
total_interest_pl? | number | Total funding PnL accrued in the current trading session since the last daily settlement at 08:00 UTC, in the settlement currency. Resets at each daily settlement. |
trade_id? | string | Unique (per currency) trade identifier |
type | string | Transaction category/type. The most common are: trade, deposit, withdrawal, settlement, delivery, transfer, swap, correction, expiry, LSP transfer, LSP commission, ADL transfer, ADL commission. New types can be added any time in the future |
user_id | number | Unique user identifier |
user_role? | AdvTradeGlobalRole | Trade role of the user: maker or taker |
user_seq | number | Sequential identifier of user transaction |
username? | string | System name or user defined subaccount alias |