Zeta Markets decoder
Decode Zeta Markets instructions, accounts and events in Rust with carbon-zeta-decoder 2.0.0. Program ID ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD.
On this page
carbon-zeta-decoder decodes the instructions, accounts and events of the Zeta Markets program (ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD): 107 instructions, 23 account types, 8 events. It is generated with Codama from the program's IDL; see decoders for how decoders plug into a pipeline.
| Crate | carbon-zeta-decoder 2.0.0 |
| Install | cargo add carbon-zeta-decoder@2. |
| Program ID | ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD (carbon_) |
| Category | Perpetuals & derivatives |
| Decoder | carbon_ |
| Instruction enum | instructions:: |
| Account enum | accounts:: |
| Event enum | instructions:: |
| Features | serde, postgres, graphql (none enabled by default) |
| API docs | docs.rs/carbon-zeta-decoder/2.0.0 |
| Source | decoders/zeta-decoder |
Other perpetuals and derivatives decoders: Drift v2, Jupiter Perpetuals. To decode several in one pipeline, see perpetuals and derivatives decoders.
The serde feature derives Serialize/Deserialize on every type, postgres adds tables and processors for Postgres, and graphql adds a schema for the GraphQL server.
Usage#
This program crawls recent Zeta Markets transactions from the public RPC and prints every decoded PlacePerpOrderV3 instruction. Add the dependencies:
cargo add carbon-core@2.0.0 carbon-zeta-decoder@2.0.0 carbon-rpc-transaction-crawler-datasource@2.0.0 carbon-log-metrics@2.0.0 env_logger tokio --features tokio/fulluse {
carbon_core::{
error::CarbonResult, instruction::InstructionProcessorInputType, pipeline::Pipeline,
processor::Processor,
},
carbon_log_metrics::LogMetrics,
carbon_zeta_decoder::{instructions::ZetaInstruction, ZetaDecoder, PROGRAM_ID},
carbon_rpc_transaction_crawler_datasource::{ConnectionConfig, Filters, RpcTransactionCrawler},
std::sync::Arc,
};
#[tokio::main]
async fn main() -> CarbonResult<()> {
env_logger::init();
// Fetches the program's recent transactions over JSON-RPC, newest first.
let datasource = RpcTransactionCrawler::new(
"https://api.mainnet-beta.solana.com".to_string(),
PROGRAM_ID,
ConnectionConfig::default(),
Filters::new(None, None, None),
None,
);
Pipeline::builder()
.datasource(datasource)
.metrics(Arc::new(LogMetrics::new()))
.instruction(ZetaDecoder, InstructionLogger)
.build()?
.run()
.await
}
struct InstructionLogger;
impl Processor<InstructionProcessorInputType<'_, ZetaInstruction>> for InstructionLogger {
async fn process(
&mut self,
input: &InstructionProcessorInputType<'_, ZetaInstruction>,
) -> CarbonResult<()> {
let signature = input.metadata.transaction_metadata.signature;
if let ZetaInstruction::PlacePerpOrderV3 { data, accounts, .. } = input.decoded_instruction {
println!("place_perp_order_v3 {signature}: {data:?} state={}", accounts.state);
}
Ok(())
}
}RUST_LOG=info cargo runEach PlacePerpOrderV3 instruction prints one line with the transaction signature and the decoded PlacePerpOrderV3 data. The public endpoint rate-limits requests, so the first lines can take a while; use your own RPC URL for anything beyond a test. See stream with RPC for the crawler options.
Events published with Anchor's emit_cpi! arrive as the CpiEvent instruction. Match them with ZetaInstruction:: (import instructions::); see Events. If CpiEvent never arrives, the program logs its events with emit! instead: decode them with decode_.
Decode accounts#
The transaction crawler emits transactions only. To decode accounts, use a datasource that emits account updates. This program subscribes to the program's accounts with programSubscribe on the public WebSocket endpoint and prints every decoded CrossMarginAccount account as it changes. Add the datasource and the Solana RPC types it takes:
cargo add carbon-rpc-program-subscribe-datasource@2.0.0 solana-client@4.2.2use {
carbon_core::{
account::AccountProcessorInputType, error::CarbonResult, pipeline::Pipeline,
processor::Processor,
},
carbon_log_metrics::LogMetrics,
carbon_zeta_decoder::{accounts::ZetaAccount, ZetaDecoder, PROGRAM_ID},
carbon_rpc_program_subscribe_datasource::{Filters, RpcProgramSubscribe},
solana_client::rpc_config::{RpcAccountInfoConfig, RpcProgramAccountsConfig, UiAccountEncoding},
std::sync::Arc,
};
#[tokio::main]
async fn main() -> CarbonResult<()> {
env_logger::init();
// Streams every change to an account owned by the program (programSubscribe).
let config = RpcProgramAccountsConfig {
account_config: RpcAccountInfoConfig {
encoding: Some(UiAccountEncoding::Base64),
..Default::default()
},
..Default::default()
};
let datasource = RpcProgramSubscribe::new(
"wss://api.mainnet-beta.solana.com".to_string(),
Filters::new(PROGRAM_ID, Some(config)),
);
Pipeline::builder()
.datasource(datasource)
.metrics(Arc::new(LogMetrics::new()))
.account(ZetaDecoder, AccountLogger)
.build()?
.run()
.await
}
struct AccountLogger;
impl Processor<AccountProcessorInputType<'_, ZetaAccount>> for AccountLogger {
async fn process(
&mut self,
input: &AccountProcessorInputType<'_, ZetaAccount>,
) -> CarbonResult<()> {
if let ZetaAccount::CrossMarginAccount(cross_margin_account) = &input.decoded_account.data {
println!("cross_margin_account {}: {cross_margin_account:?}", input.metadata.pubkey);
}
Ok(())
}
}RUST_LOG=info cargo runEach update to a CrossMarginAccount account prints its address and decoded fields; the program runs until you stop it. Cargo resolves solana-client to 4.2.2, the exact version the datasource pins, so both use the same RpcProgramAccountsConfig type. To load every existing account once instead of streaming changes, see load account state.
Instructions#
Variants of ZetaInstruction. Each is ZetaInstruction::, where data and accounts are the types listed under the variant, exported from carbon_. Discriminators are the leading bytes of the instruction data, in hex.
How an instruction decodes. The decoder returns a variant only when all of these hold; otherwise the instruction is skipped and no processor is called:
- The instruction's program ID is
ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD. - The data starts with the variant's discriminator, and the rest deserializes into its data type.
- The instruction has at least as many accounts as the variant requires (the "Required accounts" count under each variant).
Accounts. They are matched by position, in the order listed. An account marked optional is None only when the instruction ends before it; Anchor programs pass the program ID as a placeholder for an omitted optional account, so check for Some(PROGRAM_ too. Accounts after the listed ones are in accounts. as AccountMetas. The decoder doesn't record whether an account signed or was writable: read that from input. and ., which follow the same order. It doesn't check signer, writable, owner or PDA constraints either; the program enforced those when the transaction executed, so a decoded instruction from a successful transaction already satisfied them.
AddMarketIndexes#
Discriminator 5ef690af04a4e9fc · data AddMarketIndexes · accounts AddMarketIndexesInstructionAccounts.
No data fields.
Required accounts: 2; extras go to remaining.
Fields of AddMarketIndexesInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | market_ | Pubkey |
| 1 | zeta_group | Pubkey |
| 2… | remaining | Vec< |
AddPerpMarketIndex#
Discriminator 7a280e40a912e788 · data AddPerpMarketIndex · accounts AddPerpMarketIndexInstructionAccounts.
| Field | Type |
|---|---|
asset | Asset |
Required accounts: 2; extras go to remaining.
Fields of AddPerpMarketIndexInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | market_ | Pubkey |
| 1 | pricing | Pubkey |
| 2… | remaining | Vec< |
ApplyPerpFunding#
Discriminator 1752e1dedb7ae6fb · data ApplyPerpFunding · accounts ApplyPerpFundingInstructionAccounts.
| Field | Type |
|---|---|
asset | Asset |
Required accounts: 2; extras go to remaining.
Fields of ApplyPerpFundingInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | pricing | Pubkey |
| 2… | remaining | Vec< |
BurnVaultTokens#
Discriminator e9cba5c9af2bbc9f · data BurnVaultTokens · accounts BurnVaultTokensInstructionAccounts.
No data fields.
Required accounts: 5; extras go to remaining.
Fields of BurnVaultTokensInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | mint | Pubkey |
| 2 | vault | Pubkey |
| 3 | serum_ | Pubkey |
| 4 | token_ | Pubkey |
| 5… | remaining | Vec< |
CancelAllMarketOrders#
Discriminator 8bbee6f94da0ce04 · data CancelAllMarketOrders · accounts CancelAllMarketOrdersInstructionAccounts.
| Field | Type |
|---|---|
asset | Asset |
Required accounts: 10; extras go to remaining.
Fields of CancelAllMarketOrdersInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | state | Pubkey |
| 2 | margin_ | Pubkey |
| 3 | dex_program | Pubkey |
| 4 | serum_ | Pubkey |
| 5 | open_orders | Pubkey |
| 6 | market | Pubkey |
| 7 | bids | Pubkey |
| 8 | asks | Pubkey |
| 9 | event_queue | Pubkey |
| 10… | remaining | Vec< |
CancelOrder#
Discriminator 5f81edf00831df84 · data CancelOrder · accounts CancelOrderInstructionAccounts.
Required accounts: 10; extras go to remaining.
Fields of CancelOrderInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | state | Pubkey |
| 2 | margin_ | Pubkey |
| 3 | dex_program | Pubkey |
| 4 | serum_ | Pubkey |
| 5 | open_orders | Pubkey |
| 6 | market | Pubkey |
| 7 | bids | Pubkey |
| 8 | asks | Pubkey |
| 9 | event_queue | Pubkey |
| 10… | remaining | Vec< |
CancelOrderByClientOrderId#
Discriminator 73b2c908afb77b77 · data CancelOrderByClientOrderId · accounts CancelOrderByClientOrderIdInstructionAccounts.
| Field | Type |
|---|---|
client_ | u64 |
asset | Asset |
Required accounts: 10; extras go to remaining.
Fields of CancelOrderByClientOrderIdInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | state | Pubkey |
| 2 | margin_ | Pubkey |
| 3 | dex_program | Pubkey |
| 4 | serum_ | Pubkey |
| 5 | open_orders | Pubkey |
| 6 | market | Pubkey |
| 7 | bids | Pubkey |
| 8 | asks | Pubkey |
| 9 | event_queue | Pubkey |
| 10… | remaining | Vec< |
CancelOrderByClientOrderIdNoError#
Discriminator 354da79daf8390ab · data CancelOrderByClientOrderIdNoError · accounts CancelOrderByClientOrderIdNoErrorInstructionAccounts.
| Field | Type |
|---|---|
client_ | u64 |
asset | Asset |
Required accounts: 10; extras go to remaining.
Fields of CancelOrderByClientOrderIdNoErrorInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | state | Pubkey |
| 2 | margin_ | Pubkey |
| 3 | dex_program | Pubkey |
| 4 | serum_ | Pubkey |
| 5 | open_orders | Pubkey |
| 6 | market | Pubkey |
| 7 | bids | Pubkey |
| 8 | asks | Pubkey |
| 9 | event_queue | Pubkey |
| 10… | remaining | Vec< |
CancelOrderHalted#
Discriminator 00c0e902fcfb82a9 · data CancelOrderHalted · accounts CancelOrderHaltedInstructionAccounts.
Required accounts: 9; extras go to remaining.
Fields of CancelOrderHaltedInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | margin_ | Pubkey |
| 2 | dex_program | Pubkey |
| 3 | serum_ | Pubkey |
| 4 | open_orders | Pubkey |
| 5 | market | Pubkey |
| 6 | bids | Pubkey |
| 7 | asks | Pubkey |
| 8 | event_queue | Pubkey |
| 9… | remaining | Vec< |
CancelOrderNoError#
Discriminator 5f61d7cc6f33ccb8 · data CancelOrderNoError · accounts CancelOrderNoErrorInstructionAccounts.
Required accounts: 10; extras go to remaining.
Fields of CancelOrderNoErrorInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | authority | Pubkey |
| 1 | state | Pubkey |
| 2 | margin_ | Pubkey |
| 3 | dex_program | Pubkey |
| 4 | serum_ | Pubkey |
| 5 | open_orders | Pubkey |
| 6 | market | Pubkey |
| 7 | bids | Pubkey |
| 8 | asks | Pubkey |
| 9 | event_queue | Pubkey |
| 10… | remaining | Vec< |
ClaimReferralsRewards#
Discriminator 799c6d9f9edbd98f · data ClaimReferralsRewards · accounts ClaimReferralsRewardsInstructionAccounts.
No data fields.
Required accounts: 6; extras go to remaining.
Fields of ClaimReferralsRewardsInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | referrals_ | Pubkey |
| 2 | user_ | Pubkey |
| 3 | user_ | Pubkey |
| 4 | token_ | Pubkey |
| 5 | user | Pubkey |
| 6… | remaining | Vec< |
CleanZetaMarketHalted#
Discriminator 898c5e12e7e8d9cc · data CleanZetaMarketHalted · accounts CleanZetaMarketHaltedInstructionAccounts.
| Field | Type |
|---|---|
asset | Asset |
Required accounts: 4; extras go to remaining.
Fields of CleanZetaMarketHaltedInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | market | Pubkey |
| 2 | bids | Pubkey |
| 3 | asks | Pubkey |
| 4… | remaining | Vec< |
CleanZetaMarkets#
Discriminator 7a7f315944e4559d · data CleanZetaMarkets · accounts CleanZetaMarketsInstructionAccounts.
No data fields.
Required accounts: 2; extras go to remaining.
Fields of CleanZetaMarketsInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2… | remaining | Vec< |
CloseCrossMarginAccount#
Discriminator cbc4bb3c0daabe45 · data CloseCrossMarginAccount · accounts CloseCrossMarginAccountInstructionAccounts.
| Field | Type |
|---|---|
subaccount_ | u8 |
Required accounts: 3; extras go to remaining.
Fields of CloseCrossMarginAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | cross_ | Pubkey |
| 1 | cross_ | Pubkey |
| 2 | authority | Pubkey |
| 3… | remaining | Vec< |
CloseCrossMarginAccountManager#
Discriminator e8b6b689565876fc · data CloseCrossMarginAccountManager · accounts CloseCrossMarginAccountManagerInstructionAccounts.
No data fields.
Required accounts: 2; extras go to remaining.
Fields of CloseCrossMarginAccountManagerInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | cross_ | Pubkey |
| 1 | authority | Pubkey |
| 2… | remaining | Vec< |
CloseMarginAccount#
Discriminator 69d729efa6cf0167 · data CloseMarginAccount · accounts CloseMarginAccountInstructionAccounts.
No data fields.
Required accounts: 3; extras go to remaining.
Fields of CloseMarginAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | margin_ | Pubkey |
| 1 | authority | Pubkey |
| 2 | zeta_group | Pubkey |
| 3… | remaining | Vec< |
CloseOpenOrders#
Discriminator c8d83fef07e6ff14 · data CloseOpenOrders · accounts CloseOpenOrdersInstructionAccounts.
| Field | Type |
|---|---|
map_nonce | u8 |
Required accounts: 9; extras go to remaining.
Fields of CloseOpenOrdersInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | dex_program | Pubkey |
| 3 | open_orders | Pubkey |
| 4 | margin_ | Pubkey |
| 5 | authority | Pubkey |
| 6 | market | Pubkey |
| 7 | serum_ | Pubkey |
| 8 | open_ | Pubkey |
| 9… | remaining | Vec< |
CloseOpenOrdersV2#
Discriminator 4e98c4a344b37948 · data CloseOpenOrdersV2 · accounts CloseOpenOrdersV2InstructionAccounts.
| Field | Type |
|---|---|
map_nonce | u8 |
Required accounts: 8; extras go to remaining.
Fields of CloseOpenOrdersV2InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | dex_program | Pubkey |
| 2 | open_orders | Pubkey |
| 3 | margin_ | Pubkey |
| 4 | authority | Pubkey |
| 5 | market | Pubkey |
| 6 | serum_ | Pubkey |
| 7 | open_ | Pubkey |
| 8… | remaining | Vec< |
CloseOpenOrdersV3#
Discriminator cf0fc64ac5e4b01e · data CloseOpenOrdersV3 · accounts CloseOpenOrdersV3InstructionAccounts.
| Field | Type |
|---|---|
map_nonce | u8 |
asset | Asset |
Required accounts: 9; extras go to remaining.
Fields of CloseOpenOrdersV3InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | pricing | Pubkey |
| 2 | dex_program | Pubkey |
| 3 | open_orders | Pubkey |
| 4 | cross_ | Pubkey |
| 5 | authority | Pubkey |
| 6 | market | Pubkey |
| 7 | serum_ | Pubkey |
| 8 | open_ | Pubkey |
| 9… | remaining | Vec< |
CloseSpreadAccount#
Discriminator bee4fd10c994a1f0 · data CloseSpreadAccount · accounts CloseSpreadAccountInstructionAccounts.
No data fields.
Required accounts: 3; extras go to remaining.
Fields of CloseSpreadAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | spread_ | Pubkey |
| 1 | authority | Pubkey |
| 2 | zeta_group | Pubkey |
| 3… | remaining | Vec< |
CollectTreasuryFunds#
Discriminator f3d504ec1af6b4ae · data CollectTreasuryFunds · accounts CollectTreasuryFundsInstructionAccounts.
| Field | Type |
|---|---|
amount | u64 |
Required accounts: 5; extras go to remaining.
Fields of CollectTreasuryFundsInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | treasury_ | Pubkey |
| 2 | collection_ | Pubkey |
| 3 | token_ | Pubkey |
| 4 | admin | Pubkey |
| 5… | remaining | Vec< |
CrankEventQueue#
From the program's IDL:
The only events that need to be cranked are maker fills.
Discriminator 438561dfb2bcebb5 · data CrankEventQueue · accounts CrankEventQueueInstructionAccounts.
| Field | Type |
|---|---|
asset | Asset |
Required accounts: 7; extras go to remaining.
Fields of CrankEventQueueInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | pricing | Pubkey |
| 2 | market | Pubkey |
| 3 | event_queue | Pubkey |
| 4 | dex_program | Pubkey |
| 5 | serum_ | Pubkey |
| 6 | perp_ | Pubkey |
| 7… | remaining | Vec< |
Deposit#
Discriminator f223c68952e1f2b6 · data Deposit · accounts DepositInstructionAccounts.
| Field | Type |
|---|---|
amount | u64 |
Required accounts: 9; extras go to remaining.
Fields of DepositInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | zeta_group | Pubkey |
| 1 | margin_ | Pubkey |
| 2 | vault | Pubkey |
| 3 | user_ | Pubkey |
| 4 | socialized_ | Pubkey |
| 5 | authority | Pubkey |
| 6 | token_ | Pubkey |
| 7 | state | Pubkey |
| 8 | greeks | Pubkey |
| 9… | remaining | Vec< |
DepositInsuranceVault#
Discriminator 2f35192f6d7a1616 · data DepositInsuranceVault · accounts DepositInsuranceVaultInstructionAccounts.
| Field | Type |
|---|---|
amount | u64 |
Required accounts: 8; extras go to remaining.
Fields of DepositInsuranceVaultInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | insurance_ | Pubkey |
| 2 | insurance_ | Pubkey |
| 3 | user_ | Pubkey |
| 4 | zeta_vault | Pubkey |
| 5 | socialized_ | Pubkey |
| 6 | authority | Pubkey |
| 7 | token_ | Pubkey |
| 8… | remaining | Vec< |
DepositInsuranceVaultV2#
Discriminator f22c18135b3b07c9 · data DepositInsuranceVaultV2 · accounts DepositInsuranceVaultV2InstructionAccounts.
| Field | Type |
|---|---|
amount | u64 |
Required accounts: 9; extras go to remaining.
Fields of DepositInsuranceVaultV2InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | pricing | Pubkey |
| 2 | insurance_ | Pubkey |
| 3 | insurance_ | Pubkey |
| 4 | user_ | Pubkey |
| 5 | zeta_vault | Pubkey |
| 6 | socialized_ | Pubkey |
| 7 | authority | Pubkey |
| 8 | token_ | Pubkey |
| 9… | remaining | Vec< |
DepositV2#
Discriminator 6d4b4599acda9213 · data DepositV2 · accounts DepositV2InstructionAccounts.
| Field | Type |
|---|---|
amount | u64 |
Required accounts: 8; extras go to remaining.
Fields of DepositV2InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | margin_ | Pubkey |
| 1 | vault | Pubkey |
| 2 | user_ | Pubkey |
| 3 | socialized_ | Pubkey |
| 4 | authority | Pubkey |
| 5 | token_ | Pubkey |
| 6 | state | Pubkey |
| 7 | pricing | Pubkey |
| 8… | remaining | Vec< |
EditDelegatedPubkey#
Discriminator 89f547592ef91635 · data EditDelegatedPubkey · accounts EditDelegatedPubkeyInstructionAccounts.
| Field | Type |
|---|---|
new_key | Pubkey |
Required accounts: 2; extras go to remaining.
Fields of EditDelegatedPubkeyInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | margin_ | Pubkey |
| 1 | authority | Pubkey |
| 2… | remaining | Vec< |
ExpireSeries#
Discriminator 2da269622c15ab7f · data ExpireSeries · accounts ExpireSeriesInstructionAccounts.
| Field | Type |
|---|---|
settlement_ | u8 |
No named accounts.
ExpireSeriesOverride#
Discriminator 6816227b56e08246 · data ExpireSeriesOverride · accounts ExpireSeriesOverrideInstructionAccounts.
| Field | Type |
|---|---|
args | ExpireSeriesOverrideArgs |
No named accounts.
ForceCancelOrderByOrderId#
Discriminator b6eb30b3f885d2f0 · data ForceCancelOrderByOrderId · accounts ForceCancelOrderByOrderIdInstructionAccounts.
Required accounts: 14; extras go to remaining.
Fields of ForceCancelOrderByOrderIdInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | zeta_group | Pubkey |
| 1 | greeks | Pubkey |
| 2 | oracle | Pubkey |
| 3 | oracle_ | Pubkey |
| 4 | oracle_ | Pubkey |
| 5 | state | Pubkey |
| 6 | margin_ | Pubkey |
| 7 | dex_program | Pubkey |
| 8 | serum_ | Pubkey |
| 9 | open_orders | Pubkey |
| 10 | market | Pubkey |
| 11 | bids | Pubkey |
| 12 | asks | Pubkey |
| 13 | event_queue | Pubkey |
| 14… | remaining | Vec< |
ForceCancelOrderByOrderIdV2#
Discriminator 51f33c5adec929de · data ForceCancelOrderByOrderIdV2 · accounts ForceCancelOrderByOrderIdV2InstructionAccounts.
Required accounts: 13; extras go to remaining.
Fields of ForceCancelOrderByOrderIdV2InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | pricing | Pubkey |
| 1 | oracle | Pubkey |
| 2 | oracle_ | Pubkey |
| 3 | oracle_ | Pubkey |
| 4 | state | Pubkey |
| 5 | margin_ | Pubkey |
| 6 | dex_program | Pubkey |
| 7 | serum_ | Pubkey |
| 8 | open_orders | Pubkey |
| 9 | market | Pubkey |
| 10 | bids | Pubkey |
| 11 | asks | Pubkey |
| 12 | event_queue | Pubkey |
| 13… | remaining | Vec< |
ForceCancelOrders#
Discriminator 40b5c43fde4840e8 · data ForceCancelOrders · accounts ForceCancelOrdersInstructionAccounts.
| Field | Type |
|---|---|
asset | Asset |
Required accounts: 14; extras go to remaining.
Fields of ForceCancelOrdersInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | zeta_group | Pubkey |
| 1 | greeks | Pubkey |
| 2 | oracle | Pubkey |
| 3 | oracle_ | Pubkey |
| 4 | oracle_ | Pubkey |
| 5 | state | Pubkey |
| 6 | margin_ | Pubkey |
| 7 | dex_program | Pubkey |
| 8 | serum_ | Pubkey |
| 9 | open_orders | Pubkey |
| 10 | market | Pubkey |
| 11 | bids | Pubkey |
| 12 | asks | Pubkey |
| 13 | event_queue | Pubkey |
| 14… | remaining | Vec< |
ForceCancelOrdersV2#
Discriminator 0e3e95ca8f113873 · data ForceCancelOrdersV2 · accounts ForceCancelOrdersV2InstructionAccounts.
| Field | Type |
|---|---|
asset | Asset |
Required accounts: 13; extras go to remaining.
Fields of ForceCancelOrdersV2InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | pricing | Pubkey |
| 1 | oracle | Pubkey |
| 2 | oracle_ | Pubkey |
| 3 | oracle_ | Pubkey |
| 4 | state | Pubkey |
| 5 | margin_ | Pubkey |
| 6 | dex_program | Pubkey |
| 7 | serum_ | Pubkey |
| 8 | open_orders | Pubkey |
| 9 | market | Pubkey |
| 10 | bids | Pubkey |
| 11 | asks | Pubkey |
| 12 | event_queue | Pubkey |
| 13… | remaining | Vec< |
Halt#
Discriminator 189c087941030552 · data Halt · accounts HaltInstructionAccounts.
| Field | Type |
|---|---|
asset | Asset |
Required accounts: 3; extras go to remaining.
Fields of HaltInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | pricing | Pubkey |
| 2 | admin | Pubkey |
| 3… | remaining | Vec< |
InitializeCombinedInsuranceVault#
Discriminator 4d12b590db54066a · data InitializeCombinedInsuranceVault · accounts InitializeCombinedInsuranceVaultInstructionAccounts.
| Field | Type |
|---|---|
nonce | u8 |
Required accounts: 6; extras go to remaining.
Fields of InitializeCombinedInsuranceVaultInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | insurance_ | Pubkey |
| 2 | token_ | Pubkey |
| 3 | usdc_mint | Pubkey |
| 4 | admin | Pubkey |
| 5 | system_ | Pubkey |
| 6… | remaining | Vec< |
InitializeCombinedSocializedLossAccount#
Discriminator 886c58f5e6e06552 · data InitializeCombinedSocializedLossAccount · accounts InitializeCombinedSocializedLossAccountInstructionAccounts.
| Field | Type |
|---|---|
nonce | u8 |
Required accounts: 6; extras go to remaining.
Fields of InitializeCombinedSocializedLossAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | socialized_ | Pubkey |
| 2 | token_ | Pubkey |
| 3 | usdc_mint | Pubkey |
| 4 | admin | Pubkey |
| 5 | system_ | Pubkey |
| 6… | remaining | Vec< |
InitializeCombinedVault#
Discriminator 3b6369114977e5fc · data InitializeCombinedVault · accounts InitializeCombinedVaultInstructionAccounts.
| Field | Type |
|---|---|
nonce | u8 |
Required accounts: 6; extras go to remaining.
Fields of InitializeCombinedVaultInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | vault | Pubkey |
| 2 | token_ | Pubkey |
| 3 | usdc_mint | Pubkey |
| 4 | admin | Pubkey |
| 5 | system_ | Pubkey |
| 6… | remaining | Vec< |
InitializeCrossMarginAccount#
Discriminator 1b1ae432d2d3cd5e · data InitializeCrossMarginAccount · accounts InitializeCrossMarginAccountInstructionAccounts.
| Field | Type |
|---|---|
subaccount_ | u8 |
Required accounts: 6; extras go to remaining.
Fields of InitializeCrossMarginAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | cross_ | Pubkey |
| 1 | cross_ | Pubkey |
| 2 | authority | Pubkey |
| 3 | payer | Pubkey |
| 4 | zeta_ | Pubkey |
| 5 | system_ | Pubkey |
| 6… | remaining | Vec< |
InitializeCrossMarginAccountManager#
Discriminator 489a0f1ca5d7d1c7 · data InitializeCrossMarginAccountManager · accounts InitializeCrossMarginAccountManagerInstructionAccounts.
No data fields.
Required accounts: 5; extras go to remaining.
Fields of InitializeCrossMarginAccountManagerInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | cross_ | Pubkey |
| 1 | authority | Pubkey |
| 2 | payer | Pubkey |
| 3 | zeta_ | Pubkey |
| 4 | system_ | Pubkey |
| 5… | remaining | Vec< |
InitializeInsuranceDepositAccount#
Discriminator 55a372798ba72925 · data InitializeInsuranceDepositAccount · accounts InitializeInsuranceDepositAccountInstructionAccounts.
| Field | Type |
|---|---|
nonce | u8 |
Required accounts: 5; extras go to remaining.
Fields of InitializeInsuranceDepositAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | insurance_ | Pubkey |
| 1 | authority | Pubkey |
| 2 | payer | Pubkey |
| 3 | system_ | Pubkey |
| 4 | whitelist_ | Pubkey |
| 5… | remaining | Vec< |
InitializeMarginAccount#
Discriminator 43eb4266a7ab78c5 · data InitializeMarginAccount · accounts InitializeMarginAccountInstructionAccounts.
No data fields.
Required accounts: 6; extras go to remaining.
Fields of InitializeMarginAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | margin_ | Pubkey |
| 1 | authority | Pubkey |
| 2 | payer | Pubkey |
| 3 | zeta_ | Pubkey |
| 4 | system_ | Pubkey |
| 5 | zeta_group | Pubkey |
| 6… | remaining | Vec< |
InitializeMarketIndexes#
Discriminator 5b3fcd901453b178 · data InitializeMarketIndexes · accounts InitializeMarketIndexesInstructionAccounts.
| Field | Type |
|---|---|
nonce | u8 |
asset | Asset |
Required accounts: 5; extras go to remaining.
Fields of InitializeMarketIndexesInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | market_ | Pubkey |
| 2 | admin | Pubkey |
| 3 | system_ | Pubkey |
| 4 | pricing | Pubkey |
| 5… | remaining | Vec< |
InitializeMarketNode#
Discriminator 32761515b3f81780 · data InitializeMarketNode · accounts InitializeMarketNodeInstructionAccounts.
| Field | Type |
|---|---|
args | InitializeMarketNodeArgs |
Required accounts: 5; extras go to remaining.
Fields of InitializeMarketNodeInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | zeta_group | Pubkey |
| 1 | market_node | Pubkey |
| 2 | greeks | Pubkey |
| 3 | payer | Pubkey |
| 4 | system_ | Pubkey |
| 5… | remaining | Vec< |
InitializeMarketStrikes#
Discriminator bd2eff217e852bab · data InitializeMarketStrikes · accounts InitializeMarketStrikesInstructionAccounts.
No data fields.
Required accounts: 5; extras go to remaining.
Fields of InitializeMarketStrikesInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | oracle | Pubkey |
| 3 | oracle_ | Pubkey |
| 4 | oracle_ | Pubkey |
| 5… | remaining | Vec< |
InitializeMarketTifEpochCycle#
Discriminator c78fad93cacc40cc · data InitializeMarketTifEpochCycle · accounts InitializeMarketTifEpochCycleInstructionAccounts.
| Field | Type |
|---|---|
epoch_ | u16 |
Required accounts: 5; extras go to remaining.
Fields of InitializeMarketTifEpochCycleInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | admin | Pubkey |
| 2 | market | Pubkey |
| 3 | serum_ | Pubkey |
| 4 | dex_program | Pubkey |
| 5… | remaining | Vec< |
InitializeOpenOrders#
Discriminator 37ea1052642a7ec0 · data InitializeOpenOrders · accounts InitializeOpenOrdersInstructionAccounts.
No data fields.
Required accounts: 12; extras go to remaining.
Fields of InitializeOpenOrdersInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | dex_program | Pubkey |
| 3 | system_ | Pubkey |
| 4 | open_orders | Pubkey |
| 5 | margin_ | Pubkey |
| 6 | authority | Pubkey |
| 7 | payer | Pubkey |
| 8 | market | Pubkey |
| 9 | serum_ | Pubkey |
| 10 | open_ | Pubkey |
| 11 | rent | Pubkey |
| 12… | remaining | Vec< |
InitializeOpenOrdersV2#
Discriminator dc11551470ae94e3 · data InitializeOpenOrdersV2 · accounts InitializeOpenOrdersV2InstructionAccounts.
No data fields.
Required accounts: 11; extras go to remaining.
Fields of InitializeOpenOrdersV2InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | dex_program | Pubkey |
| 2 | system_ | Pubkey |
| 3 | open_orders | Pubkey |
| 4 | margin_ | Pubkey |
| 5 | authority | Pubkey |
| 6 | payer | Pubkey |
| 7 | market | Pubkey |
| 8 | serum_ | Pubkey |
| 9 | open_ | Pubkey |
| 10 | rent | Pubkey |
| 11… | remaining | Vec< |
InitializeOpenOrdersV3#
Discriminator 16bf8b88792754ca · data InitializeOpenOrdersV3 · accounts InitializeOpenOrdersV3InstructionAccounts.
| Field | Type |
|---|---|
asset | Asset |
Required accounts: 11; extras go to remaining.
Fields of InitializeOpenOrdersV3InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | dex_program | Pubkey |
| 2 | system_ | Pubkey |
| 3 | open_orders | Pubkey |
| 4 | cross_ | Pubkey |
| 5 | authority | Pubkey |
| 6 | payer | Pubkey |
| 7 | market | Pubkey |
| 8 | serum_ | Pubkey |
| 9 | open_ | Pubkey |
| 10 | rent | Pubkey |
| 11… | remaining | Vec< |
InitializePerpSyncQueue#
Discriminator 0a379ae081aea108 · data InitializePerpSyncQueue · accounts InitializePerpSyncQueueInstructionAccounts.
| Field | Type |
|---|---|
nonce | u8 |
asset | Asset |
Required accounts: 6; extras go to remaining.
Fields of InitializePerpSyncQueueInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | admin | Pubkey |
| 1 | zeta_ | Pubkey |
| 2 | state | Pubkey |
| 3 | perp_ | Pubkey |
| 4 | pricing | Pubkey |
| 5 | system_ | Pubkey |
| 6… | remaining | Vec< |
InitializeReferrerAccount#
Discriminator 2d5cca4447433304 · data InitializeReferrerAccount · accounts InitializeReferrerAccountInstructionAccounts.
No data fields.
Required accounts: 3; extras go to remaining.
Fields of InitializeReferrerAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | referrer | Pubkey |
| 1 | referrer_ | Pubkey |
| 2 | system_ | Pubkey |
| 3… | remaining | Vec< |
InitializeReferrerAlias#
Discriminator 431c034e8c6c148a · data InitializeReferrerAlias · accounts InitializeReferrerAliasInstructionAccounts.
| Field | Type |
|---|---|
alias | String |
Required accounts: 4; extras go to remaining.
Fields of InitializeReferrerAliasInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | referrer | Pubkey |
| 1 | referrer_ | Pubkey |
| 2 | referrer_ | Pubkey |
| 3 | system_ | Pubkey |
| 4… | remaining | Vec< |
InitializeSpreadAccount#
Discriminator ce56fb1b5b6f17d3 · data InitializeSpreadAccount · accounts InitializeSpreadAccountInstructionAccounts.
No data fields.
Required accounts: 6; extras go to remaining.
Fields of InitializeSpreadAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | spread_ | Pubkey |
| 1 | authority | Pubkey |
| 2 | payer | Pubkey |
| 3 | zeta_ | Pubkey |
| 4 | system_ | Pubkey |
| 5 | zeta_group | Pubkey |
| 6… | remaining | Vec< |
InitializeUnderlying#
Discriminator 726cd55caf7c2b13 · data InitializeUnderlying · accounts InitializeUnderlyingInstructionAccounts.
| Field | Type |
|---|---|
flex_ | bool |
Required accounts: 6; extras go to remaining.
Fields of InitializeUnderlyingInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | admin | Pubkey |
| 1 | zeta_ | Pubkey |
| 2 | state | Pubkey |
| 3 | system_ | Pubkey |
| 4 | underlying | Pubkey |
| 5 | underlying_ | Pubkey |
| 6… | remaining | Vec< |
InitializeWhitelistDepositAccount#
Discriminator 3de773db51f39e8a · data InitializeWhitelistDepositAccount · accounts InitializeWhitelistDepositAccountInstructionAccounts.
| Field | Type |
|---|---|
nonce | u8 |
Required accounts: 5; extras go to remaining.
Fields of InitializeWhitelistDepositAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | whitelist_ | Pubkey |
| 1 | admin | Pubkey |
| 2 | user | Pubkey |
| 3 | system_ | Pubkey |
| 4 | state | Pubkey |
| 5… | remaining | Vec< |
InitializeWhitelistInsuranceAccount#
Discriminator 2b2ef09b50045666 · data InitializeWhitelistInsuranceAccount · accounts InitializeWhitelistInsuranceAccountInstructionAccounts.
| Field | Type |
|---|---|
nonce | u8 |
Required accounts: 5; extras go to remaining.
Fields of InitializeWhitelistInsuranceAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | whitelist_ | Pubkey |
| 1 | admin | Pubkey |
| 2 | user | Pubkey |
| 3 | system_ | Pubkey |
| 4 | state | Pubkey |
| 5… | remaining | Vec< |
InitializeWhitelistTradingFeesAccount#
Discriminator c681d8b9f71d69be · data InitializeWhitelistTradingFeesAccount · accounts InitializeWhitelistTradingFeesAccountInstructionAccounts.
| Field | Type |
|---|---|
nonce | u8 |
Required accounts: 5; extras go to remaining.
Fields of InitializeWhitelistTradingFeesAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | whitelist_ | Pubkey |
| 1 | admin | Pubkey |
| 2 | user | Pubkey |
| 3 | system_ | Pubkey |
| 4 | state | Pubkey |
| 5… | remaining | Vec< |
InitializeZetaGroup#
Discriminator 068724e82327fa47 · data InitializeZetaGroup · accounts InitializeZetaGroupInstructionAccounts.
| Field | Type |
|---|---|
args | InitializeZetaGroupArgs |
Required accounts: 18; extras go to remaining.
Fields of InitializeZetaGroupInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | admin | Pubkey |
| 2 | system_ | Pubkey |
| 3 | underlying_ | Pubkey |
| 4 | zeta_ | Pubkey |
| 5 | oracle | Pubkey |
| 6 | oracle_ | Pubkey |
| 7 | oracle_ | Pubkey |
| 8 | zeta_group | Pubkey |
| 9 | greeks | Pubkey |
| 10 | perp_ | Pubkey |
| 11 | underlying | Pubkey |
| 12 | vault | Pubkey |
| 13 | insurance_ | Pubkey |
| 14 | socialized_ | Pubkey |
| 15 | token_ | Pubkey |
| 16 | usdc_mint | Pubkey |
| 17 | rent | Pubkey |
| 18… | remaining | Vec< |
InitializeZetaMarket#
Discriminator 74efe2952ea3dd03 · data InitializeZetaMarket · accounts InitializeZetaMarketInstructionAccounts.
| Field | Type |
|---|---|
args | InitializeMarketArgs |
Required accounts: 22; extras go to remaining.
Fields of InitializeZetaMarketInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | market_ | Pubkey |
| 2 | pricing | Pubkey |
| 3 | admin | Pubkey |
| 4 | market | Pubkey |
| 5 | request_ | Pubkey |
| 6 | event_queue | Pubkey |
| 7 | bids | Pubkey |
| 8 | asks | Pubkey |
| 9 | base_mint | Pubkey |
| 10 | quote_mint | Pubkey |
| 11 | zeta_ | Pubkey |
| 12 | zeta_ | Pubkey |
| 13 | dex_ | Pubkey |
| 14 | dex_ | Pubkey |
| 15 | vault_owner | Pubkey |
| 16 | mint_ | Pubkey |
| 17 | serum_ | Pubkey |
| 18 | dex_program | Pubkey |
| 19 | system_ | Pubkey |
| 20 | token_ | Pubkey |
| 21 | rent | Pubkey |
| 22… | remaining | Vec< |
InitializeZetaPricing#
Discriminator 23d1b41df5c77d10 · data InitializeZetaPricing · accounts InitializeZetaPricingInstructionAccounts.
| Field | Type |
|---|---|
args | InitializeZetaPricingArgs |
Required accounts: 6; extras go to remaining.
Fields of InitializeZetaPricingInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | pricing | Pubkey |
| 2 | rent | Pubkey |
| 3 | system_ | Pubkey |
| 4 | token_ | Pubkey |
| 5 | admin | Pubkey |
| 6… | remaining | Vec< |
InitializeZetaReferralsRewardsWallet#
Discriminator f5e5df780786f7f8 · data InitializeZetaReferralsRewardsWallet · accounts InitializeZetaReferralsRewardsWalletInstructionAccounts.
No data fields.
Required accounts: 7; extras go to remaining.
Fields of InitializeZetaReferralsRewardsWalletInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | referrals_ | Pubkey |
| 2 | rent | Pubkey |
| 3 | system_ | Pubkey |
| 4 | token_ | Pubkey |
| 5 | usdc_mint | Pubkey |
| 6 | admin | Pubkey |
| 7… | remaining | Vec< |
InitializeZetaState#
Discriminator 44274b8ebf925ede · data InitializeZetaState · accounts InitializeZetaStateInstructionAccounts.
| Field | Type |
|---|---|
args | InitializeStateArgs |
Required accounts: 12; extras go to remaining.
Fields of InitializeZetaStateInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | mint_ | Pubkey |
| 2 | serum_ | Pubkey |
| 3 | treasury_ | Pubkey |
| 4 | referrals_ | Pubkey |
| 5 | referrals_ | Pubkey |
| 6 | rent | Pubkey |
| 7 | system_ | Pubkey |
| 8 | token_ | Pubkey |
| 9 | usdc_mint | Pubkey |
| 10 | admin | Pubkey |
| 11 | secondary_ | Pubkey |
| 12… | remaining | Vec< |
InitializeZetaTreasuryWallet#
Discriminator f939bb66b86825e7 · data InitializeZetaTreasuryWallet · accounts InitializeZetaTreasuryWalletInstructionAccounts.
No data fields.
Required accounts: 7; extras go to remaining.
Fields of InitializeZetaTreasuryWalletInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | treasury_ | Pubkey |
| 2 | rent | Pubkey |
| 3 | system_ | Pubkey |
| 4 | token_ | Pubkey |
| 5 | usdc_mint | Pubkey |
| 6 | admin | Pubkey |
| 7… | remaining | Vec< |
Liquidate#
Discriminator dfb3e27d302e274a · data Liquidate · accounts LiquidateInstructionAccounts.
| Field | Type |
|---|---|
size | u64 |
Required accounts: 10; extras go to remaining.
Fields of LiquidateInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | liquidator | Pubkey |
| 2 | liquidator_ | Pubkey |
| 3 | greeks | Pubkey |
| 4 | oracle | Pubkey |
| 5 | oracle_ | Pubkey |
| 6 | oracle_ | Pubkey |
| 7 | market | Pubkey |
| 8 | zeta_group | Pubkey |
| 9 | liquidated_ | Pubkey |
| 10… | remaining | Vec< |
LiquidateV2#
Discriminator 0f56553702e1a1eb · data LiquidateV2 · accounts LiquidateV2InstructionAccounts.
| Field | Type |
|---|---|
size | u64 |
asset | Asset |
Required accounts: 9; extras go to remaining.
Fields of LiquidateV2InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | liquidator | Pubkey |
| 2 | liquidator_ | Pubkey |
| 3 | pricing | Pubkey |
| 4 | oracle | Pubkey |
| 5 | oracle_ | Pubkey |
| 6 | oracle_ | Pubkey |
| 7 | market | Pubkey |
| 8 | liquidated_ | Pubkey |
| 9… | remaining | Vec< |
MigrateToCrossMarginAccount#
Discriminator 9d356b68b8bd64dc · data MigrateToCrossMarginAccount · accounts MigrateToCrossMarginAccountInstructionAccounts.
No data fields.
Required accounts: 3; extras go to remaining.
Fields of MigrateToCrossMarginAccountInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | cross_ | Pubkey |
| 1 | pricing | Pubkey |
| 2 | authority | Pubkey |
| 3… | remaining | Vec< |
OverrideExpiry#
Discriminator 81c575726c77cf88 · data OverrideExpiry · accounts OverrideExpiryInstructionAccounts.
| Field | Type |
|---|---|
args | OverrideExpiryArgs |
Required accounts: 3; extras go to remaining.
Fields of OverrideExpiryInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | admin | Pubkey |
| 2 | zeta_group | Pubkey |
| 3… | remaining | Vec< |
PlaceOrder#
Discriminator 33c29baf6d82606a · data PlaceOrder · accounts PlaceOrderInstructionAccounts.
| Field | Type |
|---|---|
price | u64 |
size | u64 |
side | Side |
client_ | Option<u64> |
Required accounts: 26; extras go to remaining.
Fields of PlaceOrderInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | margin_ | Pubkey |
| 3 | authority | Pubkey |
| 4 | dex_program | Pubkey |
| 5 | token_ | Pubkey |
| 6 | serum_ | Pubkey |
| 7 | greeks | Pubkey |
| 8 | open_orders | Pubkey |
| 9 | rent | Pubkey |
| 10 | market | Pubkey |
| 11 | request_ | Pubkey |
| 12 | event_queue | Pubkey |
| 13 | bids | Pubkey |
| 14 | asks | Pubkey |
| 15 | order_ | Pubkey |
| 16 | coin_vault | Pubkey |
| 17 | pc_vault | Pubkey |
| 18 | coin_wallet | Pubkey |
| 19 | pc_wallet | Pubkey |
| 20 | oracle | Pubkey |
| 21 | oracle_ | Pubkey |
| 22 | oracle_ | Pubkey |
| 23 | market_node | Pubkey |
| 24 | market_mint | Pubkey |
| 25 | mint_ | Pubkey |
| 26… | remaining | Vec< |
PlaceOrderV2#
Discriminator e86f73c4ed8f3ecc · data PlaceOrderV2 · accounts PlaceOrderV2InstructionAccounts.
Required accounts: 26; extras go to remaining.
Fields of PlaceOrderV2InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | margin_ | Pubkey |
| 3 | authority | Pubkey |
| 4 | dex_program | Pubkey |
| 5 | token_ | Pubkey |
| 6 | serum_ | Pubkey |
| 7 | greeks | Pubkey |
| 8 | open_orders | Pubkey |
| 9 | rent | Pubkey |
| 10 | market | Pubkey |
| 11 | request_ | Pubkey |
| 12 | event_queue | Pubkey |
| 13 | bids | Pubkey |
| 14 | asks | Pubkey |
| 15 | order_ | Pubkey |
| 16 | coin_vault | Pubkey |
| 17 | pc_vault | Pubkey |
| 18 | coin_wallet | Pubkey |
| 19 | pc_wallet | Pubkey |
| 20 | oracle | Pubkey |
| 21 | oracle_ | Pubkey |
| 22 | oracle_ | Pubkey |
| 23 | market_node | Pubkey |
| 24 | market_mint | Pubkey |
| 25 | mint_ | Pubkey |
| 26… | remaining | Vec< |
PlaceOrderV3#
Discriminator 925d0ea79f14063a · data PlaceOrderV3 · accounts PlaceOrderV3InstructionAccounts.
Required accounts: 26; extras go to remaining.
Fields of PlaceOrderV3InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | margin_ | Pubkey |
| 3 | authority | Pubkey |
| 4 | dex_program | Pubkey |
| 5 | token_ | Pubkey |
| 6 | serum_ | Pubkey |
| 7 | greeks | Pubkey |
| 8 | open_orders | Pubkey |
| 9 | rent | Pubkey |
| 10 | market | Pubkey |
| 11 | request_ | Pubkey |
| 12 | event_queue | Pubkey |
| 13 | bids | Pubkey |
| 14 | asks | Pubkey |
| 15 | order_ | Pubkey |
| 16 | coin_vault | Pubkey |
| 17 | pc_vault | Pubkey |
| 18 | coin_wallet | Pubkey |
| 19 | pc_wallet | Pubkey |
| 20 | oracle | Pubkey |
| 21 | oracle_ | Pubkey |
| 22 | oracle_ | Pubkey |
| 23 | market_node | Pubkey |
| 24 | market_mint | Pubkey |
| 25 | mint_ | Pubkey |
| 26… | remaining | Vec< |
PlaceOrderV4#
Discriminator f3f8d58fb84f2949 · data PlaceOrderV4 · accounts PlaceOrderV4InstructionAccounts.
| Field | Type |
|---|---|
price | u64 |
size | u64 |
side | Side |
order_type | OrderType |
client_ | Option<u64> |
tag | Option< |
tif_offset | Option<u16> |
Required accounts: 26; extras go to remaining.
Fields of PlaceOrderV4InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | margin_ | Pubkey |
| 3 | authority | Pubkey |
| 4 | dex_program | Pubkey |
| 5 | token_ | Pubkey |
| 6 | serum_ | Pubkey |
| 7 | greeks | Pubkey |
| 8 | open_orders | Pubkey |
| 9 | rent | Pubkey |
| 10 | market | Pubkey |
| 11 | request_ | Pubkey |
| 12 | event_queue | Pubkey |
| 13 | bids | Pubkey |
| 14 | asks | Pubkey |
| 15 | order_ | Pubkey |
| 16 | coin_vault | Pubkey |
| 17 | pc_vault | Pubkey |
| 18 | coin_wallet | Pubkey |
| 19 | pc_wallet | Pubkey |
| 20 | oracle | Pubkey |
| 21 | oracle_ | Pubkey |
| 22 | oracle_ | Pubkey |
| 23 | market_node | Pubkey |
| 24 | market_mint | Pubkey |
| 25 | mint_ | Pubkey |
| 26… | remaining | Vec< |
PlacePerpOrder#
Discriminator 45a15dca787e4cb9 · data PlacePerpOrder · accounts PlacePerpOrderInstructionAccounts.
Required accounts: 26; extras go to remaining.
Fields of PlacePerpOrderInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | margin_ | Pubkey |
| 3 | authority | Pubkey |
| 4 | dex_program | Pubkey |
| 5 | token_ | Pubkey |
| 6 | serum_ | Pubkey |
| 7 | greeks | Pubkey |
| 8 | open_orders | Pubkey |
| 9 | rent | Pubkey |
| 10 | market | Pubkey |
| 11 | request_ | Pubkey |
| 12 | event_queue | Pubkey |
| 13 | bids | Pubkey |
| 14 | asks | Pubkey |
| 15 | order_ | Pubkey |
| 16 | coin_vault | Pubkey |
| 17 | pc_vault | Pubkey |
| 18 | coin_wallet | Pubkey |
| 19 | pc_wallet | Pubkey |
| 20 | oracle | Pubkey |
| 21 | oracle_ | Pubkey |
| 22 | oracle_ | Pubkey |
| 23 | market_mint | Pubkey |
| 24 | mint_ | Pubkey |
| 25 | perp_ | Pubkey |
| 26… | remaining | Vec< |
PlacePerpOrderV2#
Discriminator cd5482b43f760acf · data PlacePerpOrderV2 · accounts PlacePerpOrderV2InstructionAccounts.
| Field | Type |
|---|---|
price | u64 |
size | u64 |
side | Side |
order_type | OrderType |
client_ | Option<u64> |
tag | Option< |
tif_offset | Option<u16> |
Required accounts: 26; extras go to remaining.
Fields of PlacePerpOrderV2InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | margin_ | Pubkey |
| 3 | authority | Pubkey |
| 4 | dex_program | Pubkey |
| 5 | token_ | Pubkey |
| 6 | serum_ | Pubkey |
| 7 | greeks | Pubkey |
| 8 | open_orders | Pubkey |
| 9 | rent | Pubkey |
| 10 | market | Pubkey |
| 11 | request_ | Pubkey |
| 12 | event_queue | Pubkey |
| 13 | bids | Pubkey |
| 14 | asks | Pubkey |
| 15 | order_ | Pubkey |
| 16 | coin_vault | Pubkey |
| 17 | pc_vault | Pubkey |
| 18 | coin_wallet | Pubkey |
| 19 | pc_wallet | Pubkey |
| 20 | oracle | Pubkey |
| 21 | oracle_ | Pubkey |
| 22 | oracle_ | Pubkey |
| 23 | market_mint | Pubkey |
| 24 | mint_ | Pubkey |
| 25 | perp_ | Pubkey |
| 26… | remaining | Vec< |
PlacePerpOrderV3#
Discriminator 5bf660073516eae1 · data PlacePerpOrderV3 · accounts PlacePerpOrderV3InstructionAccounts.
| Field | Type |
|---|---|
price | u64 |
size | u64 |
side | Side |
order_type | OrderType |
client_ | Option<u64> |
tag | Option< |
tif_offset | Option<u16> |
asset | Asset |
Required accounts: 25; extras go to remaining.
Fields of PlacePerpOrderV3InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | pricing | Pubkey |
| 2 | margin_ | Pubkey |
| 3 | authority | Pubkey |
| 4 | dex_program | Pubkey |
| 5 | token_ | Pubkey |
| 6 | serum_ | Pubkey |
| 7 | open_orders | Pubkey |
| 8 | rent | Pubkey |
| 9 | market | Pubkey |
| 10 | request_ | Pubkey |
| 11 | event_queue | Pubkey |
| 12 | bids | Pubkey |
| 13 | asks | Pubkey |
| 14 | order_ | Pubkey |
| 15 | coin_vault | Pubkey |
| 16 | pc_vault | Pubkey |
| 17 | coin_wallet | Pubkey |
| 18 | pc_wallet | Pubkey |
| 19 | oracle | Pubkey |
| 20 | oracle_ | Pubkey |
| 21 | oracle_ | Pubkey |
| 22 | market_mint | Pubkey |
| 23 | mint_ | Pubkey |
| 24 | perp_ | Pubkey |
| 25… | remaining | Vec< |
PositionMovement#
Discriminator 75104bf9b37fab93 · data PositionMovement · accounts PositionMovementInstructionAccounts.
| Field | Type |
|---|---|
movement_ | MovementType |
movements | Vec< |
Required accounts: 9; extras go to remaining.
Fields of PositionMovementInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | margin_ | Pubkey |
| 3 | spread_ | Pubkey |
| 4 | authority | Pubkey |
| 5 | greeks | Pubkey |
| 6 | oracle | Pubkey |
| 7 | oracle_ | Pubkey |
| 8 | oracle_ | Pubkey |
| 9… | remaining | Vec< |
PruneExpiredTifOrders#
Discriminator 18e3e2d45d1af2e6 · data PruneExpiredTifOrders · accounts PruneExpiredTifOrdersInstructionAccounts.
No data fields.
Required accounts: 7; extras go to remaining.
Fields of PruneExpiredTifOrdersInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | dex_program | Pubkey |
| 1 | state | Pubkey |
| 2 | serum_ | Pubkey |
| 3 | market | Pubkey |
| 4 | bids | Pubkey |
| 5 | asks | Pubkey |
| 6 | event_queue | Pubkey |
| 7… | remaining | Vec< |
RebalanceInsuranceVault#
Discriminator 0bc442eb3beddf6f · data RebalanceInsuranceVault · accounts RebalanceInsuranceVaultInstructionAccounts.
No data fields.
Required accounts: 6; extras go to remaining.
Fields of RebalanceInsuranceVaultInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_vault | Pubkey |
| 2 | insurance_ | Pubkey |
| 3 | treasury_ | Pubkey |
| 4 | socialized_ | Pubkey |
| 5 | token_ | Pubkey |
| 6… | remaining | Vec< |
ReferUser#
Discriminator 39729accb921aa88 · data ReferUser · accounts ReferUserInstructionAccounts.
No data fields.
Required accounts: 4; extras go to remaining.
Fields of ReferUserInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | user | Pubkey |
| 1 | referrer_ | Pubkey |
| 2 | referral_ | Pubkey |
| 3 | system_ | Pubkey |
| 4… | remaining | Vec< |
ResetNumFlexUnderlyings#
Discriminator 3013fed1c8d3313d · data ResetNumFlexUnderlyings · accounts ResetNumFlexUnderlyingsInstructionAccounts.
No data fields.
Required accounts: 2; extras go to remaining.
Fields of ResetNumFlexUnderlyingsInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | admin | Pubkey |
| 2… | remaining | Vec< |
SetReferralsRewards#
Discriminator 3ee801124b074d9e · data SetReferralsRewards · accounts SetReferralsRewardsInstructionAccounts.
| Field | Type |
|---|---|
args | Vec< |
Required accounts: 2; extras go to remaining.
Fields of SetReferralsRewardsInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | referrals_ | Pubkey |
| 2… | remaining | Vec< |
SettleDexFunds#
Discriminator a5678e26d3a60ee2 · data SettleDexFunds · accounts SettleDexFundsInstructionAccounts.
No data fields.
Required accounts: 11; extras go to remaining.
Fields of SettleDexFundsInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | market | Pubkey |
| 2 | zeta_ | Pubkey |
| 3 | zeta_ | Pubkey |
| 4 | dex_ | Pubkey |
| 5 | dex_ | Pubkey |
| 6 | vault_owner | Pubkey |
| 7 | mint_ | Pubkey |
| 8 | serum_ | Pubkey |
| 9 | dex_program | Pubkey |
| 10 | token_ | Pubkey |
| 11… | remaining | Vec< |
SettlePositionsHalted#
Discriminator aa938ba31368a74d · data SettlePositionsHalted · accounts SettlePositionsHaltedInstructionAccounts.
| Field | Type |
|---|---|
asset | Asset |
Required accounts: 3; extras go to remaining.
Fields of SettlePositionsHaltedInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | pricing | Pubkey |
| 2 | admin | Pubkey |
| 3… | remaining | Vec< |
ToggleMarketMaker#
Discriminator cbf7549f68fd9450 · data ToggleMarketMaker · accounts ToggleMarketMakerInstructionAccounts.
| Field | Type |
|---|---|
is_ | bool |
Required accounts: 3; extras go to remaining.
Fields of ToggleMarketMakerInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | admin | Pubkey |
| 2 | margin_ | Pubkey |
| 3… | remaining | Vec< |
ToggleZetaGroupPerpsOnly#
Discriminator aa734d0ba19df7a9 · data ToggleZetaGroupPerpsOnly · accounts ToggleZetaGroupPerpsOnlyInstructionAccounts.
No data fields.
Required accounts: 3; extras go to remaining.
Fields of ToggleZetaGroupPerpsOnlyInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | admin | Pubkey |
| 3… | remaining | Vec< |
TransferExcessSpreadBalance#
Discriminator acb80c0a346940d5 · data TransferExcessSpreadBalance · accounts TransferExcessSpreadBalanceInstructionAccounts.
No data fields.
Required accounts: 4; extras go to remaining.
Fields of TransferExcessSpreadBalanceInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | zeta_group | Pubkey |
| 1 | margin_ | Pubkey |
| 2 | spread_ | Pubkey |
| 3 | authority | Pubkey |
| 4… | remaining | Vec< |
TreasuryMovement#
Discriminator 0122f269d7d39d12 · data TreasuryMovement · accounts TreasuryMovementInstructionAccounts.
| Field | Type |
|---|---|
treasury_ | TreasuryMovementType |
amount | u64 |
Required accounts: 6; extras go to remaining.
Fields of TreasuryMovementInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | insurance_ | Pubkey |
| 2 | treasury_ | Pubkey |
| 3 | referrals_ | Pubkey |
| 4 | token_ | Pubkey |
| 5 | admin | Pubkey |
| 6… | remaining | Vec< |
Unhalt#
Discriminator f98c1bd58082cf71 · data Unhalt · accounts UnhaltInstructionAccounts.
| Field | Type |
|---|---|
asset | Asset |
Required accounts: 3; extras go to remaining.
Fields of UnhaltInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | pricing | Pubkey |
| 2 | admin | Pubkey |
| 3… | remaining | Vec< |
UpdateAdmin#
Discriminator a1b028d53cb8b3e4 · data UpdateAdmin · accounts UpdateAdminInstructionAccounts.
No data fields.
Required accounts: 3; extras go to remaining.
Fields of UpdateAdminInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | admin | Pubkey |
| 2 | new_admin | Pubkey |
| 3… | remaining | Vec< |
UpdateHaltState#
Discriminator d72d35a2958a053f · data UpdateHaltState · accounts UpdateHaltStateInstructionAccounts.
| Field | Type |
|---|---|
args | HaltStateArgs |
Required accounts: 2; extras go to remaining.
Fields of UpdateHaltStateInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | admin | Pubkey |
| 2… | remaining | Vec< |
UpdateInterestRate#
Discriminator 4b08ff297b3b87ee · data UpdateInterestRate · accounts UpdateInterestRateInstructionAccounts.
| Field | Type |
|---|---|
args | UpdateInterestRateArgs |
Required accounts: 4; extras go to remaining.
Fields of UpdateInterestRateInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | greeks | Pubkey |
| 2 | zeta_group | Pubkey |
| 3 | admin | Pubkey |
| 4… | remaining | Vec< |
UpdateMarginParameters#
Discriminator 4532aec57bc448ec · data UpdateMarginParameters · accounts UpdateMarginParametersInstructionAccounts.
| Field | Type |
|---|---|
args | UpdateMarginParametersArgs |
asset | Asset |
Required accounts: 3; extras go to remaining.
Fields of UpdateMarginParametersInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | pricing | Pubkey |
| 2 | admin | Pubkey |
| 3… | remaining | Vec< |
UpdateOracle#
Discriminator 7029d112f8e2fcbc · data UpdateOracle · accounts UpdateOracleInstructionAccounts.
No data fields.
Required accounts: 4; extras go to remaining.
Fields of UpdateOracleInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | admin | Pubkey |
| 3 | oracle | Pubkey |
| 4… | remaining | Vec< |
UpdateOracleBackupFeed#
Discriminator e60921cae4d1b462 · data UpdateOracleBackupFeed · accounts UpdateOracleBackupFeedInstructionAccounts.
No data fields.
Required accounts: 4; extras go to remaining.
Fields of UpdateOracleBackupFeedInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | admin | Pubkey |
| 3 | oracle | Pubkey |
| 4… | remaining | Vec< |
UpdatePerpParameters#
Discriminator 5a87db2aa48661ae · data UpdatePerpParameters · accounts UpdatePerpParametersInstructionAccounts.
| Field | Type |
|---|---|
args | UpdatePerpParametersArgs |
asset | Asset |
Required accounts: 3; extras go to remaining.
Fields of UpdatePerpParametersInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | pricing | Pubkey |
| 2 | admin | Pubkey |
| 3… | remaining | Vec< |
UpdatePricingParameters#
Discriminator 697fd0863d3d71f7 · data UpdatePricingParameters · accounts UpdatePricingParametersInstructionAccounts.
| Field | Type |
|---|---|
args | UpdatePricingParametersArgs |
Required accounts: 3; extras go to remaining.
Fields of UpdatePricingParametersInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | admin | Pubkey |
| 3… | remaining | Vec< |
UpdatePricingV2#
Discriminator eb6d8aad0f2533f4 · data UpdatePricingV2 · accounts UpdatePricingV2InstructionAccounts.
| Field | Type |
|---|---|
asset | Asset |
Required accounts: 8; extras go to remaining.
Fields of UpdatePricingV2InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | pricing | Pubkey |
| 2 | oracle | Pubkey |
| 3 | oracle_ | Pubkey |
| 4 | oracle_ | Pubkey |
| 5 | perp_market | Pubkey |
| 6 | perp_bids | Pubkey |
| 7 | perp_asks | Pubkey |
| 8… | remaining | Vec< |
UpdateReferralsAdmin#
Discriminator 49905c774a6a10c8 · data UpdateReferralsAdmin · accounts UpdateReferralsAdminInstructionAccounts.
No data fields.
Required accounts: 3; extras go to remaining.
Fields of UpdateReferralsAdminInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | admin | Pubkey |
| 2 | new_admin | Pubkey |
| 3… | remaining | Vec< |
UpdateSecondaryAdmin#
Discriminator 54e61a4b02b3afea · data UpdateSecondaryAdmin · accounts UpdateSecondaryAdminInstructionAccounts.
No data fields.
Required accounts: 3; extras go to remaining.
Fields of UpdateSecondaryAdminInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | admin | Pubkey |
| 2 | new_admin | Pubkey |
| 3… | remaining | Vec< |
UpdateVolatility#
Discriminator be6974dde5c6d053 · data UpdateVolatility · accounts UpdateVolatilityInstructionAccounts.
| Field | Type |
|---|---|
args | UpdateVolatilityArgs |
Required accounts: 4; extras go to remaining.
Fields of UpdateVolatilityInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | greeks | Pubkey |
| 2 | zeta_group | Pubkey |
| 3 | admin | Pubkey |
| 4… | remaining | Vec< |
UpdateZetaGroupExpiryParameters#
Discriminator 11457968e1ce8cd7 · data UpdateZetaGroupExpiryParameters · accounts UpdateZetaGroupExpiryParametersInstructionAccounts.
| Field | Type |
|---|---|
args | UpdateZetaGroupExpiryArgs |
Required accounts: 3; extras go to remaining.
Fields of UpdateZetaGroupExpiryParametersInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | admin | Pubkey |
| 3… | remaining | Vec< |
UpdateZetaGroupMarginParameters#
Discriminator 3cd07993f26a0bfe · data UpdateZetaGroupMarginParameters · accounts UpdateZetaGroupMarginParametersInstructionAccounts.
| Field | Type |
|---|---|
args | UpdateMarginParametersArgs |
Required accounts: 3; extras go to remaining.
Fields of UpdateZetaGroupMarginParametersInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | admin | Pubkey |
| 3… | remaining | Vec< |
UpdateZetaGroupPerpParameters#
Discriminator 48988c9ec35df71f · data UpdateZetaGroupPerpParameters · accounts UpdateZetaGroupPerpParametersInstructionAccounts.
| Field | Type |
|---|---|
args | UpdatePerpParametersArgs |
Required accounts: 3; extras go to remaining.
Fields of UpdateZetaGroupPerpParametersInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | admin | Pubkey |
| 3… | remaining | Vec< |
UpdateZetaPricingPubkeys#
Discriminator a9dd17f8db7a8e9e · data UpdateZetaPricingPubkeys · accounts UpdateZetaPricingPubkeysInstructionAccounts.
| Field | Type |
|---|---|
args | UpdateZetaPricingPubkeysArgs |
Required accounts: 3; extras go to remaining.
Fields of UpdateZetaPricingPubkeysInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | pricing | Pubkey |
| 2 | admin | Pubkey |
| 3… | remaining | Vec< |
UpdateZetaState#
Discriminator 68b614bb03a43c03 · data UpdateZetaState · accounts UpdateZetaStateInstructionAccounts.
| Field | Type |
|---|---|
args | UpdateStateArgs |
Required accounts: 2; extras go to remaining.
Fields of UpdateZetaStateInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | admin | Pubkey |
| 2… | remaining | Vec< |
Withdraw#
Discriminator b712469c946da122 · data Withdraw · accounts WithdrawInstructionAccounts.
| Field | Type |
|---|---|
amount | u64 |
Required accounts: 12; extras go to remaining.
Fields of WithdrawInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | zeta_group | Pubkey |
| 2 | vault | Pubkey |
| 3 | margin_ | Pubkey |
| 4 | user_ | Pubkey |
| 5 | token_ | Pubkey |
| 6 | authority | Pubkey |
| 7 | greeks | Pubkey |
| 8 | oracle | Pubkey |
| 9 | oracle_ | Pubkey |
| 10 | oracle_ | Pubkey |
| 11 | socialized_ | Pubkey |
| 12… | remaining | Vec< |
WithdrawInsuranceVault#
Discriminator 11fad52dac7551e1 · data WithdrawInsuranceVault · accounts WithdrawInsuranceVaultInstructionAccounts.
| Field | Type |
|---|---|
percentage_ | u64 |
Required accounts: 6; extras go to remaining.
Fields of WithdrawInsuranceVaultInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | insurance_ | Pubkey |
| 2 | insurance_ | Pubkey |
| 3 | user_ | Pubkey |
| 4 | authority | Pubkey |
| 5 | token_ | Pubkey |
| 6… | remaining | Vec< |
WithdrawInsuranceVaultV2#
Discriminator cb472c94e0f245a5 · data WithdrawInsuranceVaultV2 · accounts WithdrawInsuranceVaultV2InstructionAccounts.
| Field | Type |
|---|---|
percentage_ | u64 |
Required accounts: 7; extras go to remaining.
Fields of WithdrawInsuranceVaultV2InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | pricing | Pubkey |
| 2 | insurance_ | Pubkey |
| 3 | insurance_ | Pubkey |
| 4 | user_ | Pubkey |
| 5 | authority | Pubkey |
| 6 | token_ | Pubkey |
| 7… | remaining | Vec< |
WithdrawV2#
Discriminator f250a300c4ddc2c2 · data WithdrawV2 · accounts WithdrawV2InstructionAccounts.
| Field | Type |
|---|---|
amount | u64 |
Required accounts: 8; extras go to remaining.
Fields of WithdrawV2InstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | state | Pubkey |
| 1 | pricing | Pubkey |
| 2 | vault | Pubkey |
| 3 | margin_ | Pubkey |
| 4 | user_ | Pubkey |
| 5 | token_ | Pubkey |
| 6 | authority | Pubkey |
| 7 | socialized_ | Pubkey |
| 8… | remaining | Vec< |
CpiEvent#
Anchor self-CPI that carries one of the program's events. data is the CpiEvent enum.
Discriminator e445a52e51cb9a1d · data CpiEvent · accounts CpiEventInstructionAccounts.
Required accounts: 2; extras go to remaining.
Fields of CpiEventInstructionAccounts, in account order:
| # | Field | Type |
|---|---|---|
| 0 | program | Pubkey |
| 1 | event_ | Pubkey |
| 2… | remaining | Vec< |
Accounts#
Variants of ZetaAccount. Each wraps a boxed struct from carbon_. decode_ only considers accounts owned by PROGRAM_ID and returns the first variant that matches.
CrossMarginAccount#
Discriminator f25e8e8323f4931c · accounts::.
| Field | Type |
|---|---|
authority | Pubkey |
delegated_ | Pubkey |
balance | u64 |
subaccount_ | u8 |
nonce | u8 |
force_ | bool |
account_ | MarginAccountType |
open_ | [u8; 5] |
open_ | [u8; 20] |
rebalance_ | i64 |
last_ | [AnchorDecimal; 5] |
last_ | [AnchorDecimal; 20] |
product_ | [ProductLedger; 5] |
product_ | [ProductLedger; 20] |
padding | [u8; 2000] |
CrossMarginAccountManager#
Discriminator 5ca21a433156fc05 · accounts::.
| Field | Type |
|---|---|
nonce | u8 |
authority | Pubkey |
accounts | [CrossMarginAccountInfo; 25] |
CrossOpenOrdersMap#
Discriminator c5185209520e309a · accounts::.
| Field | Type |
|---|---|
user_key | Pubkey |
subaccount_ | u8 |
Greeks#
Discriminator f7d5aa9a2bf392fe · accounts::.
| Field | Type |
|---|---|
nonce | u8 |
mark_prices | [u64; 46] |
mark_ | [u64; 91] |
perp_ | u64 |
product_ | [ProductGreeks; 22] |
product_ | [ProductGreeks; 44] |
update_ | [u64; 2] |
update_ | [u64; 4] |
retreat_ | [u64; 2] |
retreat_ | [u64; 4] |
interest_ | [i64; 2] |
interest_ | [i64; 4] |
nodes | [u64; 5] |
volatility | [u64; 10] |
volatility_ | [u64; 20] |
node_keys | [Pubkey; 138] |
halt_ | [bool; 6] |
perp_ | u64 |
perp_ | AnchorDecimal |
perp_ | AnchorDecimal |
perp_ | u64 |
padding | [u8; 1593] |
InsuranceDepositAccount#
Discriminator b6a1fc657ba1cdb8 · accounts::.
| Field | Type |
|---|---|
nonce | u8 |
amount | u64 |
MarginAccount#
Discriminator 85dcadd5b3d32bee · accounts::.
| Field | Type |
|---|---|
authority | Pubkey |
nonce | u8 |
balance | u64 |
force_ | bool |
open_ | [u8; 138] |
series_ | [u64; 5] |
series_ | u64 |
product_ | [ProductLedger; 46] |
product_ | [ProductLedger; 91] |
perp_ | ProductLedger |
rebalance_ | i64 |
asset | Asset |
account_ | MarginAccountType |
last_ | AnchorDecimal |
delegated_ | Pubkey |
padding | [u8; 338] |
MarketIndexes#
Discriminator 6fcd6992db895217 · accounts::.
| Field | Type |
|---|---|
nonce | u8 |
initialized | bool |
indexes | [u8; 138] |
MarketNode#
Discriminator 1c52153b968d3c7c · accounts::.
| Field | Type |
|---|---|
index | u8 |
nonce | u8 |
node_ | [i64; 5] |
interest_ | i64 |
OpenOrdersMap#
Discriminator fa7eac0a761e03a8 · accounts::.
| Field | Type |
|---|---|
user_key | Pubkey |
PerpSyncQueue#
Discriminator 5c37389de6b8ab42 · accounts::.
| Field | Type |
|---|---|
nonce | u8 |
head | u16 |
length | u16 |
queue | [AnchorDecimal; 600] |
Pricing#
Discriminator be7bd2b68f0b9888 · accounts::.
| Field | Type |
|---|---|
nonce | u8 |
mark_prices | [u64; 5] |
mark_ | [u64; 20] |
update_ | [u64; 5] |
update_ | [u64; 20] |
funding_ | [AnchorDecimal; 5] |
funding_ | [AnchorDecimal; 20] |
latest_ | [AnchorDecimal; 5] |
latest_ | [AnchorDecimal; 20] |
latest_ | [u64; 5] |
latest_ | [u64; 20] |
oracles | [Pubkey; 5] |
oracles_ | [Pubkey; 20] |
oracle_ | [Pubkey; 5] |
oracle_ | [Pubkey; 20] |
markets | [Pubkey; 5] |
markets_ | [Pubkey; 20] |
perp_ | [Pubkey; 5] |
perp_ | [Pubkey; 20] |
perp_ | [PerpParameters; 5] |
perp_ | [PerpParameters; 20] |
margin_ | [MarginParameters; 5] |
margin_ | [MarginParameters; 20] |
products | [Product; 5] |
products_ | [Product; 20] |
zeta_ | [Pubkey; 5] |
zeta_ | [Pubkey; 20] |
total_ | u64 |
last_ | u64 |
net_ | i64 |
halt_ | [bool; 5] |
halt_ | [bool; 20] |
padding | [u8; 2707] |
ReferralAccount#
Discriminator eda2504ec4e95b02 · accounts::.
| Field | Type |
|---|---|
nonce | u8 |
referrer | Pubkey |
user | Pubkey |
timestamp | u64 |
pending_ | u64 |
claimed_ | u64 |
ReferrerAccount#
Discriminator 3013a0364cdc4609 · accounts::.
| Field | Type |
|---|---|
nonce | u8 |
has_alias | bool |
referrer | Pubkey |
pending_ | u64 |
claimed_ | u64 |
ReferrerAlias#
Discriminator 87659edc2697be3a · accounts::.
| Field | Type |
|---|---|
nonce | u8 |
alias | [u8; 15] |
referrer | Pubkey |
SettlementAccount#
Discriminator 512a686f7b5992b4 · accounts::.
| Field | Type |
|---|---|
settlement_ | u64 |
strikes | [u64; 23] |
SocializedLossAccount#
Discriminator 41fe8deb3c546889 · accounts::.
| Field | Type |
|---|---|
nonce | u8 |
overbankrupt_ | u64 |
SpreadAccount#
Discriminator 3982fc88a7b12fa2 · accounts::.
| Field | Type |
|---|---|
authority | Pubkey |
nonce | u8 |
balance | u64 |
series_ | [u64; 5] |
series_ | u64 |
positions | [Position; 46] |
positions_ | [Position; 92] |
asset | Asset |
padding | [u8; 262] |
State#
Discriminator d8926b5e684bb6b1 · accounts::.
| Field | Type |
|---|---|
admin | Pubkey |
state_nonce | u8 |
serum_nonce | u8 |
mint_ | u8 |
num_ | u8 |
num_ | u8 |
null | [u8; 7] |
strike_ | u32 |
pricing_ | u32 |
liquidator_ | u32 |
insurance_ | u32 |
native_ | u64 |
native_ | u64 |
native_ | u64 |
native_ | u64 |
expiration_ | u32 |
position_ | u8 |
margin_ | u8 |
treasury_ | u8 |
native_ | u64 |
native_ | u64 |
referrals_ | Pubkey |
referrals_ | u8 |
max_ | u16 |
secondary_ | Pubkey |
vault_nonce | u8 |
insurance_ | u8 |
deprecated_ | u64 |
native_ | u64 |
withdraw_ | u32 |
native_ | u64 |
halt_states | [HaltStateV2; 5] |
halt_ | [HaltStateV2; 20] |
padding | [u8; 338] |
Underlying#
Discriminator ce80984d70a40d02 · accounts::.
| Field | Type |
|---|---|
mint | Pubkey |
WhitelistDepositAccount#
Discriminator 6e02d95144ae78d9 · accounts::.
| Field | Type |
|---|---|
nonce | u8 |
user_key | Pubkey |
WhitelistInsuranceAccount#
Discriminator 0a68c0cb813c2802 · accounts::.
| Field | Type |
|---|---|
nonce | u8 |
user_key | Pubkey |
WhitelistTradingFeesAccount#
Discriminator db27bda689f354ef · accounts::.
| Field | Type |
|---|---|
nonce | u8 |
user_key | Pubkey |
ZetaGroup#
Discriminator 7911d26b6deb0e0c · accounts::.
| Field | Type |
|---|---|
nonce | u8 |
nonce_ | [u8; 2] |
front_ | u8 |
halt_state | HaltState |
underlying_ | Pubkey |
oracle | Pubkey |
greeks | Pubkey |
pricing_ | PricingParameters |
margin_ | MarginParameters |
margin_ | [u8; 104] |
products | [Product; 46] |
products_ | [Product; 91] |
perp | Product |
expiry_ | [ExpirySeries; 2] |
expiry_ | [ExpirySeries; 4] |
deprecated_ | [u8; 8] |
asset | Asset |
expiry_ | u32 |
new_ | u32 |
perp_ | PerpParameters |
perp_ | Pubkey |
oracle_ | Pubkey |
perps_only | bool |
flex_ | bool |
padding | [u8; 964] |
Events#
Variants of instructions::, decoded from the CpiEvent instruction. Each wraps a struct from carbon_. The discriminator is the 8-byte event discriminator that follows the e445a52e51cb9a1d CPI-event tag.
TradeEvent#
Discriminator bddb7fd34ee661ee · events::.
| Field | Type |
|---|---|
margin_ | Pubkey |
index | u8 |
size | u64 |
cost_ | u64 |
is_bid | bool |
client_ | u64 |
order_id | u128 |
TradeEventV2#
Discriminator 128ed28bb27bcb75 · events::.
| Field | Type |
|---|---|
margin_ | Pubkey |
index | u8 |
size | u64 |
cost_ | u64 |
is_bid | bool |
client_ | u64 |
order_id | u128 |
asset | u8 |
user | Pubkey |
is_taker | bool |
sequence_ | u64 |
TradeEventV3#
Discriminator 72a23b2154866c3e · events::.
| Field | Type |
|---|---|
margin_ | Pubkey |
index | u8 |
size | u64 |
cost_ | u64 |
is_bid | bool |
client_ | u64 |
order_id | u128 |
asset | Asset |
user | Pubkey |
is_taker | bool |
sequence_ | u64 |
PositionMovementEvent#
Discriminator 44b90d941ce3655f · events::.
| Field | Type |
|---|---|
net_ | i64 |
margin_ | u64 |
spread_ | u64 |
movement_ | u64 |
PlaceOrderEvent#
Discriminator 41bf195b1bfcc028 · events::.
| Field | Type |
|---|---|
fee | u64 |
oracle_ | u64 |
order_id | u128 |
expiry_ts | u64 |
LiquidationEvent#
Discriminator 030d155dad884890 · events::.
| Field | Type |
|---|---|
liquidator_ | u64 |
insurance_ | u64 |
cost_ | u64 |
size | i64 |
remaining_ | u64 |
remaining_ | u64 |
mark_price | u64 |
underlying_ | u64 |
liquidatee | Pubkey |
liquidator | Pubkey |
asset | Asset |
OrderCompleteEvent#
Discriminator 1a64c4ea5d799fdf · events::.
| Field | Type |
|---|---|
margin_ | Pubkey |
user | Pubkey |
asset | Asset |
market_ | u8 |
side | Side |
unfilled_ | u64 |
order_id | u128 |
client_ | u64 |
order_ | OrderCompleteType |
ApplyFundingEvent#
Discriminator 7fca0fb7c8c0040c · events::.
| Field | Type |
|---|---|
margin_ | Pubkey |
user | Pubkey |
asset | Asset |
balance_ | i64 |
remaining_ | u64 |
funding_ | i64 |
oracle_ | u64 |
Types#
Types used by the instructions, accounts and events above, exported from carbon_.
AnchorDecimal#
Struct types::.
| Field | Type |
|---|---|
flags | u32 |
hi | u32 |
lo | u32 |
mid | u32 |
ApplyFundingEvent#
Struct types::. Same fields as the ApplyFundingEvent event.
Asset#
Enum types::.
| Variant |
|---|
SOL |
BTC |
ETH |
APT |
ARB |
UNDEFINED |
CrossMarginAccountInfo#
Struct types::.
| Field | Type |
|---|---|
initialized | bool |
name | [u8; 10] |
ExpireSeriesOverrideArgs#
Struct types::.
| Field | Type |
|---|---|
settlement_ | u8 |
settlement_ | u64 |
ExpirySeries#
Struct types::.
| Field | Type |
|---|---|
active_ts | u64 |
expiry_ts | u64 |
dirty | bool |
padding | [u8; 15] |
ExpirySeriesStatus#
Enum types::.
| Variant |
|---|
Uninitialized |
Initialized |
Live |
Expired |
ExpiredDirty |
HaltArgs#
Struct types::.
| Field | Type |
|---|---|
spot_prices | [u64; 5] |
timestamp | u64 |
HaltState#
Struct types::.
| Field | Type |
|---|---|
halted | bool |
spot_price | u64 |
timestamp | u64 |
mark_ | [bool; 2] |
mark_ | [bool; 3] |
perp_ | bool |
market_ | [bool; 2] |
market_ | [bool; 4] |
market_ | [bool; 46] |
market_ | [bool; 91] |
perp_ | bool |
HaltStateArgs#
Struct types::.
| Field | Type |
|---|---|
asset | Asset |
spot_price | u64 |
timestamp | u64 |
HaltStateV2#
Struct types::.
| Field | Type |
|---|---|
halted | bool |
timestamp | u64 |
spot_price | u64 |
market_ | bool |
InitializeMarketArgs#
Struct types::.
| Field | Type |
|---|---|
asset | Asset |
market_ | u8 |
base_ | u8 |
quote_ | u8 |
zeta_ | u8 |
zeta_ | u8 |
dex_ | u8 |
dex_ | u8 |
vault_ | u64 |
InitializeMarketNodeArgs#
Struct types::.
| Field | Type |
|---|---|
nonce | u8 |
index | u8 |
InitializeStateArgs#
Struct types::.
| Field | Type |
|---|---|
state_nonce | u8 |
serum_nonce | u8 |
mint_ | u8 |
strike_ | u32 |
pricing_ | u32 |
liquidator_ | u32 |
insurance_ | u32 |
native_ | u64 |
native_ | u64 |
native_ | u64 |
native_ | u64 |
native_ | u64 |
native_ | u64 |
expiration_ | u32 |
position_ | u8 |
margin_ | u8 |
max_ | u16 |
native_ | u64 |
withdraw_ | u32 |
native_ | u64 |
InitializeZetaGroupArgs#
Struct types::.
| Field | Type |
|---|---|
perps_only | bool |
flex_ | bool |
asset_ | Option< |
zeta_ | u8 |
underlying_ | u8 |
greeks_ | u8 |
vault_nonce | u8 |
insurance_ | u8 |
socialized_ | u8 |
perp_ | u8 |
interest_ | i64 |
volatility | [u64; 5] |
option_ | u64 |
future_ | u64 |
max_ | u64 |
max_ | u64 |
max_delta | u64 |
min_delta | u64 |
min_ | i64 |
max_ | i64 |
min_ | u64 |
max_ | u64 |
future_ | u64 |
future_ | u64 |
expiry_ | u32 |
new_ | u32 |
min_ | i64 |
max_ | i64 |
perp_ | u64 |
InitializeZetaPricingArgs#
Struct types::.
| Field | Type |
|---|---|
min_ | i64 |
max_ | i64 |
perp_ | u64 |
margin_ | u64 |
margin_ | u64 |
pricing_ | u8 |
Kind#
Enum types::Kind.
| Variant |
|---|
Uninitialized |
Call |
Put |
Future |
Perp |
LiquidationEvent#
Struct types::. Same fields as the LiquidationEvent event.
MarginAccountType#
Enum types::.
| Variant |
|---|
Normal |
MarketMaker |
MarginParameters#
Struct types::.
| Field | Type |
|---|---|
future_ | u64 |
future_ | u64 |
MarginRequirement#
Enum types::.
| Variant |
|---|
Initial |
Maintenance |
MaintenanceIncludingOrders |
MarketMakerConcession |
MovementType#
Enum types::.
| Variant |
|---|
Undefined |
Lock |
Unlock |
OrderCompleteEvent#
Struct types::. Same fields as the OrderCompleteEvent event.
OrderCompleteType#
Enum types::.
| Variant |
|---|
Cancel |
Fill |
Booted |
OrderState#
Struct types::.
| Field | Type |
|---|---|
closing_ | u64 |
opening_ | [u64; 2] |
OrderType#
Enum types::.
| Variant |
|---|
Limit |
PostOnly |
FillOrKill |
ImmediateOrCancel |
PostOnlySlide |
OverrideExpiryArgs#
Struct types::.
| Field | Type |
|---|---|
expiry_ | u8 |
active_ts | u64 |
expiry_ts | u64 |
PerpParameters#
Struct types::.
| Field | Type |
|---|---|
min_ | i64 |
max_ | i64 |
impact_ | u64 |
PlaceOrderEvent#
Struct types::. Same fields as the PlaceOrderEvent event.
PlaceOrderType#
Enum types::.
| Variant |
|---|
PlaceOrder |
PlacePerpOrder |
Position#
Struct types::.
| Field | Type |
|---|---|
size | i64 |
cost_ | u64 |
PositionMovementArg#
Struct types::.
| Field | Type |
|---|---|
index | u8 |
size | i64 |
PositionMovementEvent#
Struct types::. Same fields as the PositionMovementEvent event.
PricingParameters#
Struct types::.
| Field | Type |
|---|---|
option_ | AnchorDecimal |
future_ | AnchorDecimal |
max_ | AnchorDecimal |
max_ | AnchorDecimal |
max_delta | u64 |
min_delta | u64 |
min_ | u64 |
max_ | u64 |
min_ | i64 |
max_ | i64 |
Product#
Struct types::.
ProductGreeks#
Struct types::.
| Field | Type |
|---|---|
delta | u64 |
vega | AnchorDecimal |
volatility | AnchorDecimal |
ProductLedger#
Struct types::.
| Field | Type |
|---|---|
position | Position |
order_state | OrderState |
SetReferralsRewardsArgs#
Struct types::.
| Field | Type |
|---|---|
referrals_ | Pubkey |
pending_ | u64 |
overwrite | bool |
Side#
Enum types::Side.
| Variant |
|---|
Uninitialized |
Bid |
Ask |
Strike#
Struct types::.
| Field | Type |
|---|---|
is_set | bool |
value | u64 |
TradeEvent#
Struct types::. Same fields as the TradeEvent event.
TradeEventV2#
Struct types::. Same fields as the TradeEventV2 event.
TradeEventV3#
Struct types::. Same fields as the TradeEventV3 event.
TraitType#
Enum types::.
| Variant |
|---|
MarginAccount |
CrossMarginAccount |
TreasuryMovementType#
Enum types::.
| Variant |
|---|
Undefined |
ToTreasuryFromInsurance |
ToInsuranceFromTreasury |
ToTreasuryFromReferralsRewards |
ToReferralsRewardsFromTreasury |
UpdateGreeksArgs#
Struct types::.
| Field | Type |
|---|---|
index | u8 |
theo | u64 |
delta | u32 |
gamma | u32 |
volatility | u32 |
UpdateInterestRateArgs#
Struct types::.
| Field | Type |
|---|---|
expiry_ | u8 |
interest_ | i64 |
UpdateMarginParametersArgs#
Struct types::.
| Field | Type |
|---|---|
future_ | u64 |
future_ | u64 |
UpdatePerpParametersArgs#
Struct types::.
| Field | Type |
|---|---|
min_ | i64 |
max_ | i64 |
perp_ | u64 |
UpdatePricingParametersArgs#
Struct types::.
| Field | Type |
|---|---|
option_ | u64 |
future_ | u64 |
max_ | u64 |
max_ | u64 |
min_delta | u64 |
max_delta | u64 |
min_ | i64 |
max_ | i64 |
min_ | u64 |
max_ | u64 |
UpdateStateArgs#
Struct types::.
| Field | Type |
|---|---|
strike_ | u32 |
pricing_ | u32 |
liquidator_ | u32 |
insurance_ | u32 |
native_ | u64 |
native_ | u64 |
native_ | u64 |
native_ | u64 |
native_ | u64 |
native_ | u64 |
expiration_ | u32 |
position_ | u8 |
margin_ | u8 |
max_ | u16 |
native_ | u64 |
withdraw_ | u32 |
native_ | u64 |
UpdateVolatilityArgs#
Struct types::.
| Field | Type |
|---|---|
expiry_ | u8 |
volatility | [u64; 5] |
UpdateZetaGroupExpiryArgs#
Struct types::.
| Field | Type |
|---|---|
expiry_ | u32 |
new_ | u32 |
UpdateZetaPricingPubkeysArgs#
Struct types::.
| Field | Type |
|---|---|
asset | Asset |
oracle | Pubkey |
oracle_ | Pubkey |
market | Pubkey |
perp_ | Pubkey |
zeta_ | Pubkey |
ValidationType#
Enum types::.
| Variant |
|---|
Place |
Cancel |
OpenOrders |