Events Reference

Keystone Alpha

Event
Key Fields
Emitted When

DepositEvent

fund_id, user, amount, shares

User deposits

WithdrawEvent

fund_id, user, shares, amount

User withdraws

RebalanceEvent

fund_id, old_bps, new_bps

Rebalance executes

FeeCollectionEvent

fund_id, management/performance/rebalancing shares

Fees collected

FundPausedEvent

fund_id, paused

Pause state changes

LendingDeployedEvent

fund_id, amount

Capital sent to Marginfi

LendingWithdrawnEvent

fund_id, amount

Capital recalled from Marginfi

Keystone Neutral

Event
Key Fields
Emitted When

DepositEvent

fund_id, user, amount, shares, timestamp

User deposits

WithdrawEvent

fund_id, user, shares, amount, new_total_shares, timestamp

Immediate withdrawal — USDC transferred in same tx

WithdrawQueued

fund_id, user, shares_burned, usdc_amount, total_pending, timestamp

Queued withdrawal — shares burned, USDC payout deferred

PositionUnwound

fund_id, jitosol_amount, usdc_received, total_pending_withdrawals, caller, timestamp

Keeper unwound position to service withdrawal queue

WithdrawClaimed

fund_id, user, usdc_amount, remaining_pending, timestamp

Queued USDC delivered to user

CapitalDeployed

fund_id, usdc_amount, jitosol_amount, perp_size, entry_price, caller, timestamp

Capital auto-deployed

BasisPositionOpened

fund_id, jitosol_amount, perp_size, entry_price, timestamp

Basis trade opened (manual)

BasisPositionClosed

fund_id, pnl, funding_earned, timestamp

Basis trade closed

FundingSettled

fund_id, funding_amount, cumulative_funding, timestamp

Funding collected

BasisPositionAdjusted

fund_id, reason, old_size, new_size, health_factor, timestamp

Hedge rebalanced

FeeCollectionEvent

fund_id, management/performance shares

Fees collected

FundPausedEvent

fund_id, paused

Pause state changes

NegativeFundingAlert

fund_id, consecutive_periods, threshold, timestamp

Sustained negative funding detected

EmergencyPositionClosed

fund_id, reason, consecutive_negative_periods, caller, timestamp

Emergency close triggered

ReverseBasisDeployed

fund_id, jitosol_borrowed, usdc_collateral, perp_size, entry_price, caller, timestamp

Reverse basis position opened

ReverseBasisClosed

fund_id, funding_earned, jitosol_repaid, caller, timestamp

Reverse basis position closed

Parsing Events

Last updated