Drift Protocol v2 (Velocity) historical data as Parquet
Every Drift v2 instruction and event in Solana history, decoded with an Anchor IDL that we checked against real transactions. Trawl gives you 26 event tables and 249 instruction tables, with a column for each account, argument and field. Calls from other programs (CPI) are in the result too.
Updated
The preset
- Program ID
- dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH
- Preset
drift-v2- Tables
- 26 event tables and 249 instruction tables, and
part-*with the raw bytes of each match - Transactions
- Successful only. Failed transactions changed nothing on the chain, and they are about 9% of the output.
"include_failed": truekeeps them. - Price
- $5 for each TB scanned, minimum $10. The quote gives the price of your range
Drift paused the protocol on 1 Apr 2026 (epoch 949) and became Velocity in July 2026. Since its upgrade of 29 Jun 2026 (epoch 994) the program refuses every instruction, so a scan must start at epoch 994 or before. The IDL is v2.162.0, the last that lists the instructions.
The price is the same for every program: you pay for the archive the scan reads, not for the rows. Pricing.
# ask for a price: a 402 with the quote, no payment yet curl -X POST https://trawl.run/scan \ -H 'Content-Type: application/json' \ -d '{"preset":"drift-v2","start_epoch":940,"end_epoch":940}' -- then, in DuckDB, on the files of the job SELECT slot, signature, rebalanceConfig, inIfTotalSharesBefore, outIfTotalSharesBefore FROM 'ev-insurance_fund_swap_record-*.parquet' ORDER BY slot LIMIT 10;
Add "filter": {"accounts": ["<wallet>"]} to keep only the transactions
that touch one wallet. How a filter changes a preset.
Drift Protocol v2 (Velocity) program ID and IDL
The Anchor IDL below decodes every table on this page. We checked it against real transactions of the program. Use it to decode the program in your own code.
- Program ID
- dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH
- IDL
- idl.json, 225 KB: 249 instructions and 26 events
- Source
- GitHub
- SHA-256
- 2f9fdcb89f369b819dfe7971a9a37b134a7c8809f65c6fa8ec53d4a275dfd697
A job with this preset sends this file to the scan, so its provenance gives the same SHA-256.
Event tables
One table for each event in the IDL. Each row also has log_index and the context columns. An event
that the program writes two ways gives one row.
ev-new_user_recordts i64, userAuthority base58 string, user base58 string, subAccountId u16, name binary, referrer base58 stringev-deposit_recordts i64, userAuthority base58 string, user base58 string, direction variant name, depositRecordId u64, amount u64, marketIndex u16, oraclePrice i64, marketDepositBalance decimal string, marketWithdrawBalance decimal string, marketCumulativeDepositInterest decimal string, marketCumulativeBorrowInterest decimal string, totalDepositsAfter u64, totalWithdrawsAfter u64, explanation variant name, transferUser base58 string, signer base58 string, userTokenAmountAfter decimal stringev-spot_interest_recordts i64, marketIndex u16, depositBalance decimal string, cumulativeDepositInterest decimal string, borrowBalance decimal string, cumulativeBorrowInterest decimal string, optimalUtilization u32, optimalBorrowRate u32, maxBorrowRate u32ev-funding_payment_recordts i64, userAuthority base58 string, user base58 string, marketIndex u16, fundingPayment i64, baseAssetAmount i64, userLastCumulativeFunding i64, ammCumulativeFundingLong decimal string, ammCumulativeFundingShort decimal stringev-funding_rate_recordts i64, recordId u64, marketIndex u16, fundingRate i64, fundingRateLong decimal string, fundingRateShort decimal string, cumulativeFundingRateLong decimal string, cumulativeFundingRateShort decimal string, oraclePriceTwap i64, markPriceTwap u64, periodRevenue i64, baseAssetAmountWithAmm decimal string, baseAssetAmountWithUnsettledLp decimal stringev-curve_recordts i64, recordId u64, pegMultiplierBefore decimal string, baseAssetReserveBefore decimal string, quoteAssetReserveBefore decimal string, sqrtKBefore decimal string, pegMultiplierAfter decimal string, baseAssetReserveAfter decimal string, quoteAssetReserveAfter decimal string, sqrtKAfter decimal string, baseAssetAmountLong decimal string, baseAssetAmountShort decimal string, baseAssetAmountWithAmm decimal string, totalFee decimal string, totalFeeMinusDistributions decimal string, adjustmentCost decimal string, oraclePrice i64, fillRecord decimal string, numberOfUsers u32, marketIndex u16ev-signed_msg_order_recorduser base58 string, hash string, matchingOrderParams JSON string, userOrderId u32, signedMsgOrderMaxSlot u64, signedMsgOrderUuid binary, ts i64ev-order_recordts i64, user base58 string, order JSON stringev-order_action_recordts i64, action variant name, actionExplanation variant name, marketIndex u16, marketType variant name, filler base58 string, fillerReward u64, fillRecordId u64, baseAssetAmountFilled u64, quoteAssetAmountFilled u64, takerFee u64, makerFee i64, referrerReward u32, quoteAssetAmountSurplus i64, spotFulfillmentMethodFee u64, taker base58 string, takerOrderId u32, takerOrderDirection variant name, takerOrderBaseAssetAmount u64, takerOrderCumulativeBaseAssetAmountFilled u64, takerOrderCumulativeQuoteAssetAmountFilled u64, maker base58 string, makerOrderId u32, makerOrderDirection variant name, makerOrderBaseAssetAmount u64, makerOrderCumulativeBaseAssetAmountFilled u64, makerOrderCumulativeQuoteAssetAmountFilled u64, oraclePrice i64, bitFlags u8, takerExistingQuoteEntryAmount u64, takerExistingBaseAssetAmount u64, makerExistingQuoteEntryAmount u64, makerExistingBaseAssetAmount u64, triggerPrice u64, builderIdx u8, builderFee u64ev-l_p_recordts i64, user base58 string, action variant name, nShares u64, marketIndex u16, deltaBaseAssetAmount i64, deltaQuoteAssetAmount i64, pnl i64ev-liquidation_recordts i64, liquidationType variant name, user base58 string, liquidator base58 string, marginRequirement decimal string, totalCollateral decimal string, marginFreed u64, liquidationId u16, bankrupt bool, canceledOrderIds JSON string, liquidatePerp JSON string, liquidateSpot JSON string, liquidateBorrowForPerpPnl JSON string, liquidatePerpPnlForDeposit JSON string, perpBankruptcy JSON string, spotBankruptcy JSON string, bitFlags u8ev-settle_pnl_recordts i64, user base58 string, marketIndex u16, pnl decimal string, baseAssetAmount i64, quoteAssetAmountAfter i64, quoteEntryAmount i64, settlePrice i64, explanation variant nameev-insurance_fund_recordts i64, spotMarketIndex u16, perpMarketIndex u16, userIfFactor u32, totalIfFactor u32, vaultAmountBefore u64, insuranceVaultAmountBefore u64, totalIfSharesBefore decimal string, totalIfSharesAfter decimal string, amount i64ev-insurance_fund_stake_recordts i64, userAuthority base58 string, action variant name, amount u64, marketIndex u16, insuranceVaultAmountBefore u64, ifSharesBefore decimal string, userIfSharesBefore decimal string, totalIfSharesBefore decimal string, ifSharesAfter decimal string, userIfSharesAfter decimal string, totalIfSharesAfter decimal stringev-insurance_fund_swap_recordrebalanceConfig base58 string, inIfTotalSharesBefore decimal string, outIfTotalSharesBefore decimal string, inIfUserSharesBefore decimal string, outIfUserSharesBefore decimal string, inIfTotalSharesAfter decimal string, outIfTotalSharesAfter decimal string, inIfUserSharesAfter decimal string, outIfUserSharesAfter decimal string, ts i64, inAmount u64, outAmount u64, outOraclePrice u64, outOraclePriceTwap i64, inVaultAmountBefore u64, outVaultAmountBefore u64, inFundVaultAmountAfter u64, outFundVaultAmountAfter u64, inMarketIndex u16, outMarketIndex u16ev-transfer_protocol_if_shares_to_revenue_pool_recots i64, marketIndex u16, amount u64, shares decimal string, ifVaultAmountBefore u64, protocolSharesBefore decimal string, transferAmount u64ev-swap_recordts i64, user base58 string, amountOut u64, amountIn u64, outMarketIndex u16, inMarketIndex u16, outOraclePrice i64, inOraclePrice i64, field_fee u64ev-spot_market_vault_deposit_recordts i64, marketIndex u16, depositBalance decimal string, cumulativeDepositInterestBefore decimal string, cumulativeDepositInterestAfter decimal string, depositTokenAmountBefore u64, amount u64ev-delete_user_recordts i64, userAuthority base58 string, user base58 string, subAccountId u16, keeper base58 stringev-fuel_sweep_recordts i64, authority base58 string, userStatsFuelInsurance u32, userStatsFuelDeposits u32, userStatsFuelBorrows u32, userStatsFuelPositions u32, userStatsFuelTaker u32, userStatsFuelMaker u32, fuelOverflowFuelInsurance decimal string, fuelOverflowFuelDeposits decimal string, fuelOverflowFuelBorrows decimal string, fuelOverflowFuelPositions decimal string, fuelOverflowFuelTaker decimal string, fuelOverflowFuelMaker decimal stringev-fuel_season_recordts i64, authority base58 string, fuelInsurance decimal string, fuelDeposits decimal string, fuelBorrows decimal string, fuelPositions decimal string, fuelTaker decimal string, fuelMaker decimal string, fuelTotal decimal stringev-revenue_share_settle_recordts i64, builder base58 string, referrer base58 string, feeSettled u64, marketIndex u16, marketType variant name, builderSubAccountId u16, builderTotalReferrerRewards u64, builderTotalBuilderRewards u64ev-l_p_settle_recordrecordId u64, lastTs i64, lastSlot u64, ts i64, field_slot u64, perpMarketIndex u16, settleToLpAmount i64, perpAmmPnlDelta i64, perpAmmExFeeDelta i64, lpAum decimal string, lpPrice decimal string, lpPool base58 stringev-l_p_swap_recordts i64, field_slot u64, authority base58 string, outAmount decimal string, inAmount decimal string, outFee decimal string, inFee decimal string, outSpotMarketIndex u16, inSpotMarketIndex u16, outConstituentIndex u16, inConstituentIndex u16, outOraclePrice i64, inOraclePrice i64, lastAum decimal string, lastAumSlot u64, inMarketCurrentWeight i64, outMarketCurrentWeight i64, inMarketTargetWeight i64, outMarketTargetWeight i64, inSwapId u64, outSwapId u64, lpPool base58 stringev-l_p_mint_redeem_recordts i64, field_slot u64, authority base58 string, description u8, amount decimal string, field_fee decimal string, spotMarketIndex u16, constituentIndex u16, oraclePrice i64, mint base58 string, lpAmount u64, lpFee i64, lpPrice decimal string, mintRedeemId u64, lastAum decimal string, lastAumSlot u64, inMarketCurrentWeight i64, inMarketTargetWeight i64, lpPool base58 stringev-l_p_borrow_lend_deposit_recordts i64, field_slot u64, spotMarketIndex u16, constituentIndex u16, direction variant name, tokenBalance i64, lastTokenBalance i64, interestAccruedTokenAmount i64, amountDepositWithdraw u64, lpPool base58 stringInstruction tables
One table for each instruction in the IDL: the named accounts, then the arguments. Each row also has the context
columns: slot, block_time, tx_index, signature, success, fee, program_id, ix_index, is_inner, inner_index, stack_height, accounts. What each one
holds.
ix-initialize_useruser, userStats, state, authority, payer, rent, systemProgramargs:
subAccountId u16, name binaryix-initialize_user_statsuserStats, state, authority, payer, rent, systemProgramix-initialize_signed_msg_user_orderssignedMsgUserOrders, authority, payer, rent, systemProgramargs:
numOrders u16ix-resize_signed_msg_user_orderssignedMsgUserOrders, authority, user, payer, systemProgramargs:
numOrders u16ix-initialize_signed_msg_ws_delegatessignedMsgWsDelegates, authority, rent, systemProgramargs:
delegates JSON stringix-change_signed_msg_ws_delegate_statussignedMsgWsDelegates, authority, systemProgramargs:
delegate base58 string, add boolix-initialize_fuel_overflowfuelOverflow, userStats, authority, payer, rent, systemProgramix-sweep_fuelfuelOverflow, userStats, authority, signerix-reset_fuel_seasonuserStats, authority, state, adminix-initialize_referrer_namereferrerName, user, userStats, authority, payer, rent, systemProgramargs:
name binaryix-depositstate, user, userStats, authority, spotMarketVault, userTokenAccount, tokenProgramargs:
marketIndex u16, amount u64, reduceOnly boolix-withdrawstate, user, userStats, authority, spotMarketVault, driftSigner, userTokenAccount, tokenProgramargs:
marketIndex u16, amount u64, reduceOnly boolix-transfer_depositfromUser, toUser, userStats, authority, state, spotMarketVaultargs:
marketIndex u16, amount u64ix-transfer_poolsfromUser, toUser, userStats, authority, state, depositFromSpotMarketVault, depositToSpotMarketVault, borrowFromSpotMarketVault, borrowToSpotMarketVault, driftSignerargs:
depositFromMarketIndex u16, depositToMarketIndex u16, borrowFromMarketIndex u16, borrowToMarketIndex u16, depositAmount u64, borrowAmount u64ix-transfer_perp_positionfromUser, toUser, userStats, authority, stateargs:
marketIndex u16, amount i64ix-deposit_into_isolated_perp_positionstate, user, userStats, authority, spotMarketVault, userTokenAccount, tokenProgramargs:
spotMarketIndex u16, perpMarketIndex u16, amount u64ix-transfer_isolated_perp_position_deposituser, userStats, authority, state, spotMarketVaultargs:
spotMarketIndex u16, perpMarketIndex u16, amount i64ix-withdraw_from_isolated_perp_positionstate, user, userStats, authority, spotMarketVault, driftSigner, userTokenAccount, tokenProgramargs:
spotMarketIndex u16, perpMarketIndex u16, amount u64ix-place_perp_orderstate, user, authorityargs:
params JSON stringix-cancel_orderstate, user, authorityargs:
orderId u32ix-cancel_order_by_user_idstate, user, authorityargs:
userOrderId u8ix-cancel_ordersstate, user, authorityargs:
marketType variant name, marketIndex u16, direction variant nameix-cancel_orders_by_idsstate, user, authorityargs:
orderIds JSON stringix-modify_orderstate, user, authorityargs:
orderId u32, modifyOrderParams JSON stringix-modify_order_by_user_idstate, user, authorityargs:
userOrderId u8, modifyOrderParams JSON stringix-place_and_take_perp_orderstate, user, userStats, authorityargs:
params JSON string, successCondition u32ix-place_and_make_perp_orderstate, user, userStats, taker, takerStats, authorityargs:
params JSON string, takerOrderId u32ix-place_and_make_signed_msg_perp_orderstate, user, userStats, taker, takerStats, takerSignedMsgUserOrders, authorityargs:
params JSON string, signedMsgOrderUuid binaryix-place_signed_msg_taker_orderstate, user, userStats, signedMsgUserOrders, authority, ixSysvarargs:
signedMsgOrderParamsMessageBytes binary, isDelegateSigner boolix-place_spot_orderstate, user, authorityargs:
params JSON stringix-place_and_take_spot_orderstate, user, userStats, authorityargs:
params JSON string, fulfillmentType variant name, makerOrderId u32ix-place_and_make_spot_orderstate, user, userStats, taker, takerStats, authorityargs:
params JSON string, takerOrderId u32, fulfillmentType variant nameix-place_ordersstate, user, authorityargs:
params JSON stringix-place_scale_ordersstate, user, authorityargs:
params JSON stringix-begin_swapstate, user, userStats, authority, outSpotMarketVault, inSpotMarketVault, outTokenAccount, inTokenAccount, tokenProgram, driftSigner, instructionsargs:
inMarketIndex u16, outMarketIndex u16, amountIn u64ix-end_swapstate, user, userStats, authority, outSpotMarketVault, inSpotMarketVault, outTokenAccount, inTokenAccount, tokenProgram, driftSigner, instructionsargs:
inMarketIndex u16, outMarketIndex u16, limitPrice u64, reduceOnly variant nameix-update_user_nameuser, authorityargs:
subAccountId u16, name binaryix-update_user_custom_margin_ratiouser, authorityargs:
subAccountId u16, marginRatio u32ix-update_user_perp_position_custom_margin_ratiouser, authorityargs:
subAccountId u16, perpMarketIndex u16, marginRatio u16ix-update_user_margin_trading_enableduser, authorityargs:
subAccountId u16, marginTradingEnabled boolix-update_user_pool_iduser, authorityargs:
subAccountId u16, poolId u8ix-update_user_delegateuser, authorityargs:
subAccountId u16, delegate base58 stringix-update_user_reduce_onlyuser, authorityargs:
subAccountId u16, reduceOnly boolix-update_user_protected_maker_ordersstate, user, authority, protectedMakerModeConfigargs:
subAccountId u16, protectedMakerOrders boolix-delete_useruser, userStats, state, authorityix-force_delete_useruser, userStats, state, authority, keeper, driftSignerix-delete_signed_msg_user_orderssignedMsgUserOrders, state, authorityix-reclaim_rentuser, userStats, state, authority, rentix-enable_user_high_leverage_modestate, user, authority, highLeverageModeConfigargs:
subAccountId u16ix-fill_perp_orderstate, authority, filler, fillerStats, user, userStatsargs:
orderId u32, makerOrderId u32ix-revert_fillstate, authority, filler, fillerStatsix-fill_spot_orderstate, authority, filler, fillerStats, user, userStatsargs:
orderId u32, fulfillmentType variant name, makerOrderId u32ix-trigger_orderstate, authority, filler, userargs:
orderId u32ix-force_cancel_ordersstate, authority, filler, userix-update_user_idlestate, authority, filler, userix-log_user_balancesstate, authority, userix-disable_user_high_leverage_modestate, authority, user, highLeverageModeConfigargs:
disableMaintenance boolix-update_user_stats_referrer_statusstate, authority, userStatsix-admin_update_user_stats_paused_operationsadmin, state, userStatsargs:
pausedOperations u8ix-settle_pnlstate, user, authority, spotMarketVaultargs:
marketIndex u16ix-settle_multiple_pnlsstate, user, authority, spotMarketVaultargs:
marketIndexes JSON string, mode variant nameix-settle_funding_paymentstate, userix-settle_expired_marketadmin, state, perpMarketargs:
marketIndex u16ix-liquidate_perpstate, authority, liquidator, liquidatorStats, user, userStatsargs:
marketIndex u16, liquidatorMaxBaseAssetAmount u64, limitPrice u64ix-liquidate_perp_with_fillstate, authority, liquidator, liquidatorStats, user, userStatsargs:
marketIndex u16ix-liquidate_spotstate, authority, liquidator, liquidatorStats, user, userStatsargs:
assetMarketIndex u16, liabilityMarketIndex u16, liquidatorMaxLiabilityTransfer decimal string, limitPrice u64ix-liquidate_spot_with_swap_beginstate, authority, liquidator, liquidatorStats, user, userStats, liabilitySpotMarketVault, assetSpotMarketVault, liabilityTokenAccount, assetTokenAccount, tokenProgram, driftSigner, instructionsargs:
assetMarketIndex u16, liabilityMarketIndex u16, swapAmount u64ix-liquidate_spot_with_swap_endstate, authority, liquidator, liquidatorStats, user, userStats, liabilitySpotMarketVault, assetSpotMarketVault, liabilityTokenAccount, assetTokenAccount, tokenProgram, driftSigner, instructionsargs:
assetMarketIndex u16, liabilityMarketIndex u16ix-liquidate_borrow_for_perp_pnlstate, authority, liquidator, liquidatorStats, user, userStatsargs:
perpMarketIndex u16, spotMarketIndex u16, liquidatorMaxLiabilityTransfer decimal string, limitPrice u64ix-liquidate_perp_pnl_for_depositstate, authority, liquidator, liquidatorStats, user, userStatsargs:
perpMarketIndex u16, spotMarketIndex u16, liquidatorMaxPnlTransfer decimal string, limitPrice u64ix-set_user_status_to_being_liquidatedstate, user, authorityix-resolve_perp_pnl_deficitstate, authority, spotMarketVault, insuranceFundVault, driftSigner, tokenProgramargs:
spotMarketIndex u16, perpMarketIndex u16ix-resolve_perp_bankruptcystate, authority, liquidator, liquidatorStats, user, userStats, spotMarketVault, insuranceFundVault, driftSigner, tokenProgramargs:
quoteSpotMarketIndex u16, marketIndex u16ix-resolve_spot_bankruptcystate, authority, liquidator, liquidatorStats, user, userStats, spotMarketVault, insuranceFundVault, driftSigner, tokenProgramargs:
marketIndex u16ix-settle_revenue_to_insurance_fundstate, spotMarket, spotMarketVault, driftSigner, insuranceFundVault, tokenProgramargs:
spotMarketIndex u16ix-update_funding_ratestate, perpMarket, oracleargs:
marketIndex u16ix-update_prelaunch_oraclestate, perpMarket, oracleix-update_perp_bid_ask_twapstate, perpMarket, oracle, keeperStats, authorityix-update_spot_market_cumulative_intereststate, spotMarket, oracle, spotMarketVaultix-update_ammsstate, authorityargs:
marketIndexes JSON stringix-update_spot_market_expiryadmin, state, spotMarketargs:
expiryTs i64ix-update_user_quote_asset_insurance_stakestate, spotMarket, insuranceFundStake, userStats, signer, insuranceFundVaultix-update_user_gov_token_insurance_stakestate, spotMarket, insuranceFundStake, userStats, signer, insuranceFundVaultix-update_delegate_user_gov_token_insurance_stakespotMarket, insuranceFundStake, userStats, admin, insuranceFundVault, stateix-initialize_insurance_fund_stakespotMarket, insuranceFundStake, userStats, state, authority, payer, rent, systemProgramargs:
marketIndex u16ix-add_insurance_fund_stakestate, spotMarket, insuranceFundStake, userStats, authority, spotMarketVault, insuranceFundVault, driftSigner, userTokenAccount, tokenProgramargs:
marketIndex u16, amount u64ix-request_remove_insurance_fund_stakespotMarket, insuranceFundStake, userStats, authority, insuranceFundVaultargs:
marketIndex u16, amount u64ix-cancel_request_remove_insurance_fund_stakespotMarket, insuranceFundStake, userStats, authority, insuranceFundVaultargs:
marketIndex u16ix-remove_insurance_fund_stakestate, spotMarket, insuranceFundStake, userStats, authority, insuranceFundVault, driftSigner, userTokenAccount, tokenProgramargs:
marketIndex u16ix-begin_insurance_fund_swapstate, authority, outInsuranceFundVault, inInsuranceFundVault, outTokenAccount, inTokenAccount, ifRebalanceConfig, tokenProgram, driftSigner, instructionsargs:
inMarketIndex u16, outMarketIndex u16, amountIn u64ix-end_insurance_fund_swapstate, authority, outInsuranceFundVault, inInsuranceFundVault, outTokenAccount, inTokenAccount, ifRebalanceConfig, tokenProgram, driftSigner, instructionsargs:
inMarketIndex u16, outMarketIndex u16ix-transfer_protocol_if_shares_to_revenue_poolstate, authority, insuranceFundVault, spotMarketVault, ifRebalanceConfig, tokenProgram, driftSignerargs:
marketIndex u16, amount u64ix-admin_withdraw_from_insurance_fund_vaultstate, authority, spotMarket, insuranceFundVault, recipientTokenAccount, tokenProgram, driftSignerargs:
marketIndex u16, amount u64ix-deposit_into_insurance_fund_stakesigner, state, spotMarket, insuranceFundStake, userStats, spotMarketVault, insuranceFundVault, userTokenAccount, tokenProgram, driftSignerargs:
marketIndex u16, amount u64ix-update_pyth_pull_oraclekeeper, pythSolanaReceiver, encodedVaa, priceFeedargs:
feedId binary, params binaryix-post_pyth_pull_oracle_update_atomickeeper, pythSolanaReceiver, guardianSet, priceFeedargs:
feedId binary, params binaryix-post_multi_pyth_pull_oracle_updates_atomickeeper, pythSolanaReceiver, guardianSetargs:
params binaryix-pause_spot_market_deposit_withdrawstate, keeper, spotMarket, spotMarketVaultix-initializeadmin, state, quoteAssetMint, driftSigner, rent, systemProgram, tokenProgramix-initialize_spot_marketspotMarket, spotMarketMint, spotMarketVault, insuranceFundVault, driftSigner, state, oracle, admin, rent, systemProgram, tokenProgramargs:
optimalUtilization u32, optimalBorrowRate u32, maxBorrowRate u32, oracleSource variant name, initialAssetWeight u32, maintenanceAssetWeight u32, initialLiabilityWeight u32, maintenanceLiabilityWeight u32, imfFactor u32, liquidatorFee u32, ifLiquidationFee u32, activeStatus bool, assetTier variant name, scaleInitialAssetWeightStart u64, withdrawGuardThreshold u64, orderTickSize u64, orderStepSize u64, ifTotalFactor u32, name binaryix-delete_initialized_spot_marketadmin, state, spotMarket, spotMarketVault, insuranceFundVault, driftSigner, tokenProgramargs:
marketIndex u16ix-initialize_serum_fulfillment_configbaseSpotMarket, quoteSpotMarket, state, serumProgram, serumMarket, serumOpenOrders, driftSigner, serumFulfillmentConfig, admin, rent, systemProgramargs:
marketIndex u16ix-update_serum_fulfillment_config_statusstate, serumFulfillmentConfig, adminargs:
status variant nameix-delete_serum_fulfillment_configstate, serumFulfillmentConfig, adminix-initialize_openbook_v2_fulfillment_configbaseSpotMarket, quoteSpotMarket, state, openbookV2Program, openbookV2Market, driftSigner, openbookV2FulfillmentConfig, admin, rent, systemProgramargs:
marketIndex u16ix-openbook_v2_fulfillment_config_statusstate, openbookV2FulfillmentConfig, adminargs:
status variant nameix-delete_openbook_v2_fulfillment_configstate, openbookV2FulfillmentConfig, adminix-initialize_phoenix_fulfillment_configbaseSpotMarket, quoteSpotMarket, state, phoenixProgram, phoenixMarket, driftSigner, phoenixFulfillmentConfig, admin, rent, systemProgramargs:
marketIndex u16ix-phoenix_fulfillment_config_statusstate, phoenixFulfillmentConfig, adminargs:
status variant nameix-initialize_perp_marketadmin, state, perpMarket, oracle, rent, systemProgramargs:
marketIndex u16, ammBaseAssetReserve decimal string, ammQuoteAssetReserve decimal string, ammPeriodicity i64, ammPegMultiplier decimal string, oracleSource variant name, contractTier variant name, marginRatioInitial u32, marginRatioMaintenance u32, liquidatorFee u32, ifLiquidationFee u32, imfFactor u32, activeStatus bool, baseSpread u32, maxSpread u32, maxOpenInterest decimal string, maxRevenueWithdrawPerPeriod u64, quoteMaxInsurance u64, orderStepSize u64, orderTickSize u64, minOrderSize u64, concentrationCoefScale decimal string, curveUpdateIntensity u8, ammJitIntensity u8, name binary, lpPoolId u8ix-initialize_amm_cacheadmin, state, ammCache, rent, systemProgramix-add_market_to_amm_cacheadmin, state, ammCache, perpMarket, rent, systemProgramix-delete_amm_cacheadmin, state, ammCacheix-update_initial_amm_cache_infostate, admin, ammCacheix-initialize_prediction_marketadmin, state, perpMarketix-delete_initialized_perp_marketadmin, state, perpMarketargs:
marketIndex u16ix-move_amm_priceadmin, state, perpMarketargs:
baseAssetReserve decimal string, quoteAssetReserve decimal string, sqrtK decimal stringix-recenter_perp_market_ammadmin, state, perpMarketargs:
pegMultiplier decimal string, sqrtK decimal stringix-recenter_perp_market_amm_crankadmin, state, perpMarket, spotMarket, oracleargs:
depth decimal stringix-update_perp_market_amm_summary_statsadmin, state, perpMarket, spotMarket, oracleargs:
params JSON stringix-update_perp_market_expiryadmin, state, perpMarketargs:
expiryTs i64ix-update_perp_market_lp_pool_paused_operationsadmin, state, perpMarketargs:
lpPausedOperations u8ix-update_perp_market_lp_pool_statusadmin, state, perpMarket, ammCacheargs:
lpStatus u8ix-update_perp_market_lp_pool_fee_transfer_scalaradmin, state, perpMarketargs:
optionalLpFeeTransferScalar u8, optionalLpNetPnlTransferScalar u8ix-settle_expired_market_pools_to_revenue_poolstate, admin, spotMarket, perpMarketix-deposit_into_perp_market_fee_poolstate, perpMarket, admin, sourceVault, driftSigner, quoteSpotMarket, spotMarketVault, tokenProgramargs:
amount u64ix-update_perp_market_pnl_poolstate, admin, spotMarket, spotMarketVault, perpMarketargs:
amount u64ix-deposit_into_spot_market_vaultstate, spotMarket, admin, sourceVault, spotMarketVault, tokenProgramargs:
amount u64ix-deposit_into_spot_market_revenue_poolstate, spotMarket, authority, spotMarketVault, userTokenAccount, tokenProgramargs:
amount u64ix-repeg_amm_curvestate, perpMarket, oracle, adminargs:
newPegCandidate decimal stringix-update_perp_market_amm_oracle_twapstate, perpMarket, oracle, adminix-reset_perp_market_amm_oracle_twapstate, perpMarket, oracle, adminix-update_kadmin, state, perpMarket, oracleargs:
sqrtK decimal stringix-update_perp_market_margin_ratioadmin, state, perpMarketargs:
marginRatioInitial u32, marginRatioMaintenance u32ix-update_perp_market_high_leverage_margin_ratioadmin, state, perpMarketargs:
marginRatioInitial u16, marginRatioMaintenance u16ix-update_perp_market_funding_periodadmin, state, perpMarketargs:
fundingPeriod i64ix-update_perp_market_max_imbalancesadmin, state, perpMarketargs:
unrealizedMaxImbalance u64, maxRevenueWithdrawPerPeriod u64, quoteMaxInsurance u64ix-update_perp_market_liquidation_feeadmin, state, perpMarketargs:
liquidatorFee u32, ifLiquidationFee u32ix-update_perp_market_lp_pool_idadmin, state, perpMarketargs:
lpPoolId u8ix-update_insurance_fund_unstaking_periodadmin, state, spotMarketargs:
insuranceFundUnstakingPeriod i64ix-update_spot_market_pool_idadmin, state, spotMarketargs:
poolId u8ix-update_spot_market_liquidation_feeadmin, state, spotMarketargs:
liquidatorFee u32, ifLiquidationFee u32ix-update_withdraw_guard_thresholdadmin, state, spotMarketargs:
withdrawGuardThreshold u64ix-update_spot_market_if_factoradmin, state, spotMarketargs:
spotMarketIndex u16, userIfFactor u32, totalIfFactor u32ix-update_spot_market_revenue_settle_periodadmin, state, spotMarketargs:
revenueSettlePeriod i64ix-update_spot_market_statusadmin, state, spotMarketargs:
status variant nameix-update_spot_market_paused_operationsadmin, state, spotMarketargs:
pausedOperations u8ix-update_spot_market_asset_tieradmin, state, spotMarketargs:
assetTier variant nameix-update_spot_market_margin_weightsadmin, state, spotMarketargs:
initialAssetWeight u32, maintenanceAssetWeight u32, initialLiabilityWeight u32, maintenanceLiabilityWeight u32, imfFactor u32ix-update_spot_market_borrow_rateadmin, state, spotMarketargs:
optimalUtilization u32, optimalBorrowRate u32, maxBorrowRate u32, minBorrowRate u8ix-update_spot_market_max_token_depositsadmin, state, spotMarketargs:
maxTokenDeposits u64ix-update_spot_market_max_token_borrowsadmin, state, spotMarketargs:
maxTokenBorrowsFraction u16ix-update_spot_market_scale_initial_asset_weight_stadmin, state, spotMarketargs:
scaleInitialAssetWeightStart u64ix-update_spot_market_oracleadmin, state, spotMarket, oracle, oldOracleargs:
arg_oracle base58 string, oracleSource variant name, skipInvariantCheck boolix-update_spot_market_step_size_and_tick_sizeadmin, state, spotMarketargs:
stepSize u64, tickSize u64ix-update_spot_market_min_order_sizeadmin, state, spotMarketargs:
orderSize u64ix-update_spot_market_orders_enabledadmin, state, spotMarketargs:
ordersEnabled boolix-update_spot_market_if_paused_operationsadmin, state, spotMarketargs:
pausedOperations u8ix-update_spot_market_nameadmin, state, spotMarketargs:
name binaryix-update_perp_market_statusadmin, state, perpMarketargs:
status variant nameix-update_perp_market_paused_operationsadmin, state, perpMarketargs:
pausedOperations u8ix-update_perp_market_contract_tieradmin, state, perpMarketargs:
contractTier variant nameix-update_perp_market_imf_factoradmin, state, perpMarketargs:
imfFactor u32, unrealizedPnlImfFactor u32ix-update_perp_market_unrealized_asset_weightadmin, state, perpMarketargs:
unrealizedInitialAssetWeight u32, unrealizedMaintenanceAssetWeight u32ix-update_perp_market_concentration_coefadmin, state, perpMarketargs:
concentrationScale decimal stringix-update_perp_market_curve_update_intensityadmin, state, perpMarketargs:
curveUpdateIntensity u8ix-update_perp_market_reference_price_offset_deadbaadmin, state, perpMarketargs:
referencePriceOffsetDeadbandPct u8ix-update_perp_fee_structureadmin, stateargs:
feeStructure JSON stringix-update_spot_fee_structureadmin, stateargs:
feeStructure JSON stringix-update_initial_pct_to_liquidateadmin, stateargs:
initialPctToLiquidate u16ix-update_liquidation_durationadmin, stateargs:
liquidationDuration u8ix-update_liquidation_margin_buffer_ratioadmin, stateargs:
liquidationMarginBufferRatio u32ix-update_oracle_guard_railsadmin, stateargs:
oracleGuardRails JSON stringix-update_state_settlement_durationadmin, stateargs:
settlementDuration u16ix-update_state_max_number_of_sub_accountsadmin, stateargs:
maxNumberOfSubAccounts u16ix-update_state_max_initialize_user_feeadmin, stateargs:
maxInitializeUserFee u16ix-update_perp_market_oracleadmin, state, perpMarket, oracle, oldOracle, ammCacheargs:
arg_oracle base58 string, oracleSource variant name, skipInvariantCheck boolix-update_perp_market_base_spreadadmin, state, perpMarketargs:
baseSpread u32ix-update_amm_jit_intensityadmin, state, perpMarketargs:
ammJitIntensity u8ix-update_perp_market_max_spreadadmin, state, perpMarketargs:
maxSpread u32ix-update_perp_market_step_size_and_tick_sizeadmin, state, perpMarketargs:
stepSize u64, tickSize u64ix-update_perp_market_nameadmin, state, perpMarketargs:
name binaryix-update_perp_market_min_order_sizeadmin, state, perpMarketargs:
orderSize u64ix-update_perp_market_max_slippage_ratioadmin, state, perpMarketargs:
maxSlippageRatio u16ix-update_perp_market_max_fill_reserve_fractionadmin, state, perpMarketargs:
maxFillReserveFraction u16ix-update_perp_market_max_open_interestadmin, state, perpMarketargs:
maxOpenInterest decimal stringix-update_perp_market_number_of_usersadmin, state, perpMarketargs:
numberOfUsers u32, numberOfUsersWithBase u32ix-update_perp_market_fee_adjustmentadmin, state, perpMarketargs:
feeAdjustment i16ix-update_spot_market_fee_adjustmentadmin, state, spotMarketargs:
feeAdjustment i16ix-update_perp_market_protected_maker_paramsadmin, state, perpMarketargs:
protectedMakerLimitPriceDivisor u8, protectedMakerDynamicDivisor u8ix-update_perp_market_oracle_low_risk_slot_delay_ovadmin, state, perpMarketargs:
oracleLowRiskSlotDelayOverride i8ix-update_perp_market_amm_spread_adjustmentadmin, state, perpMarketargs:
ammSpreadAdjustment i8, ammInventorySpreadAdjustment i8, referencePriceOffset i32ix-update_perp_market_oracle_slot_delay_overrideadmin, state, perpMarketargs:
oracleSlotDelayOverride i8ix-update_adminadmin, stateargs:
arg_admin base58 stringix-update_discount_mintadmin, stateargs:
discountMint base58 stringix-update_exchange_statusadmin, stateargs:
exchangeStatus u8ix-update_perp_auction_durationadmin, stateargs:
minPerpAuctionDuration u8ix-update_spot_auction_durationadmin, stateargs:
defaultSpotAuctionDuration u8ix-initialize_prelaunch_oracleadmin, prelaunchOracle, state, rent, systemProgramargs:
params JSON stringix-update_prelaunch_oracle_paramsadmin, prelaunchOracle, perpMarket, stateargs:
params JSON stringix-delete_prelaunch_oracleadmin, prelaunchOracle, perpMarket, stateargs:
perpMarketIndex u16ix-initialize_pyth_pull_oracleadmin, pythSolanaReceiver, priceFeed, systemProgram, stateargs:
feedId binaryix-initialize_pyth_lazer_oracleadmin, lazerOracle, state, rent, systemProgramargs:
feedId u32ix-post_pyth_lazer_oracle_updatekeeper, pythLazerStorage, ixSysvarargs:
pythMessage binaryix-initialize_high_leverage_mode_configadmin, highLeverageModeConfig, state, rent, systemProgramargs:
maxUsers u32ix-update_high_leverage_mode_configadmin, highLeverageModeConfig, stateargs:
maxUsers u32, reduceOnly bool, currentUsers u32ix-initialize_protected_maker_mode_configadmin, protectedMakerModeConfig, state, rent, systemProgramargs:
maxUsers u32ix-update_protected_maker_mode_configadmin, protectedMakerModeConfig, stateargs:
maxUsers u32, reduceOnly bool, currentUsers u32ix-admin_depositstate, user, admin, spotMarketVault, adminTokenAccount, tokenProgramargs:
marketIndex u16, amount u64ix-initialize_if_rebalance_configadmin, ifRebalanceConfig, state, rent, systemProgramargs:
params JSON stringix-update_if_rebalance_configadmin, ifRebalanceConfig, stateargs:
params JSON stringix-update_feature_bit_flags_mm_oracleadmin, stateargs:
enable boolix-zero_mm_oracle_fieldsadmin, state, perpMarketix-update_feature_bit_flags_median_trigger_priceadmin, stateargs:
enable boolix-update_feature_bit_flags_builder_codesadmin, stateargs:
enable boolix-initialize_revenue_sharerevenueShare, authority, payer, rent, systemProgramix-initialize_revenue_share_escrowescrow, authority, userStats, state, payer, rent, systemProgramargs:
numOrders u16ix-resize_revenue_share_escrow_ordersescrow, authority, payer, systemProgramargs:
numOrders u16ix-change_approved_builderescrow, authority, payer, systemProgramargs:
builder base58 string, maxFeeBps u16, add boolix-initialize_lp_pooladmin, lpPool, mint, lpPoolTokenVault, ammConstituentMapping, constituentTargetBase, constituentCorrelations, state, tokenProgram, rent, systemProgramargs:
lpPoolId u8, minMintFee i64, maxAum decimal string, maxSettleQuoteAmountPerMarket u64, whitelistMint base58 stringix-update_feature_bit_flags_settle_lp_pooladmin, stateargs:
enable boolix-update_feature_bit_flags_swap_lp_pooladmin, stateargs:
enable boolix-update_feature_bit_flags_mint_redeem_lp_pooladmin, stateargs:
enable boolix-initialize_constituentstate, admin, lpPool, constituentTargetBase, constituentCorrelations, constituent, spotMarket, spotMarketMint, constituentVault, rent, systemProgram, tokenProgramargs:
spotMarketIndex u16, decimals u8, maxWeightDeviation i64, swapFeeMin i64, swapFeeMax i64, maxBorrowTokenAmount u64, oracleStalenessThreshold u64, costToTrade i32, constituentDerivativeIndex i16, constituentDerivativeDepegThreshold u64, derivativeWeight u64, volatility u64, gammaExecution u8, gammaInventory u8, xi u8, newConstituentCorrelations JSON stringix-update_constituent_statusadmin, state, constituentargs:
newStatus u8ix-update_constituent_paused_operationsadmin, state, constituentargs:
pausedOperations u8ix-update_constituent_paramslpPool, constituentTargetBase, admin, state, constituentargs:
constituentParams JSON stringix-update_lp_pool_paramslpPool, admin, stateargs:
lpPoolParams JSON stringix-add_amm_constituent_mapping_dataadmin, lpPool, ammConstituentMapping, constituentTargetBase, state, systemProgramargs:
ammConstituentMappingData JSON stringix-update_amm_constituent_mapping_dataadmin, lpPool, ammConstituentMapping, systemProgram, stateargs:
ammConstituentMappingData JSON stringix-remove_amm_constituent_mapping_dataadmin, lpPool, ammConstituentMapping, systemProgram, stateargs:
perpMarketIndex u16, constituentIndex u16ix-update_constituent_correlation_dataadmin, lpPool, constituentCorrelations, stateargs:
index1 u16, index2 u16, correlation i64ix-update_lp_constituent_target_basestate, keeper, ammConstituentMapping, constituentTargetBase, ammCache, lpPoolix-update_lp_pool_aumstate, keeper, lpPool, constituentTargetBase, ammCacheix-update_amm_cachekeeper, state, ammCache, quoteMarketix-override_amm_cache_infostate, admin, ammCacheargs:
marketIndex u16, overrideParams JSON stringix-lp_pool_swapstate, lpPool, constituentTargetBase, constituentCorrelations, constituentInTokenAccount, constituentOutTokenAccount, userInTokenAccount, userOutTokenAccount, inConstituent, outConstituent, inMarketMint, outMarketMint, authority, tokenProgramargs:
inMarketIndex u16, outMarketIndex u16, inAmount u64, minOutAmount u64ix-view_lp_pool_swap_feesdriftSigner, state, lpPool, constituentTargetBase, constituentCorrelations, constituentInTokenAccount, constituentOutTokenAccount, inConstituent, outConstituent, authority, tokenProgramargs:
inMarketIndex u16, outMarketIndex u16, inAmount u64, inTargetWeight i64, outTargetWeight i64ix-lp_pool_add_liquiditystate, lpPool, authority, inMarketMint, inConstituent, userInTokenAccount, constituentInTokenAccount, userLpTokenAccount, lpMint, constituentTargetBase, lpPoolTokenVault, tokenProgramargs:
inMarketIndex u16, inAmount decimal string, minMintAmount u64ix-lp_pool_remove_liquiditystate, driftSigner, lpPool, authority, outMarketMint, outConstituent, userOutTokenAccount, constituentOutTokenAccount, userLpTokenAccount, spotMarketTokenAccount, lpMint, constituentTargetBase, lpPoolTokenVault, tokenProgram, ammCacheargs:
inMarketIndex u16, inAmount u64, minOutAmount decimal stringix-view_lp_pool_add_liquidity_feesstate, lpPool, authority, inMarketMint, inConstituent, lpMint, constituentTargetBaseargs:
inMarketIndex u16, inAmount decimal stringix-view_lp_pool_remove_liquidity_feesstate, lpPool, authority, outMarketMint, outConstituent, lpMint, constituentTargetBaseargs:
inMarketIndex u16, inAmount u64ix-begin_lp_swapstate, admin, signerOutTokenAccount, signerInTokenAccount, constituentOutTokenAccount, constituentInTokenAccount, outConstituent, inConstituent, lpPool, instructions, tokenProgramargs:
inMarketIndex u16, outMarketIndex u16, amountIn u64ix-end_lp_swapstate, admin, signerOutTokenAccount, signerInTokenAccount, constituentOutTokenAccount, constituentInTokenAccount, outConstituent, inConstituent, lpPool, instructions, tokenProgramargs:
inMarketIndex u16, outMarketIndex u16ix-update_constituent_oracle_infostate, keeper, constituent, spotMarket, oracleix-deposit_to_program_vaultstate, admin, constituent, constituentTokenAccount, spotMarket, spotMarketVault, tokenProgram, mint, oracleargs:
amount u64ix-withdraw_from_program_vaultstate, admin, driftSigner, constituent, constituentTokenAccount, spotMarket, spotMarketVault, tokenProgram, mint, oracleargs:
amount u64ix-settle_perp_to_lp_poolstate, lpPool, keeper, ammCache, quoteMarket, constituent, constituentQuoteTokenAccount, quoteTokenVault, tokenProgram, driftSignerix-update_perp_market_configadmin, state, perpMarketargs:
marketConfig u8Files are split by epoch and at 2 GB: eEEEE-ix-<name>-tNN-SSSS.parquet. Large integers stay
exact: u128 is a decimal string. All decoded types.
Get Drift v2 data for your range.
Select an epoch range and get a firm price. You pay only when you send the job.