Skip to main content

Tables

Positions_FeePaid_event

Fee payment records from CAP Protocol v4 perpetual futures positions on Arbitrum, breaking down total fees into pool, treasury, keeper, and staking components for each trade or liquidation. Used for analyzing fee distribution across market participants and protocol revenue streams.
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
111801000xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa390x0d05cac6cc857eccb89919ac38a69c779631aa5ffalse0xff970a61a04b1ca14834a43f5de4533ebddb5cc8ARB-USD9610444248438154758050559005371738326552732023-11-28T01:22:31.000Zfalse0x27654485f3f222b03ffc018bc959f9c0e946bc9581656c942d862aa6f5409818
12765620xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa390x8524dd01937fc9ed964a9c2fe6c38f19a51d31a7false0xff970a61a04b1ca14834a43f5de4533ebddb5cc8BTC-USD1961087485093154961451638284244563031832023-11-28T16:10:34.000Zfalse0x13fe02033b84474b6f5669ad013c5bc65f19d66cb1876f015ef085ffc5e051ea
12765620xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa390x8524dd01937fc9ed964a9c2fe6c38f19a51d31a7false0xff970a61a04b1ca14834a43f5de4533ebddb5cc8BTC-USD1220485093155008936638284244563031832023-11-28T19:42:27.000Ztrue0xf90d50c1d1f5fddf6fff0f155210b2b8c1ed8c158bc4c4b77ff753cc1239cf86
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v4_arbitrum.Positions_FeePaid_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

Positions_PositionDecreased_event

Position decrease events from CAP v4 perpetual futures protocol on Arbitrum. Records trade closures and partial exits with profit/loss, fees, margin adjustments, and funding payments for tracking trader performance.
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
2100000-847730880xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa3930000000000xe87a10d5b212d169ccbc9a50cf5e23dd3da27cb6false0xff970a61a04b1ca14834a43f5de4533ebddb5cc82296451258740000000000true750000000ETH-USD-8478064552079520000014683241750031813108182024-01-28T09:48:55.000Z398000000022331171486608641480190x2bc817ecffc6ee17923bf4981abb63976bd3ac9f44798a8b91880796d18a690d744844673249800912710995000000
3500000-1212892940xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa3950000000000xe87a10d5b212d169ccbc9a50cf5e23dd3da27cb6false0xff970a61a04b1ca14834a43f5de4533ebddb5cc82287603516290000000000true1250000000ETH-USD-1213001069405601000008683211749456067069202024-01-28T05:44:32.000Z698000000022331171486608641480190x956bd76c88ce9bb0f7a392cbb931ff30386d86beb7854b6a32dc2a4a3f4b73f97438086100284844877711745000000
1400000-360089330xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa3920000000000xe87a10d5b212d169ccbc9a50cf5e23dd3da27cb6false0xff970a61a04b1ca14834a43f5de4533ebddb5cc82273815000000000000000true500000000ETH-USD-360103733573200000008683301751025384404322024-01-28T16:45:10.000Z198000000022331171486608641480190x9a2c2de5bd71c805d4966459b74eb81b84ebb2b21f2dea217bb857c80f6c3272747046837693962287332495000000
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v4_arbitrum.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 Arbitrum. Records trades with size, margin, price execution, and funding tracker data for analyzing leverage trading activity and position sizing 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_feeaddressin_sizein_userremovedin_assetin_pricein_isLongin_marginin_marketlog_indexin_orderIdblock_numberblock_timestampin_positionSizein_positionPricetransaction_hashin_fundingTrackerin_positionMargin
99450000000000000xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa3919890000000000000000x3ddae0946d70d2bb87085c211eb173acddb7317ffalse0x00000000000000000000000000000000000000001574900000000true99500000000000000PEPE-USD17403421061096862023-06-29T12:11:41.000Z198900000000000000015749000000000x4399a5d328d8871a9f6622be07892de9faf6ad77a7fb06d6b8af786bdc65146c15558427729790412621699500000000000000
100000000000000000xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa3920000000000000000000x948aa7dfca47d0d699eb90c9da6aa0373c56c9cdfalse0x00000000000000000000000000000000000000001599900000000false100000000000000000PEPE-USD8403521061228672023-06-29T13:06:26.000Z200000000000000000015999000000000x30d416c6ec9f403a5e8142b66c9c94f7220bd69d86dcd8fc73049829505b40cd155584277297904126216100000000000000000
26379500000000000xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa395275900000000000000x402220adc7c10190e13acdbe12582515b0011230false0x00000000000000000000000000000000000000001571200000000false33000000000000000PEPE-USD8403691061440922023-06-29T14:34:40.000Z52759000000000000015712000000000xdc4d2e5ba8f6d30980d0ece71d0263379d89d394178ead8a8be58cdefb8f853e15638336405589499379533000000000000000
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v4_arbitrum.Positions_PositionIncreased_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

