Skip to main content

Tables

Positions_FeePaid_event

Fee payment records from CAP v4 perpetual futures protocol on Base, capturing total fees and breakdowns across keeper, pool, staking, and treasury components for position orders and liquidations.
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_orderIdSTRINGUnique identifier for the order within the protocol. String-encoded value used to track and reference specific orders across operations.
in_userSTRINGAddress of the user account associated with the transaction or protocol operation. Hex-encoded, 0x-prefixed, 42-character string.
in_assetSTRINGContract address of the asset or token. Hex-encoded, 0x-prefixed, 42-character string.
in_marketSTRINGTrading pair or market identifier specifying the assets being traded or operated on.
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_poolFeeSTRINGFee amount allocated to the liquidity pool. String-encoded integer value representing the fee in the smallest unit of the relevant token or currency.
in_stakingFeeSTRINGFee amount allocated to staking rewards or staking pool participants. String-encoded integer value representing the fee in the smallest unit of the relevant token or currency.
in_treasuryFeeSTRINGFee amount allocated to the protocol treasury. String-encoded integer value representing the fee in the smallest unit of the relevant token or currency.
in_keeperFeeSTRINGFee paid to the keeper for executing the transaction or operation. String-encoded integer value representing the fee in the smallest unit of the relevant token or currency.
in_isLiquidationBOOLBoolean flag indicating whether the fee payment was associated with a liquidation event.
in_feeaddressin_userremovedin_assetin_marketlog_indexin_orderIdin_poolFeeblock_numberin_keeperFeein_stakingFeein_treasuryFeeblock_timestampin_isLiquidationtransaction_hash
1540000000000000xa9130f365710bd1cbcdebe83e308039260c02f090x077f7a7b115c989d07f8d8efb16a2c2747b4270dfalse0x0000000000000000000000000000000000000000ETH-USD624873150000000006418652770000000000073150000000001316700000000002023-11-10T14:30:51.000Zfalse0x79e050052b22484b9c4c7f830f8a4578ef73534bb745f1843ce8706716817979
1540000000000000xa9130f365710bd1cbcdebe83e308039260c02f090x077f7a7b115c989d07f8d8efb16a2c2747b4270dfalse0x0000000000000000000000000000000000000000ETH-USD524973150000000006421554770000000000073150000000001316700000000002023-11-10T16:07:35.000Zfalse0xed729049f226250ab9d9758f73cfed9bec7e357bc58210c5280d1eeb3d9543c2
1750000000000000xa9130f365710bd1cbcdebe83e308039260c02f090x1496294adcc04f835994d5c80901c7d98061cf16false0x0000000000000000000000000000000000000000ETH-USD524483125000000006396530875000000000083125000000001496250000000002023-11-10T02:13:27.000Zfalse0x7f3e4663d2a64af1a5996f1c774252cf6188d9a0b377c036bcdde099cfd007c8
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v4_base.Positions_FeePaid_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

Positions_PositionDecreased_event

