Skip to main content

Tables

PikaPerp_AddMargin_event

Margin addition events emitted when traders increase collateral on existing perpetual futures positions in Pika Protocol. Contains position identifier, added margin amount, new total margin, and recalculated leverage after the operation.
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_positionIdSTRINGUnique identifier for the trading position. String-encoded integer representing the position’s hash or ID in the protocol.
in_userSTRINGAddress of the user account associated with the transaction or protocol operation. Hex-encoded, 0x-prefixed, 42-character string.
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_newMarginSTRINGTotal margin balance for the position after adding the additional collateral. String-encoded integer value representing the sum of previous and newly added margin in the smallest unit of the relevant token.
in_newLeverageSTRINGUpdated leverage ratio for the position after adding margin. String-encoded integer representing the leverage multiplier with a fixed-point decimal scaling factor.
addressin_userremovedin_marginlog_indexblock_numberin_newMarginin_positionIdin_newLeverageblock_timestamptransaction_hash
0x2fae8c7edd26213ca1a88fc57b65352dbe3536980x0867613beeb5501c30e7a25ea88982c212f18871false464000000002133884229640000000010298893153952232925850649001163764354441040436859505673794404110158840398803215560165972022-06-28T13:54:55.000Z0x4f8345bfd965bd01c1b55fe82dc0f0258e21b16c4522efa6a224fb5cc6b749ae
0x2fae8c7edd26213ca1a88fc57b65352dbe3536980x46caceee602eaa35f12c0a33dd2ad99ef4a0ef2dfalse500000000027289923100000000008508323920159759134390709001258965673905087767617933953608183200305392926015515000000002022-05-07T11:19:26.000Z0x1bf18067b4bace134184a9042d55c521da32495af8bddd090e424b9a8e7e349a
0x2fae8c7edd26213ca1a88fc57b65352dbe3536980xcd5d8a3ecb1780316e653dfe00f8b0335fd8ece1false1000000000027311688882426058805081979640537752975221443032199993617978598036840394509556715887024368707321773352112022-05-07T19:32:48.000Z0xe297deb239a4830e8a9bdcd199325e9609e0e4e69782a78004a8506a84957848
Query with partition filter
SELECT *
FROM `tt-contracts.pika_v2_optimism.PikaPerp_AddMargin_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

PikaPerp_ClosePosition_event

Position closure events from Pika Protocol perpetual futures contracts containing realized PNL (profit and loss), fees, margin, leverage, entry and exit prices, and liquidation status. Used for tracking trading outcomes and settlement calculations in perpetual swap analytics.
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_positionIdSTRINGUnique identifier for the trading position. String-encoded integer representing the position’s hash or ID in the protocol.
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_priceSTRINGPrice of the asset or position in the transaction or event. Numeric string representation in smallest denomination or with extended precision.
in_entryPriceSTRINGPrice at which the trading position was entered. String-encoded numeric value representing the entry price in the 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_leverageSTRINGLeverage multiplier applied to the trading position. String-encoded numeric value representing the multiple of the margin amount used to determine position size.
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_pnladdressin_userremovedin_pricein_marginlog_indexin_leverageblock_numberin_productIdin_entryPricein_positionIdblock_timestampin_wasLiquidatedtransaction_hash
982572200x2fae8c7edd26213ca1a88fc57b65352dbe3536980x0a5abc4eef196994abb9cd34fa8fe9229ce53e4ffalse263413283707980604000011000000003775627126224733349076390143974770249064941843697877501715493997155485866276547874357621904581782022-02-23T04:10:00.000Zfalse0x3feaff12261ffd533d56d702f8eaf5abad5139f5ee880e19cf17116029197082
5012347-4097140x2fae8c7edd26213ca1a88fc57b65352dbe3536980x0b5939e11c765e4d3d9ce7e2ec8bd397337f9701false2713204516115011990000110000000037822791271342633018674764081342059206276273941164043117092432145386402405717350460896508310448702022-02-23T10:25:54.000Zfalse0xcf57648e7ed6d7603162299bed283d8e77fed57a0b9d55007dfd469b1aa1766c
500415300x2fae8c7edd26213ca1a88fc57b65352dbe3536980x0b5939e11c765e4d3d9ce7e2ec8bd397337f9701false2718806861925001560000110000000037823281271342633018674764081342059206276273941164043117092432145386402405717350460896508310448702022-02-23T10:28:33.000Zfalse0x02b70a091a8d895339cf44ac4e74c0960cc7d82d76861c7347902e90d5a2c003
Query with partition filter
SELECT *
FROM `tt-contracts.pika_v2_optimism.PikaPerp_ClosePosition_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

PikaPerp_NewPosition_event