PositionsV2_FeePaid_event

Fee payment events from CAP Protocol V4 perpetual futures positions on Arbitrum, breaking down total fees into pool, staking, treasury, and keeper components. Used for analyzing fee distribution and protocol revenue across different markets (ETH-USD, BTC-USD, ARB-USD).
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
9250000xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa390x01ffcc7285866e5cee14c8e807cb2e8d5f61079ffalse0xff970a61a04b1ca14834a43f5de4533ebddb5cc8ETH-USD16268894509378842007823125901873607502023-05-08T01:45:46.000Zfalse0x927fde2a9f9fda2636673590f54cf764d0235d40260df6da8112a6f829d369e6
20000000xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa390x24d197db5f5963084c85b4dca98e4acaae83bf16false0xff970a61a04b1ca14834a43f5de4533ebddb5cc8ETH-USD92689397500088420627500001950007800002023-05-08T01:48:04.000Zfalse0x4619c6ee99b01cd1be82e98c7594803fd20860f9d5044d775a1d79bafc84701b
23532150xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa390x1645521a6df217605d9949aafb84927018868cdffalse0xff970a61a04b1ca14834a43f5de4533ebddb5cc8BTC-USD1126887114719288419907588302294389177532023-05-08T01:45:04.000Zfalse0xcdc80d313a86ef6e85bcad38eaff8ae47d6856f6d3bf39c1ad2e90b85dfc5fff
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v4_arbitrum.PositionsV2_FeePaid_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

PositionsV2_PositionDecreased_event

Position reduction and closure events from CAP v4 perpetual futures protocol on Arbitrum. Tracks realized profit/loss, fees, margin changes, and funding payments when traders decrease or exit leveraged positions across crypto markets.
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
50000000000000031106531370585200xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa3910000000000000000000x01ffcc7285866e5cee14c8e807cb2e8d5f61079ffalse0x00000000000000000000000000000000000000001897120000000000000000true249385968860263920ETH-USD5895855424581587757726647880908932710383799183312023-05-07T02:19:37.000Z1000000000000000000019025224307702052991020x253796e9f53d22a1bb69a24c0e27a32aed74b4fa5268c71ed9cffdf7bdbf1c1b2436307365747479647452493859688602639205
2000000000000000-4756898725908070xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa3910000000000000000000x01ffcc7285866e5cee14c8e807cb2e8d5f61079ffalse0x0000000000000000000000000000000000000000324891808250000000000true250000000000000000BNB-USD-9143948575876787551626758882905651141552511415522023-05-07T16:14:26.000Z03247002853700000000000xe9600f4689c0220249798e12ef39ed8660e25d498c0efa79c16b40a98f181470-1097199393611314331430
23864500000000000020121105315500736640xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa394772900000000000000000x09cc15dda77789d42c0133c909e88fb6e3af793afalse0x00000000000000000000000000000000000000001914690000000000000000false10606400000000000000ETH-USD3855162934618261205278926714882617672673494483064103422023-05-07T14:14:42.000Z019055892135800000000000xcdc264a57cab563cf83787ae12925a3df1e221e43314a6e2a178c09fafede1222473775632392929019450
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v4_arbitrum.PositionsV2_PositionDecreased_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

PositionsV2_PositionIncreased_event

Position increase events from CAP perpetual futures protocol on Arbitrum, tracking when traders add size to existing positions or open new ones. Contains execution details including size added, entry price, margin posted, fees, and funding tracker for analyzing position building patterns and leverage usage.
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
20000000xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa3940000000000x948aa7dfca47d0d699eb90c9da6aa0373c56c9cdfalse0xff970a61a04b1ca14834a43f5de4533ebddb5cc81916070000000000000000false129032300ETH-USD926625880775562023-05-07T01:23:21.000Z3200000000018899907879446874999990xdd6b7ecd97d402bed9eb77903aec34646a03b50cc15d2536cac608be84679de0-326228881967923983263091048525
25000000xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa3950000000000x9131d344038e3f731e1272a0d8c7e195de06a718false0xff970a61a04b1ca14834a43f5de4533ebddb5cc81910182500000000000000false200000000ETH-USD926789883698972023-05-07T21:59:36.000Z500000000019101825000000000000000x1e61c906fbde16f40d4243049330c98f40d0c00aa64f3c4421c09620181f3d48-38062856065301293164200000000
36846350xf7d5e17b430bf1e8b55b3675e5c216e6abc4fa3973692700000x6b2d6564452b01f6994d2b9163bd371273b5e9a5false0xff970a61a04b1ca14834a43f5de4533ebddb5cc81902145774920000000000false147385400ETH-USD926672881376612023-05-07T05:37:54.000Z736927000019021457749200000000000xbb6d158f05b770c34a95c971272f7116fe85581c222a04bbb50ac0cc6a2f4568-34060068266171014189147385400
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v4_arbitrum.PositionsV2_PositionIncreased_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

