List of all items
Structs
- accounts::AddCustody
- accounts::AddLiquidity
- accounts::AddPool
- accounts::ClosePositionRequest
- accounts::CreateDecreasePositionMarketRequest
- accounts::CreateDecreasePositionRequest
- accounts::CreateIncreasePositionMarketRequest
- accounts::CreateIncreasePositionRequest
- accounts::CreateTokenMetadata
- accounts::DecreasePosition2
- accounts::DecreasePositionPostSwap
- accounts::GetAddLiquidityAmountAndFee
- accounts::GetAssetsUnderManagement
- accounts::GetDecreasePosition
- accounts::GetExactOutSwapAmountAndFees
- accounts::GetIncreasePosition
- accounts::GetLiquidationState
- accounts::GetOraclePrice
- accounts::GetPnl
- accounts::GetRemoveLiquidityAmountAndFee
- accounts::GetSwapAmountAndFees
- accounts::IncreasePosition2
- accounts::IncreasePositionPreSwap
- accounts::Init
- accounts::LiquidateFullPosition2
- accounts::RefreshAssetsUnderManagement
- accounts::RemoveLiquidity
- accounts::SetCustodyConfig
- accounts::SetCustodyGlobalLimit
- accounts::SetPerpetualsConfig
- accounts::SetPoolConfig
- accounts::SetTestOraclePrice
- accounts::SetTestTime
- accounts::Swap
- accounts::SwapExactOut
- accounts::TestInit
- accounts::TransferAdmin
- accounts::UpdateDecreasePositionRequest
- accounts::UpdateIncreasePositionRequest
- accounts::WithdrawFees
- cpi::Return
- cpi::accounts::AddCustody
- cpi::accounts::AddLiquidity
- cpi::accounts::AddPool
- cpi::accounts::ClosePositionRequest
- cpi::accounts::CreateDecreasePositionMarketRequest
- cpi::accounts::CreateDecreasePositionRequest
- cpi::accounts::CreateIncreasePositionMarketRequest
- cpi::accounts::CreateIncreasePositionRequest
- cpi::accounts::CreateTokenMetadata
- cpi::accounts::DecreasePosition2
- cpi::accounts::DecreasePositionPostSwap
- cpi::accounts::GetAddLiquidityAmountAndFee
- cpi::accounts::GetAssetsUnderManagement
- cpi::accounts::GetDecreasePosition
- cpi::accounts::GetExactOutSwapAmountAndFees
- cpi::accounts::GetIncreasePosition
- cpi::accounts::GetLiquidationState
- cpi::accounts::GetOraclePrice
- cpi::accounts::GetPnl
- cpi::accounts::GetRemoveLiquidityAmountAndFee
- cpi::accounts::GetSwapAmountAndFees
- cpi::accounts::IncreasePosition2
- cpi::accounts::IncreasePositionPreSwap
- cpi::accounts::Init
- cpi::accounts::LiquidateFullPosition2
- cpi::accounts::RefreshAssetsUnderManagement
- cpi::accounts::RemoveLiquidity
- cpi::accounts::SetCustodyConfig
- cpi::accounts::SetCustodyGlobalLimit
- cpi::accounts::SetPerpetualsConfig
- cpi::accounts::SetPoolConfig
- cpi::accounts::SetTestOraclePrice
- cpi::accounts::SetTestTime
- cpi::accounts::Swap
- cpi::accounts::SwapExactOut
- cpi::accounts::TestInit
- cpi::accounts::TransferAdmin
- cpi::accounts::UpdateDecreasePositionRequest
- cpi::accounts::UpdateIncreasePositionRequest
- cpi::accounts::WithdrawFees
- instruction::AddCustody
- instruction::AddLiquidity
- instruction::AddPool
- instruction::ClosePositionRequest
- instruction::CreateDecreasePositionMarketRequest
- instruction::CreateDecreasePositionRequest
- instruction::CreateIncreasePositionMarketRequest
- instruction::CreateIncreasePositionRequest
- instruction::CreateTokenMetadata
- instruction::DecreasePosition2
- instruction::DecreasePositionPostSwap
- instruction::GetAddLiquidityAmountAndFee
- instruction::GetAssetsUnderManagement
- instruction::GetDecreasePosition
- instruction::GetExactOutSwapAmountAndFees
- instruction::GetIncreasePosition
- instruction::GetLiquidationState
- instruction::GetOraclePrice
- instruction::GetPnl
- instruction::GetRemoveLiquidityAmountAndFee
- instruction::GetSwapAmountAndFees
- instruction::IncreasePosition2
- instruction::IncreasePositionPreSwap
- instruction::Init
- instruction::LiquidateFullPosition2
- instruction::RefreshAssetsUnderManagement
- instruction::RemoveLiquidity
- instruction::SetCustodyConfig
- instruction::SetCustodyGlobalLimit
- instruction::SetPerpetualsConfig
- instruction::SetPoolConfig
- instruction::SetTestOraclePrice
- instruction::SetTestTime
- instruction::Swap
- instruction::SwapExactOut
- instruction::TestInit
- instruction::TransferAdmin
- instruction::UpdateDecreasePositionRequest
- instruction::UpdateIncreasePositionRequest
- instruction::WithdrawFees
- ix_accounts::AddCustody
- ix_accounts::AddCustodyBumps
- ix_accounts::AddLiquidity
- ix_accounts::AddLiquidityBumps
- ix_accounts::AddPool
- ix_accounts::AddPoolBumps
- ix_accounts::ClosePositionRequest
- ix_accounts::ClosePositionRequestBumps
- ix_accounts::CreateDecreasePositionMarketRequest
- ix_accounts::CreateDecreasePositionMarketRequestBumps
- ix_accounts::CreateDecreasePositionRequest
- ix_accounts::CreateDecreasePositionRequestBumps
- ix_accounts::CreateIncreasePositionMarketRequest
- ix_accounts::CreateIncreasePositionMarketRequestBumps
- ix_accounts::CreateIncreasePositionRequest
- ix_accounts::CreateIncreasePositionRequestBumps
- ix_accounts::CreateTokenMetadata
- ix_accounts::CreateTokenMetadataBumps
- ix_accounts::DecreasePosition2
- ix_accounts::DecreasePosition2Bumps
- ix_accounts::DecreasePositionPostSwap
- ix_accounts::DecreasePositionPostSwapBumps
- ix_accounts::GetAddLiquidityAmountAndFee
- ix_accounts::GetAddLiquidityAmountAndFeeBumps
- ix_accounts::GetAssetsUnderManagement
- ix_accounts::GetAssetsUnderManagementBumps
- ix_accounts::GetDecreasePosition
- ix_accounts::GetDecreasePositionBumps
- ix_accounts::GetExactOutSwapAmountAndFees
- ix_accounts::GetExactOutSwapAmountAndFeesBumps
- ix_accounts::GetIncreasePosition
- ix_accounts::GetIncreasePositionBumps
- ix_accounts::GetLiquidationState
- ix_accounts::GetLiquidationStateBumps
- ix_accounts::GetOraclePrice
- ix_accounts::GetOraclePriceBumps
- ix_accounts::GetPnl
- ix_accounts::GetPnlBumps
- ix_accounts::GetRemoveLiquidityAmountAndFee
- ix_accounts::GetRemoveLiquidityAmountAndFeeBumps
- ix_accounts::GetSwapAmountAndFees
- ix_accounts::GetSwapAmountAndFeesBumps
- ix_accounts::IncreasePosition2
- ix_accounts::IncreasePosition2Bumps
- ix_accounts::IncreasePositionPreSwap
- ix_accounts::IncreasePositionPreSwapBumps
- ix_accounts::Init
- ix_accounts::InitBumps
- ix_accounts::LiquidateFullPosition2
- ix_accounts::LiquidateFullPosition2Bumps
- ix_accounts::RefreshAssetsUnderManagement
- ix_accounts::RefreshAssetsUnderManagementBumps
- ix_accounts::RemoveLiquidity
- ix_accounts::RemoveLiquidityBumps
- ix_accounts::SetCustodyConfig
- ix_accounts::SetCustodyConfigBumps
- ix_accounts::SetCustodyGlobalLimit
- ix_accounts::SetCustodyGlobalLimitBumps
- ix_accounts::SetPerpetualsConfig
- ix_accounts::SetPerpetualsConfigBumps
- ix_accounts::SetPoolConfig
- ix_accounts::SetPoolConfigBumps
- ix_accounts::SetTestOraclePrice
- ix_accounts::SetTestOraclePriceBumps
- ix_accounts::SetTestTime
- ix_accounts::SetTestTimeBumps
- ix_accounts::Swap
- ix_accounts::SwapBumps
- ix_accounts::SwapExactOut
- ix_accounts::SwapExactOutBumps
- ix_accounts::TestInit
- ix_accounts::TestInitBumps
- ix_accounts::TransferAdmin
- ix_accounts::TransferAdminBumps
- ix_accounts::UpdateDecreasePositionRequest
- ix_accounts::UpdateDecreasePositionRequestBumps
- ix_accounts::UpdateIncreasePositionRequest
- ix_accounts::UpdateIncreasePositionRequestBumps
- ix_accounts::WithdrawFees
- ix_accounts::WithdrawFeesBumps
- program::Perpetuals
- state::Custody
- state::Perpetuals
- state::Pool
- state::Position
- state::PositionRequest
- state::TestOracle
- typedefs::AddCustodyParams
- typedefs::AddLiquidityParams
- typedefs::AddPoolParams
- typedefs::AmountAndFee
- typedefs::Assets
- typedefs::ClosePositionRequestParams
- typedefs::CreateDecreasePositionMarketRequestParams
- typedefs::CreateDecreasePositionRequestParams
- typedefs::CreateIncreasePositionMarketRequestParams
- typedefs::CreateIncreasePositionRequestParams
- typedefs::CreateTokenMetadataParams
- typedefs::DecreasePosition2Params
- typedefs::DecreasePositionInfo
- typedefs::DecreasePositionPostSwapParams
- typedefs::Fees
- typedefs::FundingRateState
- typedefs::GetAddLiquidityAmountAndFeeParams
- typedefs::GetAssetsUnderManagementParams
- typedefs::GetDecreasePositionParams
- typedefs::GetExactOutSwapAmountAndFeesParams
- typedefs::GetIncreasePositionParams
- typedefs::GetLiquidationStateParams
- typedefs::GetPnlAndFeeParams
- typedefs::GetRemoveLiquidityAmountAndFeeParams
- typedefs::GetSwapAmountAndFeesParams
- typedefs::IncreasePosition2Params
- typedefs::IncreasePositionInfo
- typedefs::IncreasePositionPreSwapParams
- typedefs::InitParams
- typedefs::Limit
- typedefs::LiquidateFullPosition2Params
- typedefs::OracleParams
- typedefs::OraclePrice
- typedefs::OraclePriceInfo
- typedefs::Permissions
- typedefs::PnlAndFee
- typedefs::PoolApr
- typedefs::PricingParams
- typedefs::RefreshAssetsUnderManagementParams
- typedefs::RemoveLiquidityParams
- typedefs::SetCustodyConfigParams
- typedefs::SetCustodyGlobalLimitParams
- typedefs::SetPerpetualsConfigParams
- typedefs::SetPoolConfigParams
- typedefs::SetTestOraclePriceParams
- typedefs::SetTestTimeParams
- typedefs::SwapAmountAndFees
- typedefs::SwapExactOutParams
- typedefs::SwapParams
- typedefs::TestInitParams
- typedefs::TransferAdminParams
- typedefs::UpdateDecreasePositionRequestParams
- typedefs::UpdateIncreasePositionRequestParams
- typedefs::WithdrawFeesParams
Enums
- typedefs::OracleType
- typedefs::PriceCalcMode
- typedefs::PriceStaleTolerance
- typedefs::RequestChange
- typedefs::RequestType
- typedefs::Side
Functions
- check_id
- cpi::add_custody
- cpi::add_liquidity
- cpi::add_pool
- cpi::close_position_request
- cpi::create_decrease_position_market_request
- cpi::create_decrease_position_request
- cpi::create_increase_position_market_request
- cpi::create_increase_position_request
- cpi::create_token_metadata
- cpi::decrease_position2
- cpi::decrease_position_post_swap
- cpi::get_add_liquidity_amount_and_fee
- cpi::get_assets_under_management
- cpi::get_decrease_position
- cpi::get_exact_out_swap_amount_and_fees
- cpi::get_increase_position
- cpi::get_liquidation_state
- cpi::get_oracle_price
- cpi::get_pnl
- cpi::get_remove_liquidity_amount_and_fee
- cpi::get_swap_amount_and_fees
- cpi::increase_position2
- cpi::increase_position_pre_swap
- cpi::init
- cpi::liquidate_full_position2
- cpi::refresh_assets_under_management
- cpi::remove_liquidity
- cpi::set_custody_config
- cpi::set_custody_global_limit
- cpi::set_perpetuals_config
- cpi::set_pool_config
- cpi::set_test_oracle_price
- cpi::set_test_time
- cpi::swap
- cpi::swap_exact_out
- cpi::test_init
- cpi::transfer_admin
- cpi::update_decrease_position_request
- cpi::update_increase_position_request
- cpi::withdraw_fees
- entry
- id
- perpetuals::add_custody
- perpetuals::add_liquidity
- perpetuals::add_pool
- perpetuals::close_position_request
- perpetuals::create_decrease_position_market_request
- perpetuals::create_decrease_position_request
- perpetuals::create_increase_position_market_request
- perpetuals::create_increase_position_request
- perpetuals::create_token_metadata
- perpetuals::decrease_position2
- perpetuals::decrease_position_post_swap
- perpetuals::get_add_liquidity_amount_and_fee
- perpetuals::get_assets_under_management
- perpetuals::get_decrease_position
- perpetuals::get_exact_out_swap_amount_and_fees
- perpetuals::get_increase_position
- perpetuals::get_liquidation_state
- perpetuals::get_oracle_price
- perpetuals::get_pnl
- perpetuals::get_remove_liquidity_amount_and_fee
- perpetuals::get_swap_amount_and_fees
- perpetuals::increase_position2
- perpetuals::increase_position_pre_swap
- perpetuals::init
- perpetuals::liquidate_full_position2
- perpetuals::refresh_assets_under_management
- perpetuals::remove_liquidity
- perpetuals::set_custody_config
- perpetuals::set_custody_global_limit
- perpetuals::set_perpetuals_config
- perpetuals::set_pool_config
- perpetuals::set_test_oracle_price
- perpetuals::set_test_time
- perpetuals::swap
- perpetuals::swap_exact_out
- perpetuals::test_init
- perpetuals::transfer_admin
- perpetuals::update_decrease_position_request
- perpetuals::update_increase_position_request
- perpetuals::withdraw_fees