Position reduction events from CAP v4 perpetual futures protocol on Base, capturing partial or full position closes with realized PnL, fees, and remaining position state for analyzing trader exits and profit-taking 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_orderIdSTRINGUnique identifier for the order within the protocol. String-encoded value used to track and reference specific orders across operations.
in_userSTRINGAddress of the user account associated with the transaction or protocol operation. Hex-encoded, 0x-prefixed, 42-character string.
in_assetSTRINGContract address of the asset or token. Hex-encoded, 0x-prefixed, 42-character string.
in_marketSTRINGTrading pair or market identifier specifying the assets being traded or operated on.
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_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_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_priceSTRINGPrice of the asset or position in the transaction or event. Numeric string representation in smallest denomination or with extended precision.
in_positionMarginSTRINGTotal margin held for the position after the event. String-encoded integer value representing the cumulative collateral backing the position in the smallest unit of the relevant token or currency.
in_positionSizeSTRINGTotal size of the trading position after the event. String-encoded integer value representing the position magnitude in the smallest unit of the relevant asset or USD-denominated value.
in_positionPriceSTRINGAverage entry price of the trading position after the event. String-encoded integer value representing the weighted average price per unit of the position.
in_fundingTrackerSTRINGCumulative funding rate tracker at the time of the position event. String-encoded integer value used to calculate funding fee accruals for perpetual futures positions.
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_pnlUsdSTRINGProfit and loss realized from closing the position denominated in USD. String-encoded integer value with 18 decimal places representing the net gain or loss in USD, where negative values indicate losses and positive values indicate profits.
in_fundingFeeSTRINGFunding fee charged for holding a perpetual futures position. String-encoded integer value representing the periodic payment in the smallest unit of the relevant token or currency.
in_feein_pnladdressin_sizein_userremovedin_assetin_pricein_isLongin_marginin_marketin_pnlUsdlog_indexin_orderIdblock_numberin_fundingFeeblock_timestampin_positionSizein_positionPricetransaction_hashin_fundingTrackerin_positionMargin
2800000000000000-1233205552108730xa9130f365710bd1cbcdebe83e308039260c02f0940000000000000000000x6f133b985501dbc3a697fb5244924b57c5ac8c72false0x00000000000000000000000000000000000000002295212771880000000000false80000000000000000ETH-USD03347900168702024-01-09T09:32:01.000Z022952835357900000000000x8fa9b542003ad62f39e78f263d64ac15bc26a20680436d00abf3e72f47a0ef734815368101140778181010
3500000000000021232037031416100xa9130f365710bd1cbcdebe83e308039260c02f09500000000000000000x7242eae4a7b72d60d55019234c39a6a138b12ddbfalse0x00000000000000000000000000000000000000002430995002490000000000false48611111111111111ETH-USD033951028526502024-02-08T02:37:57.000Z30000000000000000023319700534288888888870x3510608ddee932644fe11f958e7a98495f831aa9a0e5343475140e8091cf9613764413522442844941381291666666666666668
3500000000000021397209765702990xa9130f365710bd1cbcdebe83e308039260c02f09500000000000000000x7242eae4a7b72d60d55019234c39a6a138b12ddbfalse0x00000000000000000000000000000000000000002431765358230000000000false48611111111111111ETH-USD033941028524002024-02-08T02:37:07.000Z35000000000000000023319700534288888888870x1e68211542e2242a8b0e24647052d25972a3ff7c6d543f5a2db645ed50f10f4a764413522442844941381340277777777777779
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v4_base.Positions_PositionDecreased_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

Positions_PositionIncreased_event