PositionsV3_FeePaid_event

Fee payment events from CAP Protocol V3 perpetual positions on Arbitrum, showing total fee breakdown into pool, staking, treasury, and keeper components for each order execution or liquidation. Used for analyzing protocol revenue distribution and trading costs across markets.
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
75000000x09df8c3b7b2f4a60208012e0d0b25352fa5f00d70x97eda3c9f1e4c7ef743b552ab687aa49fca804c0false0xff970a61a04b1ca14834a43f5de4533ebddb5cc8ARB-USD92571536562508741325918750073125029250002023-05-05T03:01:55.000Zfalse0x665e40f69c412cc16a8e979cd03ca74ae93c6b6ae082cc71eeb165b590015e48
625000000x09df8c3b7b2f4a60208012e0d0b25352fa5f00d70x84a9165bbc73baaf09017a9f132630ced8723485false0xff970a61a04b1ca14834a43f5de4533ebddb5cc8ARB-USD1025730304687508742340115625006093750243750002023-05-05T03:45:39.000Zfalse0x9976bdc5410e3dc60d9100b233fdf3aa52bd3b102d0faad0026c18d4db5aecf1
625000000x09df8c3b7b2f4a60208012e0d0b25352fa5f00d70x84a9165bbc73baaf09017a9f132630ced8723485false0xff970a61a04b1ca14834a43f5de4533ebddb5cc8ARB-USD825728304687508742232215625006093750243750002023-05-05T03:40:57.000Zfalse0x92586b9e6983fe091a5a62c161dd53fad98108416eb4aee55ffb1f32e850f33e
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v4_arbitrum.PositionsV3_FeePaid_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

PositionsV3_PositionDecreased_event

Position closure events from CAP Protocol v3 perpetual futures on Arbitrum, capturing realized PnL, fees, and final position state when traders reduce or exit positions. Used for analyzing trading performance, fee generation, and position lifecycle tracking across SUI-USD and other perpetual markets.
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
6250000449739650x09df8c3b7b2f4a60208012e0d0b25352fa5f00d725000000000x57067c10baa7ab532c9f520e03e99645b12298f3false0xff970a61a04b1ca14834a43f5de4533ebddb5cc81400338500000000000false125000000SUI-USD449694676035000000009251768703024802023-05-04T00:02:24.000Z013755921660000000000x4a96be9bf6dcf2ff59af3414571d0df3d8221bb4174d19a71444e879130058ca27236665747218089360
1250000000000000512027441119509600x09df8c3b7b2f4a60208012e0d0b25352fa5f00d75000000000000000000x6f8adc605edf0da9f3970d12405e8e47e9ac7454false0x00000000000000000000000000000000000000001483704890000000000false29251700680272109SUI-USD97378247667284162505232519987037806285388127853882023-05-04T00:34:04.000Z013458097680230723730x0c47df986fdac53e9883fa195fcbde44f5dc608ac3e0642d931c361322402bc332479245174309027950
2500000138722360x09df8c3b7b2f4a60208012e0d0b25352fa5f00d710000000000x57067c10baa7ab532c9f520e03e99645b12298f3false0xff970a61a04b1ca14834a43f5de4533ebddb5cc81502124200000000000false50000000SUI-USD1387084877640000000022252028703882002023-05-04T00:38:32.000Z014815714900000000000x51e790000608f47a5ca86f4d2d6a6ec2ff33703a93453fa70cfd3e2fe51ea89632944428304295714930
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v4_arbitrum.PositionsV3_PositionDecreased_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

PositionsV3_PositionIncreased_event