Perpetual futures position opening events from Pika Protocol containing user address, product identifier, margin amount, leverage multiplier, execution price, and fee charged. Records both long and short positions with oracle price reference and funding rate tracking for derivatives position lifecycle 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_positionIdSTRINGUnique identifier for the trading position. String-encoded integer representing the position’s hash or ID in the protocol.
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_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_oraclePriceSTRINGOracle price of the asset at the time of position creation. String-encoded integer value representing the price feed data used for settlement and liquidation calculations.
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_leverageSTRINGLeverage multiplier applied to the trading position. String-encoded numeric value representing the multiple of the margin amount used to determine position size.
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_userremovedin_pricein_isLongin_marginlog_indexin_leverageblock_numberin_productIdin_positionIdin_oraclePriceblock_timestamptransaction_hash
81000000000x2fae8c7edd26213ca1a88fc57b65352dbe3536980xa60be818f6e213ec535b5e0d0b271c40291320c4false688773908false2700000000002300000000051719124347195776917867325599616155920786401709304644546709607627190922410160065572686898000002022-04-01T05:37:52.000Z0x5303a204e6979a6ada4a09ec9a91349261b23d7eed189f7866bda582d47653c0
60000000000x2fae8c7edd26213ca1a88fc57b65352dbe3536980xe5621eb62ab4b6ceed2617021af183e17d57fd14false689512157false2000000000002300000000051647324491561402230504948227100521184264058676795142847483398254689771647539656679826902500002022-04-01T02:38:11.000Z0x666339cab28e597b924fbf53686f0b689fbc26a90b5af8a64ee59849e0758a48
81000000000x2fae8c7edd26213ca1a88fc57b65352dbe3536980xa60be818f6e213ec535b5e0d0b271c40291320c4false714825907false2700000000002300000000051961934347195776917867325599616155920786401709304644546709607627190922410160065572687161000002022-04-01T15:05:16.000Z0xe0c2da7e3420dd91ca798cae74f3aa5239fe89cb48bb1997b8dfc757c0d5a871
Query with partition filter
SELECT *
FROM `tt-contracts.pika_v2_optimism.PikaPerp_NewPosition_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

PikaPerp_PikaRewardDistributed_event

PIKA token reward distribution events from Pika Protocol v2 perpetual futures platform on Optimism. Records trader incentive payouts with recipient addresses and token amounts for analyzing platform reward mechanics and user incentivization.
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_toSTRINGDestination address receiving tokens or assets in the 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.
in_toaddressremovedin_amountlog_indexblock_numberblock_timestamptransaction_hash
0x6ced1c9e91820b8a3934773c6d80d635efe9f2e50x2fae8c7edd26213ca1a88fc57b65352dbe353698false11776131058662022-02-02T02:50:43.000Z0xfcd527d3fc781a6aceefd05084ee7d4887f560819b3714aee1b750751a86076b
Query with partition filter
SELECT *
FROM `tt-contracts.pika_v2_optimism.PikaPerp_PikaRewardDistributed_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

PikaPerp_PositionLiquidated_event

Perpetual position liquidation events from Pika Protocol containing position identifiers, liquidator addresses, and reward distribution amounts. Used for tracking forced position closures and liquidator profitability on Optimism.
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_positionIdSTRINGUnique identifier for the trading position. String-encoded integer representing the position’s hash or ID in the protocol.
in_liquidatorSTRINGAddress of the account executing the liquidation operation. Hex-encoded, 0x-prefixed, 42-character string.
in_liquidatorRewardSTRINGReward amount paid to the liquidator for executing the liquidation. String-encoded integer representing the token amount in smallest denomination.
in_remainingRewardSTRINGReward amount remaining after liquidator compensation in a position liquidation. String-encoded integer representing the token amount in smallest denomination.
addressremovedlog_indexblock_numberin_liquidatorin_positionIdblock_timestamptransaction_hashin_remainingRewardin_liquidatorReward
0x2fae8c7edd26213ca1a88fc57b65352dbe353698false157600160x0ee1bea664f0e888a54adab65c4a507e1e6e55f21115645894008367933701895995326152318272295134100684882917734665840103884309022022-04-13T12:55:01.000Z0x3c8f98174f7e7c056b2000f9f803ecd19ea04293b5a9494f4e192adc6c8ab8d1855622090855622089
0x2fae8c7edd26213ca1a88fc57b65352dbe353698false157436540x0ee1bea664f0e888a54adab65c4a507e1e6e55f21133623848206234630593668208384834191171885725686434656524601691648634701153692022-04-13T03:22:15.000Z0x7db063c8e043f01f394978a3376d94500adf223f640d9112704d107a05f84b8d7059087361770590873617
0x2fae8c7edd26213ca1a88fc57b65352dbe353698false157644760x0ee1bea664f0e888a54adab65c4a507e1e6e55f2551286517688593154125415098785472107851983850458866956279340832370883235638652022-04-13T14:19:05.000Z0xde666ed9f6e82a0c64113dfa33e00bb3a19df8e5e51427465a233b1ab2a0da8f1658123818116581238181
Query with partition filter
SELECT *
FROM `tt-contracts.pika_v2_optimism.PikaPerp_PositionLiquidated_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

PikaPerp_ProtocolRewardDistributed_event

Protocol reward distribution events from Pika Protocol v2 perpetual exchange on Optimism, tracking fee rebates or incentive payments to recipients. Useful for analyzing protocol revenue sharing and user reward programs.
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_toSTRINGDestination address receiving tokens or assets in the 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.
in_toaddressremovedin_amountlog_indexblock_numberblock_timestamptransaction_hash
0x6ced1c9e91820b8a3934773c6d80d635efe9f2e50x2fae8c7edd26213ca1a88fc57b65352dbe353698false19978504134141422702022-03-05T08:16:15.000Z0x22655a13f31a237802b5bc6bf941b0b04251152a15411fe64462072a38d68d80
0x6ced1c9e91820b8a3934773c6d80d635efe9f2e50x2fae8c7edd26213ca1a88fc57b65352dbe353698false73322442853188402602022-05-23T13:28:59.000Z0xec78e7e5047694b230e0e624f4bd0876a23f0549eebf0839087844f44aa34c5a
0x6ced1c9e91820b8a3934773c6d80d635efe9f2e50x2fae8c7edd26213ca1a88fc57b65352dbe353698false7617463451154448362022-07-23T04:33:00.000Z0x136cc58546106acf6e913429ba36b2e6f9ec9286bb0c3afc545a3801896b09c2
Query with partition filter
SELECT *
FROM `tt-contracts.pika_v2_optimism.PikaPerp_ProtocolRewardDistributed_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

