zetamarkets_py.zeta_client.instructions package#
Submodules#
zetamarkets_py.zeta_client.instructions.apply_perp_funding module#
- class zetamarkets_py.zeta_client.instructions.apply_perp_funding.ApplyPerpFundingAccounts#
Bases:
TypedDict
- pricing: Pubkey#
- state: Pubkey#
- class zetamarkets_py.zeta_client.instructions.apply_perp_funding.ApplyPerpFundingArgs#
Bases:
TypedDict
- zetamarkets_py.zeta_client.instructions.apply_perp_funding.apply_perp_funding(args: ApplyPerpFundingArgs, accounts: ApplyPerpFundingAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.cancel_all_market_orders module#
- class zetamarkets_py.zeta_client.instructions.cancel_all_market_orders.CancelAccountsNested#
Bases:
TypedDict
- asks: Pubkey#
- bids: Pubkey#
- dex_program: Pubkey#
- event_queue: Pubkey#
- margin_account: Pubkey#
- market: Pubkey#
- open_orders: Pubkey#
- serum_authority: Pubkey#
- state: Pubkey#
- class zetamarkets_py.zeta_client.instructions.cancel_all_market_orders.CancelAllMarketOrdersAccounts#
Bases:
TypedDict
- authority: Pubkey#
- cancel_accounts: CancelAccountsNested#
- class zetamarkets_py.zeta_client.instructions.cancel_all_market_orders.CancelAllMarketOrdersArgs#
Bases:
TypedDict
- zetamarkets_py.zeta_client.instructions.cancel_all_market_orders.cancel_all_market_orders(args: CancelAllMarketOrdersArgs, accounts: CancelAllMarketOrdersAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.cancel_order module#
- class zetamarkets_py.zeta_client.instructions.cancel_order.CancelAccountsNested#
Bases:
TypedDict
- asks: Pubkey#
- bids: Pubkey#
- dex_program: Pubkey#
- event_queue: Pubkey#
- margin_account: Pubkey#
- market: Pubkey#
- open_orders: Pubkey#
- serum_authority: Pubkey#
- state: Pubkey#
- class zetamarkets_py.zeta_client.instructions.cancel_order.CancelOrderAccounts#
Bases:
TypedDict
- authority: Pubkey#
- cancel_accounts: CancelAccountsNested#
- class zetamarkets_py.zeta_client.instructions.cancel_order.CancelOrderArgs#
Bases:
TypedDict
- asset: SOL | BTC | ETH | APT | ARB | BNB | PYTH | TIA | JTO | ONEMBONK | SEI | JUP | DYM | STRK | UNDEFINED#
- order_id: int#
- side: Uninitialized | Bid | Ask#
- zetamarkets_py.zeta_client.instructions.cancel_order.cancel_order(args: CancelOrderArgs, accounts: CancelOrderAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.cancel_order_by_client_order_id module#
- class zetamarkets_py.zeta_client.instructions.cancel_order_by_client_order_id.CancelAccountsNested#
Bases:
TypedDict
- asks: Pubkey#
- bids: Pubkey#
- dex_program: Pubkey#
- event_queue: Pubkey#
- margin_account: Pubkey#
- market: Pubkey#
- open_orders: Pubkey#
- serum_authority: Pubkey#
- state: Pubkey#
- class zetamarkets_py.zeta_client.instructions.cancel_order_by_client_order_id.CancelOrderByClientOrderIdAccounts#
Bases:
TypedDict
- authority: Pubkey#
- cancel_accounts: CancelAccountsNested#
- class zetamarkets_py.zeta_client.instructions.cancel_order_by_client_order_id.CancelOrderByClientOrderIdArgs#
Bases:
TypedDict
- asset: SOL | BTC | ETH | APT | ARB | BNB | PYTH | TIA | JTO | ONEMBONK | SEI | JUP | DYM | STRK | UNDEFINED#
- client_order_id: int#
- zetamarkets_py.zeta_client.instructions.cancel_order_by_client_order_id.cancel_order_by_client_order_id(args: CancelOrderByClientOrderIdArgs, accounts: CancelOrderByClientOrderIdAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.cancel_order_by_client_order_id_no_error module#
- class zetamarkets_py.zeta_client.instructions.cancel_order_by_client_order_id_no_error.CancelAccountsNested#
Bases:
TypedDict
- asks: Pubkey#
- bids: Pubkey#
- dex_program: Pubkey#
- event_queue: Pubkey#
- margin_account: Pubkey#
- market: Pubkey#
- open_orders: Pubkey#
- serum_authority: Pubkey#
- state: Pubkey#
- class zetamarkets_py.zeta_client.instructions.cancel_order_by_client_order_id_no_error.CancelOrderByClientOrderIdNoErrorAccounts#
Bases:
TypedDict
- authority: Pubkey#
- cancel_accounts: CancelAccountsNested#
- class zetamarkets_py.zeta_client.instructions.cancel_order_by_client_order_id_no_error.CancelOrderByClientOrderIdNoErrorArgs#
Bases:
TypedDict
- asset: SOL | BTC | ETH | APT | ARB | BNB | PYTH | TIA | JTO | ONEMBONK | SEI | JUP | DYM | STRK | UNDEFINED#
- client_order_id: int#
- zetamarkets_py.zeta_client.instructions.cancel_order_by_client_order_id_no_error.cancel_order_by_client_order_id_no_error(args: CancelOrderByClientOrderIdNoErrorArgs, accounts: CancelOrderByClientOrderIdNoErrorAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.cancel_order_halted module#
- class zetamarkets_py.zeta_client.instructions.cancel_order_halted.CancelAccountsNested#
Bases:
TypedDict
- asks: Pubkey#
- bids: Pubkey#
- dex_program: Pubkey#
- event_queue: Pubkey#
- margin_account: Pubkey#
- market: Pubkey#
- open_orders: Pubkey#
- serum_authority: Pubkey#
- state: Pubkey#
- class zetamarkets_py.zeta_client.instructions.cancel_order_halted.CancelOrderHaltedAccounts#
Bases:
TypedDict
- cancel_accounts: CancelAccountsNested#
- class zetamarkets_py.zeta_client.instructions.cancel_order_halted.CancelOrderHaltedArgs#
Bases:
TypedDict
- asset: SOL | BTC | ETH | APT | ARB | BNB | PYTH | TIA | JTO | ONEMBONK | SEI | JUP | DYM | STRK | UNDEFINED#
- order_id: int#
- side: Uninitialized | Bid | Ask#
- zetamarkets_py.zeta_client.instructions.cancel_order_halted.cancel_order_halted(args: CancelOrderHaltedArgs, accounts: CancelOrderHaltedAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.cancel_order_no_error module#
- class zetamarkets_py.zeta_client.instructions.cancel_order_no_error.CancelAccountsNested#
Bases:
TypedDict
- asks: Pubkey#
- bids: Pubkey#
- dex_program: Pubkey#
- event_queue: Pubkey#
- margin_account: Pubkey#
- market: Pubkey#
- open_orders: Pubkey#
- serum_authority: Pubkey#
- state: Pubkey#
- class zetamarkets_py.zeta_client.instructions.cancel_order_no_error.CancelOrderNoErrorAccounts#
Bases:
TypedDict
- authority: Pubkey#
- cancel_accounts: CancelAccountsNested#
- class zetamarkets_py.zeta_client.instructions.cancel_order_no_error.CancelOrderNoErrorArgs#
Bases:
TypedDict
- asset: SOL | BTC | ETH | APT | ARB | BNB | PYTH | TIA | JTO | ONEMBONK | SEI | JUP | DYM | STRK | UNDEFINED#
- order_id: int#
- side: Uninitialized | Bid | Ask#
- zetamarkets_py.zeta_client.instructions.cancel_order_no_error.cancel_order_no_error(args: CancelOrderNoErrorArgs, accounts: CancelOrderNoErrorAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.claim_referrals_rewards module#
- class zetamarkets_py.zeta_client.instructions.claim_referrals_rewards.ClaimReferralsRewardsAccounts#
Bases:
TypedDict
- referrals_rewards_wallet: Pubkey#
- state: Pubkey#
- user: Pubkey#
- user_referrals_account: Pubkey#
- user_token_account: Pubkey#
- zetamarkets_py.zeta_client.instructions.claim_referrals_rewards.claim_referrals_rewards(accounts: ClaimReferralsRewardsAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.close_cross_margin_account module#
- class zetamarkets_py.zeta_client.instructions.close_cross_margin_account.CloseCrossMarginAccountAccounts#
Bases:
TypedDict
- authority: Pubkey#
- cross_margin_account: Pubkey#
- cross_margin_account_manager: Pubkey#
- class zetamarkets_py.zeta_client.instructions.close_cross_margin_account.CloseCrossMarginAccountArgs#
Bases:
TypedDict
- subaccount_index: int#
- zetamarkets_py.zeta_client.instructions.close_cross_margin_account.close_cross_margin_account(args: CloseCrossMarginAccountArgs, accounts: CloseCrossMarginAccountAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.close_cross_margin_account_manager module#
- class zetamarkets_py.zeta_client.instructions.close_cross_margin_account_manager.CloseCrossMarginAccountManagerAccounts#
Bases:
TypedDict
- authority: Pubkey#
- cross_margin_account_manager: Pubkey#
- zetamarkets_py.zeta_client.instructions.close_cross_margin_account_manager.close_cross_margin_account_manager(accounts: CloseCrossMarginAccountManagerAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.close_open_orders_v3 module#
- class zetamarkets_py.zeta_client.instructions.close_open_orders_v3.CloseOpenOrdersV3Accounts#
Bases:
TypedDict
- authority: Pubkey#
- cross_margin_account: Pubkey#
- dex_program: Pubkey#
- market: Pubkey#
- open_orders: Pubkey#
- open_orders_map: Pubkey#
- pricing: Pubkey#
- serum_authority: Pubkey#
- state: Pubkey#
- class zetamarkets_py.zeta_client.instructions.close_open_orders_v3.CloseOpenOrdersV3Args#
Bases:
TypedDict
- asset: SOL | BTC | ETH | APT | ARB | BNB | PYTH | TIA | JTO | ONEMBONK | SEI | JUP | DYM | STRK | UNDEFINED#
- map_nonce: int#
- zetamarkets_py.zeta_client.instructions.close_open_orders_v3.close_open_orders_v3(args: CloseOpenOrdersV3Args, accounts: CloseOpenOrdersV3Accounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.crank_event_queue module#
- class zetamarkets_py.zeta_client.instructions.crank_event_queue.CrankEventQueueAccounts#
Bases:
TypedDict
- dex_program: Pubkey#
- event_queue: Pubkey#
- market: Pubkey#
- perp_sync_queue: Pubkey#
- pricing: Pubkey#
- serum_authority: Pubkey#
- state: Pubkey#
- class zetamarkets_py.zeta_client.instructions.crank_event_queue.CrankEventQueueArgs#
Bases:
TypedDict
- zetamarkets_py.zeta_client.instructions.crank_event_queue.crank_event_queue(args: CrankEventQueueArgs, accounts: CrankEventQueueAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.deposit_v2 module#
- class zetamarkets_py.zeta_client.instructions.deposit_v2.DepositV2Accounts#
Bases:
TypedDict
- authority: Pubkey#
- margin_account: Pubkey#
- pricing: Pubkey#
- socialized_loss_account: Pubkey#
- state: Pubkey#
- user_token_account: Pubkey#
- vault: Pubkey#
- class zetamarkets_py.zeta_client.instructions.deposit_v2.DepositV2Args#
Bases:
TypedDict
- amount: int#
- zetamarkets_py.zeta_client.instructions.deposit_v2.deposit_v2(args: DepositV2Args, accounts: DepositV2Accounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.initialize_cross_margin_account module#
- class zetamarkets_py.zeta_client.instructions.initialize_cross_margin_account.InitializeCrossMarginAccountAccounts#
Bases:
TypedDict
- authority: Pubkey#
- cross_margin_account: Pubkey#
- cross_margin_account_manager: Pubkey#
- payer: Pubkey#
- zeta_program: Pubkey#
- class zetamarkets_py.zeta_client.instructions.initialize_cross_margin_account.InitializeCrossMarginAccountArgs#
Bases:
TypedDict
- subaccount_index: int#
- zetamarkets_py.zeta_client.instructions.initialize_cross_margin_account.initialize_cross_margin_account(args: InitializeCrossMarginAccountArgs, accounts: InitializeCrossMarginAccountAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.initialize_cross_margin_account_manager module#
- class zetamarkets_py.zeta_client.instructions.initialize_cross_margin_account_manager.InitializeCrossMarginAccountManagerAccounts#
Bases:
TypedDict
- authority: Pubkey#
- cross_margin_account_manager: Pubkey#
- payer: Pubkey#
- zeta_program: Pubkey#
- zetamarkets_py.zeta_client.instructions.initialize_cross_margin_account_manager.initialize_cross_margin_account_manager(accounts: InitializeCrossMarginAccountManagerAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.initialize_open_orders_v3 module#
- class zetamarkets_py.zeta_client.instructions.initialize_open_orders_v3.InitializeOpenOrdersV3Accounts#
Bases:
TypedDict
- authority: Pubkey#
- cross_margin_account: Pubkey#
- dex_program: Pubkey#
- market: Pubkey#
- open_orders: Pubkey#
- open_orders_map: Pubkey#
- payer: Pubkey#
- serum_authority: Pubkey#
- state: Pubkey#
- class zetamarkets_py.zeta_client.instructions.initialize_open_orders_v3.InitializeOpenOrdersV3Args#
Bases:
TypedDict
- zetamarkets_py.zeta_client.instructions.initialize_open_orders_v3.initialize_open_orders_v3(args: InitializeOpenOrdersV3Args, accounts: InitializeOpenOrdersV3Accounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.initialize_referrer_account module#
- class zetamarkets_py.zeta_client.instructions.initialize_referrer_account.InitializeReferrerAccountAccounts#
Bases:
TypedDict
- referrer: Pubkey#
- referrer_account: Pubkey#
- zetamarkets_py.zeta_client.instructions.initialize_referrer_account.initialize_referrer_account(accounts: InitializeReferrerAccountAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.initialize_referrer_alias module#
- class zetamarkets_py.zeta_client.instructions.initialize_referrer_alias.InitializeReferrerAliasAccounts#
Bases:
TypedDict
- referrer: Pubkey#
- referrer_account: Pubkey#
- referrer_alias: Pubkey#
- class zetamarkets_py.zeta_client.instructions.initialize_referrer_alias.InitializeReferrerAliasArgs#
Bases:
TypedDict
- alias: str#
- zetamarkets_py.zeta_client.instructions.initialize_referrer_alias.initialize_referrer_alias(args: InitializeReferrerAliasArgs, accounts: InitializeReferrerAliasAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.initialize_zeta_referrals_rewards_wallet module#
- class zetamarkets_py.zeta_client.instructions.initialize_zeta_referrals_rewards_wallet.InitializeZetaReferralsRewardsWalletAccounts#
Bases:
TypedDict
- admin: Pubkey#
- referrals_rewards_wallet: Pubkey#
- state: Pubkey#
- usdc_mint: Pubkey#
- zetamarkets_py.zeta_client.instructions.initialize_zeta_referrals_rewards_wallet.initialize_zeta_referrals_rewards_wallet(accounts: InitializeZetaReferralsRewardsWalletAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.liquidate_v2 module#
- class zetamarkets_py.zeta_client.instructions.liquidate_v2.LiquidateV2Accounts#
Bases:
TypedDict
- liquidated_account: Pubkey#
- liquidator: Pubkey#
- liquidator_account: Pubkey#
- market: Pubkey#
- oracle: Pubkey#
- oracle_backup_feed: Pubkey#
- oracle_backup_program: Pubkey#
- pricing: Pubkey#
- state: Pubkey#
- class zetamarkets_py.zeta_client.instructions.liquidate_v2.LiquidateV2Args#
Bases:
TypedDict
- asset: SOL | BTC | ETH | APT | ARB | BNB | PYTH | TIA | JTO | ONEMBONK | SEI | JUP | DYM | STRK | UNDEFINED#
- size: int#
- zetamarkets_py.zeta_client.instructions.liquidate_v2.liquidate_v2(args: LiquidateV2Args, accounts: LiquidateV2Accounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.place_perp_order_v3 module#
- class zetamarkets_py.zeta_client.instructions.place_perp_order_v3.MarketAccountsNested#
Bases:
TypedDict
- asks: Pubkey#
- bids: Pubkey#
- coin_vault: Pubkey#
- coin_wallet: Pubkey#
- event_queue: Pubkey#
- market: Pubkey#
- order_payer_token_account: Pubkey#
- pc_vault: Pubkey#
- pc_wallet: Pubkey#
- request_queue: Pubkey#
- class zetamarkets_py.zeta_client.instructions.place_perp_order_v3.PlacePerpOrderV3Accounts#
Bases:
TypedDict
- authority: Pubkey#
- dex_program: Pubkey#
- margin_account: Pubkey#
- market_accounts: MarketAccountsNested#
- market_mint: Pubkey#
- mint_authority: Pubkey#
- open_orders: Pubkey#
- oracle: Pubkey#
- oracle_backup_feed: Pubkey#
- oracle_backup_program: Pubkey#
- perp_sync_queue: Pubkey#
- pricing: Pubkey#
- serum_authority: Pubkey#
- state: Pubkey#
- class zetamarkets_py.zeta_client.instructions.place_perp_order_v3.PlacePerpOrderV3Args#
Bases:
TypedDict
- asset: SOL | BTC | ETH | APT | ARB | BNB | PYTH | TIA | JTO | ONEMBONK | SEI | JUP | DYM | STRK | UNDEFINED#
- client_order_id: int | None#
- order_type: Limit | PostOnly | FillOrKill | ImmediateOrCancel | PostOnlySlide | PostOnlyFront#
- price: int#
- side: Uninitialized | Bid | Ask#
- size: int#
- tag: str | None#
- tif_offset: int | None#
- zetamarkets_py.zeta_client.instructions.place_perp_order_v3.place_perp_order_v3(args: PlacePerpOrderV3Args, accounts: PlacePerpOrderV3Accounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.refer_user module#
- class zetamarkets_py.zeta_client.instructions.refer_user.ReferUserAccounts#
Bases:
TypedDict
- referral_account: Pubkey#
- referrer_account: Pubkey#
- user: Pubkey#
- zetamarkets_py.zeta_client.instructions.refer_user.refer_user(accounts: ReferUserAccounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #
zetamarkets_py.zeta_client.instructions.withdraw_v2 module#
- class zetamarkets_py.zeta_client.instructions.withdraw_v2.WithdrawV2Accounts#
Bases:
TypedDict
- authority: Pubkey#
- margin_account: Pubkey#
- pricing: Pubkey#
- socialized_loss_account: Pubkey#
- state: Pubkey#
- user_token_account: Pubkey#
- vault: Pubkey#
- class zetamarkets_py.zeta_client.instructions.withdraw_v2.WithdrawV2Args#
Bases:
TypedDict
- amount: int#
- zetamarkets_py.zeta_client.instructions.withdraw_v2.withdraw_v2(args: WithdrawV2Args, accounts: WithdrawV2Accounts, program_id: Pubkey = Pubkey(ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD), remaining_accounts: List[AccountMeta] | None = None) Instruction #