Position increase events from Cap Protocol V3 perpetual futures on Arbitrum, capturing new or expanded positions with entry price, size, margin, and funding tracker data. Used for analyzing trader behavior, position sizing patterns, and market directional exposure across crypto assets like ETH-USD and FLOKI-USD.
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
105000000x09df8c3b7b2f4a60208012e0d0b25352fa5f00d730000000000x701386193b756f4931f68881f536724a808cdcbafalse0xff970a61a04b1ca14834a43f5de4533ebddb5cc837326600000000false150000000FLOKI-USD1021993846736862023-04-27T01:34:37.000Z3000000000373266000000000x65d33df9c8959c0498c37f20d51f85fc6e4714d9c43e53eaad58537f3889d61924265108607594262036150000000
2660400x09df8c3b7b2f4a60208012e0d0b25352fa5f00d75320800000x1161d38bae997334717ae9329790cb0fcdf38618false0xff970a61a04b1ca14834a43f5de4533ebddb5cc81924300000000000000000false76011400ETH-USD922504849349482023-04-27T19:46:07.000Z53208000019243000000000000000000x57151d1883af7c6b9b126b231c94aa5ade407ebff0fa884137844027369e27d3-1848035361746842285576011400
70540000x09df8c3b7b2f4a60208012e0d0b25352fa5f00d7141080000000x8d2a995f34ed5b0f475159da50dc39ff3b6707f0false0xff970a61a04b1ca14834a43f5de4533ebddb5cc81932291999990000000000false282160000ETH-USD1522421849200352023-04-27T18:43:37.000Z1410800000019322919999900000000000xe1ecaa01bf2a882db1f7f3e081b033bbe269305b26e925bcd93d72b25b0ec3c0-18817987143561345621282160000
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v4_arbitrum.PositionsV3_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 Arbitrum. Records forced position closures with liquidation price, position size, margin amounts in USD, and directional data (long/short) for analyzing leverage risk and liquidation cascades across BTC-USD, ETH-USD, and other perpetual markets.
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_marginUsdSTRINGPosition margin value denominated in USD at the time of liquidation. Represented as a string with 18 decimal places of precision (e.g., “162186116000000000000” = ~162.19 USD).
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
21855700000000000xda813cc90041c9951ac7593252ba5a4ab70c14be43711400000000000000x88c21e961503061ecc51db6bd09c01d5dacce427false0x000000000000000000000000000000000000000027992484435050000000000false89200000000000000BTC-USD13714878561621861160000000000002023-03-19T16:37:33.000Z0xfb6688e937e2d59a76e137113ad597c24024ac659fd34350c74e59ca8f94ed54
13759500000000000xda813cc90041c9951ac7593252ba5a4ab70c14be27519000000000000000xcdbc0f810414fc48aaefc9e959de0af878319cd5false0x00000000000000000000000000000000000000001821819764000000000000false56200000000000000ETH-USD93714869971017478520000000000002023-03-19T16:34:04.000Z0x87755e4c5ea4ebdc97fd3eda23dcd4e8df9b855bc382256efd1f85b35f805e7c
7476550xda813cc90041c9951ac7593252ba5a4ab70c14be14953100000xa7cc8da2a472612aeb25218a4fb9d995fa3472a6false0xff970a61a04b1ca14834a43f5de4533ebddb5cc81809476495890000000000false29906200ETH-USD1071483423298964990268440000002023-03-19T16:19:18.000Z0x13204a4f29873e533289547bfc7892f54fc28d4e93bf5cca5cac39ce64bc25ac
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v4_arbitrum.Processor_PositionLiquidated_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

Rewards_RewardClaimed_event

Reward claim events from CAP v4 protocol on Arbitrum, recording when users claim accrued rewards with token address and claimed amount. Useful for tracking reward distribution patterns and user claim behavior across the protocol.
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_tokenSTRINGToken address involved in the transaction or operation. Hex-encoded, 0x-prefixed, 42-character string.
in_amountSTRINGInput amount for the swap, transaction, or operation. Numeric string representation of token quantity in smallest denomination.
addressin_userremovedin_tokenin_amountlog_indexblock_numberblock_timestamptransaction_hash
0x858cdc40c5e09100b70c9652ec7581a2360d1a610xc8d272c3a3a7f5ca3be9c9b1e6b1dfe445e89248false0x912ce59144191c1204e64559fe8253a0e49e6548481366124900216204912030239062024-04-20T16:09:17.000Z0x37aa99cff36d0f2b64c4ea7f9cbe255914b31e5c5547b4c2327e1d9d5331b363
0x858cdc40c5e09100b70c9652ec7581a2360d1a610xa07ef06b52941a680096dcc4d835895d83c12a89false0x912ce59144191c1204e64559fe8253a0e49e6548881136592793397005711077218172023-07-04T07:41:43.000Z0xc788897dd90fbc8e85d46f35abac786c154ffb8107da3cb7208e50b5c3a33934
0x858cdc40c5e09100b70c9652ec7581a2360d1a610x87e2014ace92c43b08f0749a530e5b3f4ffec9dcfalse0x912ce59144191c1204e64559fe8253a0e49e654835561569121366844145211076356442023-07-04T01:33:35.000Z0xc7883af965fd8c9f791870dac52f82b4fa2cc095393a5a1886cc75db3adbe9a6
Query with partition filter
SELECT *
FROM `tt-contracts.cap_v4_arbitrum.Rewards_RewardClaimed_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100