Skip to main content

Tables

Trading_ClosePosition_event

Position closure events from Cap Protocol v3 perpetual futures on Arbitrum, including PnL, fees, liquidation status, and product identifiers (ETH-USD, BTC-USD). Used for tracking trader performance and liquidation analysis.
ColumnTypeDescription
block_timestampTIMESTAMPTimestamp when the block was produced. UTC timezone, millisecond precision.
block_numberINT64Sequential identifier for the block in which the event or transaction was recorded. Integer value indicating the block’s position in the blockchain.
transaction_hashSTRINGUnique identifier for the transaction. 66-character hex string including 0x prefix.
log_indexINT64Position of the event within the block’s transaction logs. Zero-indexed integer representing the sequential order of log emission.
addressSTRINGContract address that emitted the event. Hex-encoded, 0x-prefixed, 42-character string.
removedBOOLBoolean flag indicating whether the event log was removed from the blockchain due to a chain reorganization.
in_keySTRINGUnique identifier for a specific position, swap pool, or contract state. 66-character hex string including 0x prefix.
in_userSTRINGAddress of the user account associated with the transaction or protocol operation. Hex-encoded, 0x-prefixed, 42-character string.
in_productIdSTRINGIdentifier for the financial product or trading pair involved in the transaction. Numeric string representation of the product ID in the protocol’s internal indexing system.
in_currencySTRINGContract address of the currency token used in the transaction or operation. Hex-encoded, 0x-prefixed, 42-character string.
in_isLongBOOLBoolean flag indicating whether the position is long or short. True represents a long position (betting on price increase), false represents a short position (betting on price decrease).
in_priceSTRINGPrice of the asset or position in the transaction or event. Numeric string representation in smallest denomination or with extended precision.
in_marginSTRINGMargin amount posted or held for the trading position. String-encoded integer value representing collateral in the smallest unit of the relevant token or currency.
in_sizeSTRINGSize of the position in the derivative contract. String-encoded integer value representing the position magnitude in the smallest unit of the relevant asset or USD-denominated value.
in_feeSTRINGFee amount charged for the transaction or operation. String-encoded integer value representing the fee in the smallest unit of the relevant token or currency.
in_pnlSTRINGProfit and loss realized from closing the position. String-encoded integer value representing the net gain or loss in the smallest unit of the relevant token or currency, where negative values indicate losses and positive values indicate profits.
in_wasLiquidatedBOOLBoolean flag indicating whether the position was liquidated. True when the position was forcibly closed due to insufficient margin, false when voluntarily closed by the user.
in_feein_keyin_pnladdressin_sizein_userremovedin_pricein_isLongin_marginlog_indexin_currencyblock_numberin_productIdblock_timestampin_wasLiquidatedtransaction_hash
00xe18fc0406a25c83b9ab57ee57cdd2957c39949aea6527a82258549cb30ab1887-351040xbed32937d8a5d1421241f52809908f1a17d75bdb10000000xb680a49875b3a47ed2fe621ab3a126b0244af3cbfalse177221094200false1428571240x0000000000000000000000000000000000000000199070660x4554482d555344000000000000000000000000000000000000000000000000002022-08-10T12:33:19.000Zfalse0xbcec88c096a35af6471c329fa6afddadad4dd1e52c3fb0ffc4eff669ce72f858
00x19a2daa35f3bdbb87f65db9b5368c37c6c11b1608dfa70f89eac29fdc2ea6d1c-294100xbed32937d8a5d1421241f52809908f1a17d75bdb100000000x79a5eb64b936446eab7c8a128aa1d033651e17fafalse185850050902false20000020x0000000000000000000000000000000000000000199452140x4554482d555344000000000000000000000000000000000000000000000000002022-08-10T21:40:20.000Zfalse0x0041f3bfd33459abfa54174884c2dbe1daca56f265942bbcbeac3f69b9a59c5e
00xbaa150f2aaddc470a68291ea472cef58635edf33d21d55a581e1a3475c942ed679870xbed32937d8a5d1421241f52809908f1a17d75bdb100000000x66fde45e27195818eea327daada35adad9e6bd2cfalse2396321530671false20000000x0000000000000000000000000000000000000000199282210x4254432d555344000000000000000000000000000000000000000000000000002022-08-10T16:39:19.000Zfalse0x179284412389b8fc28987fcfd2fdd627aee2a585ba0035c74fdd404cfa81c091
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v3_arbitrum.Trading_ClosePosition_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