PikaPerp_Redeemed_event

Liquidity provider share redemption events from Pika Protocol perpetual contracts. Records user withdrawals from vault pools including shares burned, amount received, and remaining share balance for tracking LP position changes.
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_amountSTRINGInput amount for the swap, transaction, or operation. Numeric string representation of token quantity in smallest denomination.
in_sharesSTRINGNumber of shares involved in the deposit or withdrawal transaction. String-encoded integer representing the share quantity in the protocol’s accounting system.
in_shareBalanceSTRINGUser’s total share balance before the redemption transaction. Numeric string representation of share quantity in the protocol’s accounting system.
in_isFullRedeemBOOLBoolean flag indicating whether the user is redeeming their entire share balance. True when the redemption amount equals the user’s total shares.
addressin_userremovedin_amountin_shareslog_indexblock_numberblock_timestampin_isFullRedeemin_shareBalancetransaction_hash
0x2fae8c7edd26213ca1a88fc57b65352dbe3536980x84f734c6c6fe7bb628e0ff04ff0a5776b8d68f9ffalse40003761952904044231124072462023-11-19T17:01:09.000Zfalse3438000000x16de0610f6793157e3994069a5928fbba9f2fe429cde6588d41344c1038ed55a
0x2fae8c7edd26213ca1a88fc57b65352dbe3536980x07d095ff9fcf13e086ab6d44309733e95daa28c3false3000076403888524831555909922022-12-26T14:49:43.000Zfalse2589000000x58ca55e8e6848fd0d527c38421c2aa650da0d6080345863e734024415775f300
0x2fae8c7edd26213ca1a88fc57b65352dbe3536980xb6b7222416ed330a8f0ed0ddd4c27a06eb7e34bafalse259220000027011904951554383212022-12-26T09:35:10.000Ztrue17984666430xaeaacfcd4bc76b67a21463c6c9324fa8dc73b6f1b279d769f65d34c48b7fa977
Query with partition filter
SELECT *
FROM `tt-contracts.pika_v2_optimism.PikaPerp_Redeemed_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100

PikaPerp_VaultRewardDistributed_event

Vault reward distribution events from Pika Protocol v2 perpetual futures on Optimism, recording reward payouts to recipients with amounts and timestamps. Used for tracking vault incentive distributions and liquidity provider rewards.
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_toSTRINGDestination address receiving tokens or assets in the 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.
in_toaddressremovedin_amountlog_indexblock_numberblock_timestamptransaction_hash
0x58488bb666d2da33f8e8938dbdd582d2481d41830x2fae8c7edd26213ca1a88fc57b65352dbe353698false37777251184661042022-05-17T12:55:49.000Z0x49309480f99eca96321245e8275923a3f732bf8ff748ed9324d00906d6a6e9e2
0x58488bb666d2da33f8e8938dbdd582d2481d41830x2fae8c7edd26213ca1a88fc57b65352dbe353698false9445256184589132022-05-17T10:09:18.000Z0xd3a904f5c8809715d97e7fd25b88e187c1940d2061d51ed968349685dc0cc290
0x58488bb666d2da33f8e8938dbdd582d2481d41830x2fae8c7edd26213ca1a88fc57b65352dbe353698false797910184593052022-05-17T10:20:46.000Z0xea90f672c8e5170835d6088124620c2edb73e68b5d76e39ebe0560a2d6a51195
Query with partition filter
SELECT *
FROM `tt-contracts.pika_v2_optimism.PikaPerp_VaultRewardDistributed_event`
WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
LIMIT 100