Position increase events from CAP v4 perpetual futures protocol on Base, recording when traders add size or margin to existing positions. Contains execution price, position size, margin posted, funding tracker state, and fee data for analyzing leverage trading patterns and position management behavior.
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_orderIdSTRINGUnique identifier for the order within the protocol. String-encoded value used to track and reference specific orders across operations.
in_userSTRINGAddress of the user account associated with the transaction or protocol operation. Hex-encoded, 0x-prefixed, 42-character string.
in_assetSTRINGContract address of the asset or token. Hex-encoded, 0x-prefixed, 42-character string.
in_marketSTRINGTrading pair or market identifier specifying the assets being traded or operated on.
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_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_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_priceSTRINGPrice of the asset or position in the transaction or event. Numeric string representation in smallest denomination or with extended precision.
in_positionMarginSTRINGTotal margin held for the position after the event. String-encoded integer value representing the cumulative collateral backing the position in the smallest unit of the relevant token or currency.
in_positionSizeSTRINGTotal size of the trading position after the event. String-encoded integer value representing the position magnitude in the smallest unit of the relevant asset or USD-denominated value.
in_positionPriceSTRINGAverage entry price of the trading position after the event. String-encoded integer value representing the weighted average price per unit of the position.
in_fundingTrackerSTRINGCumulative funding rate tracker at the time of the position event. String-encoded integer value used to calculate funding fee accruals for perpetual futures positions.
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_feeaddressin_sizein_userremovedin_assetin_pricein_isLongin_marginin_marketlog_indexin_orderIdblock_numberblock_timestampin_positionSizein_positionPricetransaction_hashin_fundingTrackerin_positionMargin
70000000000000xa9130f365710bd1cbcdebe83e308039260c02f09100000000000000000x32628392acfd81597e284ddad6c30b5f3e53284cfalse0x00000000000000000000000000000000000000001683210294350000000000true200000000000000ETH-USD73227831222023-08-18T10:46:31.000Z1000000000000000016832102943500000000000x9750bce975dd7f115cde8519f6ff41007e6e148051e0ed09ef6f05bbb5a5183217180365296803652968200000000000000
7000000000000000xa9130f365710bd1cbcdebe83e308039260c02f0910000000000000000000x5ae6f18a18b6ffc279cd5fddbab2271c0055dd77false0x00000000000000000000000000000000000000001805500000000000000000false20000000000000000ETH-USD721660800332023-11-02T18:23:33.000Z100000000000000000018055000000000000000000x683771f459fa1bf69d781e3575f0a10ba593379616fdf7a19d8c80d101d8251722704869938563484817120000000000000000
93870000000000xa9130f365710bd1cbcdebe83e308039260c02f09134100000000000000xfe1fb05931a2ef49d021194ed4be86de71a1c514false0x00000000000000000000000000000000000000001648680000000000000000true1000000000000000ETH-USD83831997632023-08-28T02:14:33.000Z1341000000000000016486800000000000000000x8ccbf0b472b435391bbadf9f22955530386645bc07faa71c19c1bc86ac1d31191094748858447488584471000000000000000
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v4_base.Positions_PositionIncreased_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

Processor_PositionLiquidated_event

Position liquidation events from CAP v4 perpetual futures protocol on Base. Records forced position closures with liquidation price, remaining margin, position size, and fees for tracking liquidation cascades and protocol risk events.
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_userSTRINGAddress of the user account associated with the transaction or protocol operation. Hex-encoded, 0x-prefixed, 42-character string.
in_assetSTRINGContract address of the asset or token. Hex-encoded, 0x-prefixed, 42-character string.
in_marketSTRINGTrading pair or market identifier specifying the assets being traded or operated on.
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_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_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_marginUsdSTRINGMargin amount denominated in USD for the liquidated position, represented as a string-encoded integer in the smallest unit. Typically zero in this dataset, indicating margin is tracked in the native asset rather than USD terms.
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_feeaddressin_sizein_userremovedin_assetin_pricein_isLongin_marginin_marketlog_indexblock_numberin_marginUsdblock_timestamptransaction_hash
2925020000000000xa420e7faf14e33f6b7df4d843ca3af2e7b29d5d74178600000000000000x1496294adcc04f835994d5c80901c7d98061cf16false0x00000000000000000000000000000000000000002078322317260000000000true8400000000000000ETH-USD7641454302023-11-10T12:13:53.000Z0xbd0356fad401b6a9090f5e58a5fd133a36e62c5889c263a203671dbcad903fe8
4954110000000000xa420e7faf14e33f6b7df4d843ca3af2e7b29d5d77077300000000000000x5ae6f18a18b6ffc279cd5fddbab2271c0055dd77false0x00000000000000000000000000000000000000001867110000000000000000false14200000000000000ETH-USD8617488602023-11-04T23:05:19.000Z0xe0c04b88cb9b33ac6b867458584a9a0cc55526ac6c20eb610336c83ac9b6841c
3500000000000000xa420e7faf14e33f6b7df4d843ca3af2e7b29d5d75000000000000000000x22b5629ce137d9b714fd22fbaf19ccbf5f04e58efalse0x00000000000000000000000000000000000000001526798801940000000000true50000000000000000ETH-USD66516932502023-10-12T16:26:37.000Z0x719bca13ed41c6591e01cb739ae6f49e84304c0860fe8b32267fea510f150e3f
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v4_base.Processor_PositionLiquidated_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100