Trading_PositionUpdated_event

Position update events from Cap Finance V3 perpetual futures protocol on Arbitrum, capturing margin, size, and direction changes for leveraged positions across trading pairs like ETH-USD. Used for analyzing trader behavior, position sizing, and leverage patterns.
ColumnTypeDescription
block_timestampTIMESTAMPTimestamp when the block was produced. UTC timezone, millisecond precision.
block_numberINT64Sequential identifier for the block in which the event or transaction was recorded. Integer value indicating the block’s position in the blockchain.
transaction_hashSTRINGUnique identifier for the transaction. 66-character hex string including 0x prefix.
log_indexINT64Position of the event within the block’s transaction logs. Zero-indexed integer representing the sequential order of log emission.
addressSTRINGContract address that emitted the event. Hex-encoded, 0x-prefixed, 42-character string.
removedBOOLBoolean flag indicating whether the event log was removed from the blockchain due to a chain reorganization.
in_keySTRINGUnique identifier for a specific position, swap pool, or contract state. 66-character hex string including 0x prefix.
in_userSTRINGAddress of the user account associated with the transaction or protocol operation. Hex-encoded, 0x-prefixed, 42-character string.
in_productIdSTRINGIdentifier for the financial product or trading pair involved in the transaction. Numeric string representation of the product ID in the protocol’s internal indexing system.
in_currencySTRINGContract address of the currency token used in the transaction or operation. Hex-encoded, 0x-prefixed, 42-character string.
in_isLongBOOLBoolean flag indicating whether the position is long or short. True represents a long position (betting on price increase), false represents a short position (betting on price decrease).
in_marginSTRINGMargin amount posted or held for the trading position. String-encoded integer value representing collateral in the smallest unit of the relevant token or currency.
in_sizeSTRINGSize of the position in the derivative contract. String-encoded integer value representing the position magnitude in the smallest unit of the relevant asset or USD-denominated value.
in_priceSTRINGPrice of the asset or position in the transaction or event. Numeric string representation in smallest denomination or with extended precision.
in_feeSTRINGFee amount charged for the transaction or operation. String-encoded integer value representing the fee in the smallest unit of the relevant token or currency.
in_feein_keyaddressin_sizein_userremovedin_pricein_isLongin_marginlog_indexin_currencyblock_numberin_productIdblock_timestamptransaction_hash
00x77b39c41bbef3fa6604badfc37689b08085a9e1c90d32d89d2ea436f16e9906f0xbed32937d8a5d1421241f52809908f1a17d75bdb2000000000x16099dd4a4201a67c9b4916a4fb4322973507d8efalse292656350372true400000000x000000000000000000000000000000000000000071580200x4554482d555344000000000000000000000000000000000000000000000000002022-03-01T08:19:18.000Z0xad58ba3cc8188291c9f62d79b034e69f3f618a2a67eeea4541de3d84ad1a3963
00xa31d0abdbbe712d5fd8e69fe38fe485a1750500258514bc0b651a405d3076b290xbed32937d8a5d1421241f52809908f1a17d75bdb10000000000x19f72b0354799dabc9903b0b8d524f3b41851410false295172632406true10000000000x000000000000000000000000000000000000000071994380x4554482d555344000000000000000000000000000000000000000000000000002022-03-01T21:17:53.000Z0x41d71ed4dbed5bdd5a429a3f5359ab992ae75cb4cc40beb11ab039f4e8cb4c74
00xa31d0abdbbe712d5fd8e69fe38fe485a1750500258514bc0b651a405d3076b290xbed32937d8a5d1421241f52809908f1a17d75bdb10000000000x19f72b0354799dabc9903b0b8d524f3b41851410false295190636921true10000000000x000000000000000000000000000000000000000072011090x4554482d555344000000000000000000000000000000000000000000000000002022-03-01T21:47:18.000Z0xc3d5534cbee7e68aa718d3617a430ea8160a33c864b276977ef4effd3a042c8f
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v3_arbitrum.Trading_PositionUpdated_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100