Enum phoenix::program::instruction::PhoenixInstruction
source · #[repr(u8)]
pub enum PhoenixInstruction {
Show 28 variants
Swap,
SwapWithFreeFunds,
PlaceLimitOrder,
PlaceLimitOrderWithFreeFunds,
ReduceOrder,
ReduceOrderWithFreeFunds,
CancelAllOrders,
CancelAllOrdersWithFreeFunds,
CancelUpTo,
CancelUpToWithFreeFunds,
CancelMultipleOrdersById,
CancelMultipleOrdersByIdWithFreeFunds,
WithdrawFunds,
DepositFunds,
RequestSeat,
Log,
PlaceMultiplePostOnlyOrders,
PlaceMultiplePostOnlyOrdersWithFreeFunds,
InitializeMarket,
ClaimAuthority,
NameSuccessor,
ChangeMarketStatus,
ChangeSeatStatus,
RequestSeatAuthorized,
EvictSeat,
ForceCancelOrders,
CollectFees,
ChangeFeeRecipient,
}Variants§
Swap
Send a swap (no limit orders allowed) order
SwapWithFreeFunds
Send a swap (no limit orders allowed) order using only deposited funds
PlaceLimitOrder
Place a limit order on the book. The order can cross if the supplied order type is Limit
PlaceLimitOrderWithFreeFunds
Place a limit order on the book using only deposited funds.
ReduceOrder
Reduce the size of an existing order on the book
ReduceOrderWithFreeFunds
Reduce the size of an existing order on the book
CancelAllOrders
Cancel all orders
CancelAllOrdersWithFreeFunds
Cancel all orders (no token transfers)
CancelUpTo
Cancel all orders more aggressive than a specified price
CancelUpToWithFreeFunds
Cancel all orders more aggressive than a specified price (no token transfers)
CancelMultipleOrdersById
Cancel multiple orders by ID
CancelMultipleOrdersByIdWithFreeFunds
Cancel multiple orders by ID (no token transfers)
WithdrawFunds
DepositFunds
RequestSeat
Log
PlaceMultiplePostOnlyOrders
Place multiple post only orders on the book. Similar to single post only orders, these can either be set to be rejected or amended to top of book if they cross.
PlaceMultiplePostOnlyOrdersWithFreeFunds
Place multiple post only orders on the book using only deposited funds. Similar to single post only orders, these can either be set to be rejected or amended to top of book if they cross.
InitializeMarket
Create a market
ClaimAuthority
NameSuccessor
ChangeMarketStatus
ChangeSeatStatus
RequestSeatAuthorized
EvictSeat
ForceCancelOrders
CollectFees
ChangeFeeRecipient
Implementations§
Trait Implementations§
source§impl Clone for PhoenixInstruction
impl Clone for PhoenixInstruction
source§fn clone(&self) -> PhoenixInstruction
fn clone(&self) -> PhoenixInstruction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PhoenixInstruction
impl Debug for PhoenixInstruction
source§impl PartialEq<PhoenixInstruction> for PhoenixInstruction
impl PartialEq<PhoenixInstruction> for PhoenixInstruction
source§fn eq(&self, other: &PhoenixInstruction) -> bool
fn eq(&self, other: &PhoenixInstruction) -> bool
self and other values to be equal, and is used
by ==.