zetamarkets_py.zeta_client.errors package#

Submodules#

zetamarkets_py.zeta_client.errors.anchor module#

exception zetamarkets_py.zeta_client.errors.anchor.AccountDidNotDeserialize#

Bases: ProgramError

code = 3003#
msg = 'Failed to deserialize the account'#
name = 'AccountDidNotDeserialize'#
exception zetamarkets_py.zeta_client.errors.anchor.AccountDidNotSerialize#

Bases: ProgramError

code = 3004#
msg = 'Failed to serialize the account'#
name = 'AccountDidNotSerialize'#
exception zetamarkets_py.zeta_client.errors.anchor.AccountDiscriminatorAlreadySet#

Bases: ProgramError

code = 3000#
msg = 'The account discriminator was already set on this account'#
name = 'AccountDiscriminatorAlreadySet'#
exception zetamarkets_py.zeta_client.errors.anchor.AccountDiscriminatorMismatch#

Bases: ProgramError

code = 3002#
msg = '8 byte discriminator did not match what was expected'#
name = 'AccountDiscriminatorMismatch'#
exception zetamarkets_py.zeta_client.errors.anchor.AccountDiscriminatorNotFound#

Bases: ProgramError

code = 3001#
msg = 'No 8 byte discriminator was found on the account'#
name = 'AccountDiscriminatorNotFound'#
exception zetamarkets_py.zeta_client.errors.anchor.AccountNotAssociatedTokenAccount#

Bases: ProgramError

code = 3014#
msg = 'The given account is not the associated token account'#
name = 'AccountNotAssociatedTokenAccount'#
exception zetamarkets_py.zeta_client.errors.anchor.AccountNotEnoughKeys#

Bases: ProgramError

code = 3005#
msg = 'Not enough account keys given to the instruction'#
name = 'AccountNotEnoughKeys'#
exception zetamarkets_py.zeta_client.errors.anchor.AccountNotInitialized#

Bases: ProgramError

code = 3012#
msg = 'The program expected this account to be already initialized'#
name = 'AccountNotInitialized'#
exception zetamarkets_py.zeta_client.errors.anchor.AccountNotMutable#

Bases: ProgramError

code = 3006#
msg = 'The given account is not mutable'#
name = 'AccountNotMutable'#
exception zetamarkets_py.zeta_client.errors.anchor.AccountNotProgramData#

Bases: ProgramError

code = 3013#
msg = 'The given account is not a program data account'#
name = 'AccountNotProgramData'#
exception zetamarkets_py.zeta_client.errors.anchor.AccountNotSigner#

Bases: ProgramError

code = 3010#
msg = 'The given account did not sign'#
name = 'AccountNotSigner'#
exception zetamarkets_py.zeta_client.errors.anchor.AccountNotSystemOwned#

Bases: ProgramError

code = 3011#
msg = 'The given account is not owned by the system program'#
name = 'AccountNotSystemOwned'#
exception zetamarkets_py.zeta_client.errors.anchor.AccountOwnedByWrongProgram#

Bases: ProgramError

code = 3007#
msg = 'The given account is owned by a different program than expected'#
name = 'AccountOwnedByWrongProgram'#
exception zetamarkets_py.zeta_client.errors.anchor.AccountSysvarMismatch#

Bases: ProgramError

code = 3015#
msg = 'The given public key does not match the required sysvar'#
name = 'AccountSysvarMismatch'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintAddress#

Bases: ProgramError

code = 2012#
msg = 'An address constraint was violated'#
name = 'ConstraintAddress'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintAssociated#

Bases: ProgramError

code = 2009#
msg = 'An associated constraint was violated'#
name = 'ConstraintAssociated'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintAssociatedInit#

Bases: ProgramError

code = 2010#
msg = 'An associated init constraint was violated'#
name = 'ConstraintAssociatedInit'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintClose#

Bases: ProgramError

code = 2011#
msg = 'A close constraint was violated'#
name = 'ConstraintClose'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintExecutable#

Bases: ProgramError

code = 2007#
msg = 'An executable constraint was violated'#
name = 'ConstraintExecutable'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintHasOne#

Bases: ProgramError

code = 2001#
msg = 'A has_one constraint was violated'#
name = 'ConstraintHasOne'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintMintDecimals#

Bases: ProgramError

code = 2018#
msg = 'A mint decimals constraint was violated'#
name = 'ConstraintMintDecimals'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintMintFreezeAuthority#

Bases: ProgramError

code = 2017#
msg = 'A mint freeze authority constraint was violated'#
name = 'ConstraintMintFreezeAuthority'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintMintMintAuthority#

Bases: ProgramError

code = 2016#
msg = 'A mint mint authority constraint was violated'#
name = 'ConstraintMintMintAuthority'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintMut#

Bases: ProgramError

code = 2000#
msg = 'A mut constraint was violated'#
name = 'ConstraintMut'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintOwner#

Bases: ProgramError

code = 2004#
msg = 'An owner constraint was violated'#
name = 'ConstraintOwner'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintRaw#

Bases: ProgramError

code = 2003#
msg = 'A raw constraint was violated'#
name = 'ConstraintRaw'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintRentExempt#

Bases: ProgramError

code = 2005#
msg = 'A rent exempt constraint was violated'#
name = 'ConstraintRentExempt'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintSeeds#

Bases: ProgramError

code = 2006#
msg = 'A seeds constraint was violated'#
name = 'ConstraintSeeds'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintSigner#

Bases: ProgramError

code = 2002#
msg = 'A signer constraint was violated'#
name = 'ConstraintSigner'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintSpace#

Bases: ProgramError

code = 2019#
msg = 'A space constraint was violated'#
name = 'ConstraintSpace'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintState#

Bases: ProgramError

code = 2008#
msg = 'A state constraint was violated'#
name = 'ConstraintState'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintTokenMint#

Bases: ProgramError

code = 2014#
msg = 'A token mint constraint was violated'#
name = 'ConstraintTokenMint'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintTokenOwner#

Bases: ProgramError

code = 2015#
msg = 'A token owner constraint was violated'#
name = 'ConstraintTokenOwner'#
exception zetamarkets_py.zeta_client.errors.anchor.ConstraintZero#

Bases: ProgramError

code = 2013#
msg = 'Expected zero account discriminant'#
name = 'ConstraintZero'#
exception zetamarkets_py.zeta_client.errors.anchor.Deprecated#

Bases: ProgramError

code = 5000#
msg = 'The API being used is deprecated and should no longer be used'#
name = 'Deprecated'#
exception zetamarkets_py.zeta_client.errors.anchor.IdlInstructionInvalidProgram#

Bases: ProgramError

code = 1001#
msg = 'The transaction was given an invalid program for the IDL instruction'#
name = 'IdlInstructionInvalidProgram'#
exception zetamarkets_py.zeta_client.errors.anchor.IdlInstructionStub#

Bases: ProgramError

code = 1000#
msg = 'The program was compiled without idl instructions'#
name = 'IdlInstructionStub'#
exception zetamarkets_py.zeta_client.errors.anchor.InstructionDidNotDeserialize#

Bases: ProgramError

code = 102#
msg = 'The program could not deserialize the given instruction'#
name = 'InstructionDidNotDeserialize'#
exception zetamarkets_py.zeta_client.errors.anchor.InstructionDidNotSerialize#

Bases: ProgramError

code = 103#
msg = 'The program could not serialize the given instruction'#
name = 'InstructionDidNotSerialize'#
exception zetamarkets_py.zeta_client.errors.anchor.InstructionFallbackNotFound#

Bases: ProgramError

code = 101#
msg = 'Fallback functions are not supported'#
name = 'InstructionFallbackNotFound'#
exception zetamarkets_py.zeta_client.errors.anchor.InstructionMissing#

Bases: ProgramError

code = 100#
msg = '8 byte instruction identifier not provided'#
name = 'InstructionMissing'#
exception zetamarkets_py.zeta_client.errors.anchor.InvalidProgramExecutable#

Bases: ProgramError

code = 3009#
msg = 'Program account is not executable'#
name = 'InvalidProgramExecutable'#
exception zetamarkets_py.zeta_client.errors.anchor.InvalidProgramId#

Bases: ProgramError

code = 3008#
msg = 'Program ID was not as expected'#
name = 'InvalidProgramId'#
exception zetamarkets_py.zeta_client.errors.anchor.RequireEqViolated#

Bases: ProgramError

code = 2501#
msg = 'A require_eq expression was violated'#
name = 'RequireEqViolated'#
exception zetamarkets_py.zeta_client.errors.anchor.RequireGtViolated#

Bases: ProgramError

code = 2505#
msg = 'A require_gt expression was violated'#
name = 'RequireGtViolated'#
exception zetamarkets_py.zeta_client.errors.anchor.RequireGteViolated#

Bases: ProgramError

code = 2506#
msg = 'A require_gte expression was violated'#
name = 'RequireGteViolated'#
exception zetamarkets_py.zeta_client.errors.anchor.RequireKeysEqViolated#

Bases: ProgramError

code = 2502#
msg = 'A require_keys_eq expression was violated'#
name = 'RequireKeysEqViolated'#
exception zetamarkets_py.zeta_client.errors.anchor.RequireKeysNeqViolated#

Bases: ProgramError

code = 2504#
msg = 'A require_keys_neq expression was violated'#
name = 'RequireKeysNeqViolated'#
exception zetamarkets_py.zeta_client.errors.anchor.RequireNeqViolated#

Bases: ProgramError

code = 2503#
msg = 'A require_neq expression was violated'#
name = 'RequireNeqViolated'#
exception zetamarkets_py.zeta_client.errors.anchor.RequireViolated#

Bases: ProgramError

code = 2500#
msg = 'A require expression was violated'#
name = 'RequireViolated'#
exception zetamarkets_py.zeta_client.errors.anchor.StateInvalidAddress#

Bases: ProgramError

code = 4000#
msg = 'The given state account does not have the correct address'#
name = 'StateInvalidAddress'#
zetamarkets_py.zeta_client.errors.anchor.from_code(code: int) InstructionMissing | InstructionFallbackNotFound | InstructionDidNotDeserialize | InstructionDidNotSerialize | IdlInstructionStub | IdlInstructionInvalidProgram | ConstraintMut | ConstraintHasOne | ConstraintSigner | ConstraintRaw | ConstraintOwner | ConstraintRentExempt | ConstraintSeeds | ConstraintExecutable | ConstraintState | ConstraintAssociated | ConstraintAssociatedInit | ConstraintClose | ConstraintAddress | ConstraintZero | ConstraintTokenMint | ConstraintTokenOwner | ConstraintMintMintAuthority | ConstraintMintFreezeAuthority | ConstraintMintDecimals | ConstraintSpace | RequireViolated | RequireEqViolated | RequireKeysEqViolated | RequireNeqViolated | RequireKeysNeqViolated | RequireGtViolated | RequireGteViolated | AccountDiscriminatorAlreadySet | AccountDiscriminatorNotFound | AccountDiscriminatorMismatch | AccountDidNotDeserialize | AccountDidNotSerialize | AccountNotEnoughKeys | AccountNotMutable | AccountOwnedByWrongProgram | InvalidProgramId | InvalidProgramExecutable | AccountNotSigner | AccountNotSystemOwned | AccountNotInitialized | AccountNotProgramData | AccountNotAssociatedTokenAccount | AccountSysvarMismatch | StateInvalidAddress | Deprecated | None#

zetamarkets_py.zeta_client.errors.custom module#

exception zetamarkets_py.zeta_client.errors.custom.AccountAlreadyInitialized#

Bases: ProgramError

code = 6045#
msg = 'Account already initialized'#
name = 'AccountAlreadyInitialized'#
exception zetamarkets_py.zeta_client.errors.custom.AccountDidNotSerialize#

Bases: ProgramError

code = 6089#
msg = 'Failed to serialize the account'#
name = 'AccountDidNotSerialize'#
exception zetamarkets_py.zeta_client.errors.custom.AccountDiscriminatorMismatch#

Bases: ProgramError

code = 6065#
msg = 'Account discriminator mismatch'#
name = 'AccountDiscriminatorMismatch'#
exception zetamarkets_py.zeta_client.errors.custom.AccountHasSufficientMargin#

Bases: ProgramError

code = 6014#
msg = 'Account has sufficient margin'#
name = 'AccountHasSufficientMargin'#
exception zetamarkets_py.zeta_client.errors.custom.AccountHasSufficientMarginPostCancels#

Bases: ProgramError

code = 6012#
msg = 'Account has sufficient margin post cancels'#
name = 'AccountHasSufficientMarginPostCancels'#
exception zetamarkets_py.zeta_client.errors.custom.AccountNotMutable#

Bases: ProgramError

code = 6064#
msg = 'Account not mutable'#
name = 'AccountNotMutable'#
exception zetamarkets_py.zeta_client.errors.custom.CannotCloseNonEmptyMarginAccount#

Bases: ProgramError

code = 6091#
msg = 'Cannot close margin account that is not empty'#
name = 'CannotCloseNonEmptyMarginAccount'#
exception zetamarkets_py.zeta_client.errors.custom.CannotCloseNonEmptyMarginAccountManager#

Bases: ProgramError

code = 6139#
msg = 'Cannot close margin account manager that is not empty'#
name = 'CannotCloseNonEmptyMarginAccountManager'#
exception zetamarkets_py.zeta_client.errors.custom.CannotCloseNonEmptySpreadAccount#

Bases: ProgramError

code = 6095#
msg = 'Cannot close non empty spread account'#
name = 'CannotCloseNonEmptySpreadAccount'#
exception zetamarkets_py.zeta_client.errors.custom.CannotExpireOptionsAfterExpirationThreshold#

Bases: ProgramError

code = 6085#
msg = 'Cannot expire options after expiration threshold'#
name = 'CannotExpireOptionsAfterExpirationThreshold'#
exception zetamarkets_py.zeta_client.errors.custom.CannotGetUnsetStrike#

Bases: ProgramError

code = 6055#
msg = 'Cannot get unset strike'#
name = 'CannotGetUnsetStrike'#
exception zetamarkets_py.zeta_client.errors.custom.CannotInitializePerpMarketNode#

Bases: ProgramError

code = 6126#
msg = 'Not allowed to initialize market node for a perp market'#
name = 'CannotInitializePerpMarketNode'#
exception zetamarkets_py.zeta_client.errors.custom.CannotLiquidateOwnAccount#

Bases: ProgramError

code = 6004#
msg = 'Cannot liquidate own account'#
name = 'CannotLiquidateOwnAccount'#
exception zetamarkets_py.zeta_client.errors.custom.CannotMigrateWithOpenOrders#

Bases: ProgramError

code = 6140#
msg = 'Cannot migrate to cross margin account with open orders, close all open orders'#
name = 'CannotMigrateWithOpenOrders'#
exception zetamarkets_py.zeta_client.errors.custom.CannotResetUninitializedStrike#

Bases: ProgramError

code = 6057#
msg = 'Cannot set initialized strike'#
name = 'CannotResetUninitializedStrike'#
exception zetamarkets_py.zeta_client.errors.custom.CannotSetInitializedStrike#

Bases: ProgramError

code = 6056#
msg = 'Cannot set initialized strike'#
name = 'CannotSetInitializedStrike'#
exception zetamarkets_py.zeta_client.errors.custom.CannotSettleUserWithActiveOrders#

Bases: ProgramError

code = 6027#
msg = 'Cannot settle users with active orders'#
name = 'CannotSettleUserWithActiveOrders'#
exception zetamarkets_py.zeta_client.errors.custom.CannotUpdatePricingAfterExpiry#

Bases: ProgramError

code = 6043#
msg = 'Cannot update pricing after expiry'#
name = 'CannotUpdatePricingAfterExpiry'#
exception zetamarkets_py.zeta_client.errors.custom.CannotWithdrawWithOpenOrders#

Bases: ProgramError

code = 6119#
msg = 'Cannot withdraw with open orders'#
name = 'CannotWithdrawWithOpenOrders'#
exception zetamarkets_py.zeta_client.errors.custom.ClientOrderIdCannotBeZero#

Bases: ProgramError

code = 6079#
msg = 'ClientOrderIdCannotBeZero'#
name = 'ClientOrderIdCannotBeZero'#
exception zetamarkets_py.zeta_client.errors.custom.CrankInvalidRemainingAccounts#

Bases: ProgramError

code = 6005#
msg = 'Invalid cranking remaining accounts'#
name = 'CrankInvalidRemainingAccounts'#
exception zetamarkets_py.zeta_client.errors.custom.CrankMarginAccountNotMutable#

Bases: ProgramError

code = 6058#
msg = 'CrankMarginAccountNotMutable'#
name = 'CrankMarginAccountNotMutable'#
exception zetamarkets_py.zeta_client.errors.custom.DepositAmountExceeded#

Bases: ProgramError

code = 6010#
msg = 'Deposit amount exceeds limit and user is not whitelisted'#
name = 'DepositAmountExceeded'#
exception zetamarkets_py.zeta_client.errors.custom.DepositOverflow#

Bases: ProgramError

code = 6000#
msg = 'Deposit overflow'#
name = 'DepositOverflow'#
exception zetamarkets_py.zeta_client.errors.custom.DeprecatedInstruction#

Bases: ProgramError

code = 6127#
msg = 'Instruction is deprecated, please use the newer version'#
name = 'DeprecatedInstruction'#
exception zetamarkets_py.zeta_client.errors.custom.ExceededMaxPositionMovements#

Bases: ProgramError

code = 6104#
msg = 'Exceeded max position movements'#
name = 'ExceededMaxPositionMovements'#
exception zetamarkets_py.zeta_client.errors.custom.ExceededMaxSpreadAccountContracts#

Bases: ProgramError

code = 6105#
msg = 'Exceeded max spread account contracts'#
name = 'ExceededMaxSpreadAccountContracts'#
exception zetamarkets_py.zeta_client.errors.custom.FailedInitialMarginRequirement#

Bases: ProgramError

code = 6002#
msg = 'Failed initial margin requirement'#
name = 'FailedInitialMarginRequirement'#
exception zetamarkets_py.zeta_client.errors.custom.FailedMaintenanceMarginRequirement#

Bases: ProgramError

code = 6100#
msg = 'Failed maintenance margin requirement'#
name = 'FailedMaintenanceMarginRequirement'#
exception zetamarkets_py.zeta_client.errors.custom.FailedPriceBandCheck#

Bases: ProgramError

code = 6062#
msg = 'Failed price band check'#
name = 'FailedPriceBandCheck'#
exception zetamarkets_py.zeta_client.errors.custom.FeatureUnavailable#

Bases: ProgramError

code = 6143#
msg = 'Feature is not available yet'#
name = 'FeatureUnavailable'#
exception zetamarkets_py.zeta_client.errors.custom.FillOrKillNotFullSize#

Bases: ProgramError

code = 6087#
msg = 'Fill or kill order was not filled for full size'#
name = 'FillOrKillNotFullSize'#
exception zetamarkets_py.zeta_client.errors.custom.ForceCancelExpiredTIFOrdersOnly#

Bases: ProgramError

code = 6128#
msg = 'Can only force cancel expired TIF orders'#
name = 'ForceCancelExpiredTIFOrdersOnly'#
exception zetamarkets_py.zeta_client.errors.custom.FundingRateNotUpToDate#

Bases: ProgramError

code = 6120#
msg = 'Perp funding rate not up to date'#
name = 'FundingRateNotUpToDate'#
exception zetamarkets_py.zeta_client.errors.custom.GreeksAccountSeedsMismatch#

Bases: ProgramError

code = 6046#
msg = 'Greeks account seeds mismatch'#
name = 'GreeksAccountSeedsMismatch'#
exception zetamarkets_py.zeta_client.errors.custom.HaltMarkPriceNotSet#

Bases: ProgramError

code = 6082#
msg = 'Halt mark price not set'#
name = 'HaltMarkPriceNotSet'#
exception zetamarkets_py.zeta_client.errors.custom.HaltMarketNodesNotCleaned#

Bases: ProgramError

code = 6084#
msg = 'Halt market nodes not cleaned'#
name = 'HaltMarketNodesNotCleaned'#
exception zetamarkets_py.zeta_client.errors.custom.HaltMarketsNotCleaned#

Bases: ProgramError

code = 6083#
msg = 'Halt markets not cleaned'#
name = 'HaltMarketsNotCleaned'#
exception zetamarkets_py.zeta_client.errors.custom.IOCInvalidTakerFillSize#

Bases: ProgramError

code = 6158#
msg = "IOC size_to_use doesn't match taker fill size"#
name = 'IOCInvalidTakerFillSize'#
exception zetamarkets_py.zeta_client.errors.custom.IncorrectLotSize#

Bases: ProgramError

code = 6159#
msg = 'Incorrect lot size'#
name = 'IncorrectLotSize'#
exception zetamarkets_py.zeta_client.errors.custom.IncorrectTickSize#

Bases: ProgramError

code = 6006#
msg = 'Incorrect tick size'#
name = 'IncorrectTickSize'#
exception zetamarkets_py.zeta_client.errors.custom.InsufficientFundsToCollateralizeSpreadAccount#

Bases: ProgramError

code = 6099#
msg = 'Insufficient funds to collateralize spread account'#
name = 'InsufficientFundsToCollateralizeSpreadAccount'#
exception zetamarkets_py.zeta_client.errors.custom.InsuranceVaultSeedsMismatch#

Bases: ProgramError

code = 6131#
msg = 'Insurance vault seeds mismatch'#
name = 'InsuranceVaultSeedsMismatch'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidAdminSigner#

Bases: ProgramError

code = 6059#
msg = 'InvalidAdminSigner'#
name = 'InvalidAdminSigner'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidCancelAuthority#

Bases: ProgramError

code = 6042#
msg = 'Invalid cancel authority'#
name = 'InvalidCancelAuthority'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidClaimReferralsRewardsAccount#

Bases: ProgramError

code = 6115#
msg = 'Invalid claim referrals rewards: referrals account is not a referral or referrer account'#
name = 'InvalidClaimReferralsRewardsAccount'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidClaimReferralsRewardsAmount#

Bases: ProgramError

code = 6114#
msg = 'Invalid claim referrals rewards: not enough in refererals rewards wallet'#
name = 'InvalidClaimReferralsRewardsAmount'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidDepositAmount#

Bases: ProgramError

code = 6074#
msg = 'Invalid deposit amount'#
name = 'InvalidDepositAmount'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidDepositRemainingAccounts#

Bases: ProgramError

code = 6077#
msg = 'Invalid number of remaining accounts in deposit'#
name = 'InvalidDepositRemainingAccounts'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidDexAccOwner#

Bases: ProgramError

code = 6145#
msg = 'Invalid owner for dex account'#
name = 'InvalidDexAccOwner'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidExpirationInterval#

Bases: ProgramError

code = 6016#
msg = 'Invalid expiration interval'#
name = 'InvalidExpirationInterval'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidExpiredOrderCancel#

Bases: ProgramError

code = 6023#
msg = 'Invalid expired order cancel'#
name = 'InvalidExpiredOrderCancel'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidGreeksAccount#

Bases: ProgramError

code = 6040#
msg = 'Invalid greeks account'#
name = 'InvalidGreeksAccount'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidLiquidatorAuthority#

Bases: ProgramError

code = 6157#
msg = 'Invalid liquidator authority'#
name = 'InvalidLiquidatorAuthority'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidMarginAccount#

Bases: ProgramError

code = 6039#
msg = 'Invalid margin account'#
name = 'InvalidMarginAccount'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidMarginAccountType#

Bases: ProgramError

code = 6141#
msg = 'Invalid margin account type - account is not MarginAccount or CrossMarginAccount'#
name = 'InvalidMarginAccountType'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidMarketAccounts#

Bases: ProgramError

code = 6030#
msg = "Bids or Asks don't match the Market"#
name = 'InvalidMarketAccounts'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidMarketNode#

Bases: ProgramError

code = 6067#
msg = 'Invalid market node'#
name = 'InvalidMarketNode'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidMarketNodeIndex#

Bases: ProgramError

code = 6066#
msg = 'Invalid market node index'#
name = 'InvalidMarketNodeIndex'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidMintDecimals#

Bases: ProgramError

code = 6070#
msg = 'Invalid mint decimals'#
name = 'InvalidMintDecimals'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidMovement#

Bases: ProgramError

code = 6101#
msg = 'Invalid movement'#
name = 'InvalidMovement'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidMovementSize#

Bases: ProgramError

code = 6103#
msg = 'Invalid movement size'#
name = 'InvalidMovementSize'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidNonPerpMarket#

Bases: ProgramError

code = 6124#
msg = 'Perp product index given in placeOrder, use placePerpOrder'#
name = 'InvalidNonPerpMarket'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidNumberOfAccounts#

Bases: ProgramError

code = 6029#
msg = 'Invalid number of accounts'#
name = 'InvalidNumberOfAccounts'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidOpenOrdersAuthority#

Bases: ProgramError

code = 6130#
msg = 'Invalid open orders authority'#
name = 'InvalidOpenOrdersAuthority'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidOpenOrdersMapOwner#

Bases: ProgramError

code = 6088#
msg = 'Invalid open orders map owner'#
name = 'InvalidOpenOrdersMapOwner'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidPerpMarket#

Bases: ProgramError

code = 6125#
msg = 'Non-perp product index given in placePerpOrder, use placeOrder'#
name = 'InvalidPerpMarket'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidPlaceOrderAuthority#

Bases: ProgramError

code = 6129#
msg = 'Invalid place order authority'#
name = 'InvalidPlaceOrderAuthority'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidPlaceOrderRemainingAccounts#

Bases: ProgramError

code = 6078#
msg = 'Invalid number of remaining accounts in place order'#
name = 'InvalidPlaceOrderRemainingAccounts'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidPricingOracle#

Bases: ProgramError

code = 6134#
msg = 'Invalid oracle for this pricing account'#
name = 'InvalidPricingOracle'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidProductMarketKey#

Bases: ProgramError

code = 6018#
msg = 'Invalid product market key'#
name = 'InvalidProductMarketKey'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidReferralsAdminSigner#

Bases: ProgramError

code = 6111#
msg = 'Invalid referrals admin signer'#
name = 'InvalidReferralsAdminSigner'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidReferrerAlias#

Bases: ProgramError

code = 6108#
msg = 'Invalid referrer alias - Invalid length'#
name = 'InvalidReferrerAlias'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidSecondaryAdmin#

Bases: ProgramError

code = 6153#
msg = 'Invalid secondary admin'#
name = 'InvalidSecondaryAdmin'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidSeriesExpiration#

Bases: ProgramError

code = 6022#
msg = 'Invalid series expiration'#
name = 'InvalidSeriesExpiration'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidSetReferralsRewardsRemainingAccounts#

Bases: ProgramError

code = 6112#
msg = 'Invalid set referrals rewards remaining accounts'#
name = 'InvalidSetReferralsRewardsRemainingAccounts'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidSettlementAccount#

Bases: ProgramError

code = 6041#
msg = 'Invalid settlement account'#
name = 'InvalidSettlementAccount'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidSpreadAccount#

Bases: ProgramError

code = 6094#
msg = 'Invalid spread account'#
name = 'InvalidSpreadAccount'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidTagLength#

Bases: ProgramError

code = 6092#
msg = 'Invalid tag length'#
name = 'InvalidTagLength'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidTokenAccountOwner#

Bases: ProgramError

code = 6075#
msg = 'Invalid token account owner'#
name = 'InvalidTokenAccountOwner'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidTreasuryMovementAmount#

Bases: ProgramError

code = 6110#
msg = 'Invalid treasury movement amount'#
name = 'InvalidTreasuryMovementAmount'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidTriggerOrderBitRange#

Bases: ProgramError

code = 6152#
msg = 'Invalid trigger order bit range'#
name = 'InvalidTriggerOrderBitRange'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidTriggerOrderRemainingAccounts#

Bases: ProgramError

code = 6149#
msg = 'Invalid trigger order remaining accounts'#
name = 'InvalidTriggerOrderRemainingAccounts'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidTriggerOrderWhitelistFeesAccount#

Bases: ProgramError

code = 6150#
msg = 'Invalid trigger order whitelist fees account'#
name = 'InvalidTriggerOrderWhitelistFeesAccount'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidUnderlyingMint#

Bases: ProgramError

code = 6107#
msg = 'Provided underlying mint address is invalid'#
name = 'InvalidUnderlyingMint'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidWithdrawAmount#

Bases: ProgramError

code = 6076#
msg = 'Invalid withdraw amount'#
name = 'InvalidWithdrawAmount'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidZetaGroup#

Bases: ProgramError

code = 6038#
msg = 'Invalid zeta group'#
name = 'InvalidZetaGroup'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidZetaGroupDepositMint#

Bases: ProgramError

code = 6072#
msg = 'Invalid zeta group deposit mint'#
name = 'InvalidZetaGroupDepositMint'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidZetaGroupOracle#

Bases: ProgramError

code = 6071#
msg = 'Invalid oracle for this zeta group'#
name = 'InvalidZetaGroupOracle'#
exception zetamarkets_py.zeta_client.errors.custom.InvalidZetaGroupRebalanceMint#

Bases: ProgramError

code = 6073#
msg = 'Invalid zeta group rebalance insurance vault mint'#
name = 'InvalidZetaGroupRebalanceMint'#
exception zetamarkets_py.zeta_client.errors.custom.LUTOutOfBounds#

Bases: ProgramError

code = 6068#
msg = 'Lut out of bounds'#
name = 'LUTOutOfBounds'#
exception zetamarkets_py.zeta_client.errors.custom.LiquidatorFailedMarginRequirement#

Bases: ProgramError

code = 6003#
msg = 'Liquidator failed margin requirement'#
name = 'LiquidatorFailedMarginRequirement'#
exception zetamarkets_py.zeta_client.errors.custom.LoadAccountDiscriminatorAlreadySet#

Bases: ProgramError

code = 6044#
msg = 'Account discriminator already set'#
name = 'LoadAccountDiscriminatorAlreadySet'#
exception zetamarkets_py.zeta_client.errors.custom.MarginAccountAssetMismatch#

Bases: ProgramError

code = 6142#
msg = 'Margin account asset mismatched with instruction argument asset'#
name = 'MarginAccountAssetMismatch'#
exception zetamarkets_py.zeta_client.errors.custom.MarginAccountCannotLiquidateCrossMarginAccount#

Bases: ProgramError

code = 6144#
msg = 'MarginAccount cannot liquidate CrossMarginAccount'#
name = 'MarginAccountCannotLiquidateCrossMarginAccount'#
exception zetamarkets_py.zeta_client.errors.custom.MarginAccountSeedsMismatch#

Bases: ProgramError

code = 6048#
msg = 'Margin account seeds mismatch'#
name = 'MarginAccountSeedsMismatch'#
exception zetamarkets_py.zeta_client.errors.custom.MarketIndexesAlreadyInitialized#

Bases: ProgramError

code = 6054#
msg = 'Market indexes already initialized'#
name = 'MarketIndexesAlreadyInitialized'#
exception zetamarkets_py.zeta_client.errors.custom.MarketIndexesUninitialized#

Bases: ProgramError

code = 6053#
msg = 'Market indexes uninitialized'#
name = 'MarketIndexesUninitialized'#
exception zetamarkets_py.zeta_client.errors.custom.MarketNodeAccountSeedsMismatch#

Bases: ProgramError

code = 6050#
msg = 'Market node seeds mismatch'#
name = 'MarketNodeAccountSeedsMismatch'#
exception zetamarkets_py.zeta_client.errors.custom.MarketNotLive#

Bases: ProgramError

code = 6019#
msg = 'Market not live'#
name = 'MarketNotLive'#
exception zetamarkets_py.zeta_client.errors.custom.MarketPricingNotReady#

Bases: ProgramError

code = 6020#
msg = 'Market pricing not ready'#
name = 'MarketPricingNotReady'#
exception zetamarkets_py.zeta_client.errors.custom.MissingTriggerOrderWhitelistFeesAccount#

Bases: ProgramError

code = 6151#
msg = 'Missing trigger order whitelist fees account'#
name = 'MissingTriggerOrderWhitelistFeesAccount'#
exception zetamarkets_py.zeta_client.errors.custom.MovementOnExpiredSeries#

Bases: ProgramError

code = 6102#
msg = 'Movement on expired series'#
name = 'MovementOnExpiredSeries'#
exception zetamarkets_py.zeta_client.errors.custom.NakedShortCallIsNotAllowed#

Bases: ProgramError

code = 6093#
msg = 'Naked short call is not allowed'#
name = 'NakedShortCallIsNotAllowed'#
exception zetamarkets_py.zeta_client.errors.custom.NoMarginAccountsToSettle#

Bases: ProgramError

code = 6026#
msg = 'No margin accounts to settle'#
name = 'NoMarginAccountsToSettle'#
exception zetamarkets_py.zeta_client.errors.custom.NoMarketsToAdd#

Bases: ProgramError

code = 6024#
msg = 'No markets to add'#
name = 'NoMarketsToAdd'#
exception zetamarkets_py.zeta_client.errors.custom.NotFreshCrossMarginAccount#

Bases: ProgramError

code = 6138#
msg = 'Cross margin account is not unused, close it and make a new one'#
name = 'NotFreshCrossMarginAccount'#
exception zetamarkets_py.zeta_client.errors.custom.OnlyOwnerCanEditTriggerOrder#

Bases: ProgramError

code = 6154#
msg = 'Only the owner can edit their own trigger order'#
name = 'OnlyOwnerCanEditTriggerOrder'#
exception zetamarkets_py.zeta_client.errors.custom.OpenInterestLimitBreach#

Bases: ProgramError

code = 6132#
msg = 'Open interest limit breach, decrease your position'#
name = 'OpenInterestLimitBreach'#
exception zetamarkets_py.zeta_client.errors.custom.OpenOrdersAccountSeedsMismatch#

Bases: ProgramError

code = 6049#
msg = 'Open orders account seeds mismatch'#
name = 'OpenOrdersAccountSeedsMismatch'#
exception zetamarkets_py.zeta_client.errors.custom.OpenOrdersWithNonEmptyPositions#

Bases: ProgramError

code = 6090#
msg = 'Cannot close open orders account with non empty positions'#
name = 'OpenOrdersWithNonEmptyPositions'#
exception zetamarkets_py.zeta_client.errors.custom.OraclePriceIsInvalid#

Bases: ProgramError

code = 6106#
msg = 'Fetched oracle price is invalid'#
name = 'OraclePriceIsInvalid'#
exception zetamarkets_py.zeta_client.errors.custom.OrderbookNotEmpty#

Bases: ProgramError

code = 6028#
msg = 'Orderbook not empty'#
name = 'OrderbookNotEmpty'#
exception zetamarkets_py.zeta_client.errors.custom.OverBankrupt#

Bases: ProgramError

code = 6013#
msg = 'Over bankrupt'#
name = 'OverBankrupt'#
exception zetamarkets_py.zeta_client.errors.custom.PerpSyncQueueAccountSeedsMismatch#

Bases: ProgramError

code = 6122#
msg = 'PerpSyncQueue account seeds mismatch'#
name = 'PerpSyncQueueAccountSeedsMismatch'#
exception zetamarkets_py.zeta_client.errors.custom.PerpSyncQueueEmpty#

Bases: ProgramError

code = 6123#
msg = 'Program tried to pop from an empty perpSyncQueue'#
name = 'PerpSyncQueueEmpty'#
exception zetamarkets_py.zeta_client.errors.custom.PerpSyncQueueFull#

Bases: ProgramError

code = 6121#
msg = 'Perp taker/maker sync queue is full'#
name = 'PerpSyncQueueFull'#
exception zetamarkets_py.zeta_client.errors.custom.PostOnlyInCross#

Bases: ProgramError

code = 6086#
msg = 'Post only order in cross'#
name = 'PostOnlyInCross'#
exception zetamarkets_py.zeta_client.errors.custom.PricingAccountSeedsMismatch#

Bases: ProgramError

code = 6135#
msg = 'Pricing account seeds mismatch'#
name = 'PricingAccountSeedsMismatch'#
exception zetamarkets_py.zeta_client.errors.custom.PricingNotUpToDate#

Bases: ProgramError

code = 6032#
msg = 'Pricing not up to date'#
name = 'PricingNotUpToDate'#
exception zetamarkets_py.zeta_client.errors.custom.ProductDirty#

Bases: ProgramError

code = 6034#
msg = 'Product dirty'#
name = 'ProductDirty'#
exception zetamarkets_py.zeta_client.errors.custom.ProductMarketsAlreadyInitialized#

Bases: ProgramError

code = 6017#
msg = 'Product markets already initialized'#
name = 'ProductMarketsAlreadyInitialized'#
exception zetamarkets_py.zeta_client.errors.custom.ProductStrikeUninitialized#

Bases: ProgramError

code = 6031#
msg = 'Product strike uninitialized'#
name = 'ProductStrikeUninitialized'#
exception zetamarkets_py.zeta_client.errors.custom.ProductStrikesInitialized#

Bases: ProgramError

code = 6035#
msg = 'Product strikes initialized'#
name = 'ProductStrikesInitialized'#
exception zetamarkets_py.zeta_client.errors.custom.ProtectedMmMarginAccount#

Bases: ProgramError

code = 6118#
msg = 'Market maker accounts are protected from liquidation'#
name = 'ProtectedMmMarginAccount'#
exception zetamarkets_py.zeta_client.errors.custom.RebalanceInsuranceInvalidRemainingAccounts#

Bases: ProgramError

code = 6069#
msg = 'Rebalance insurance vault with no margin accounts'#
name = 'RebalanceInsuranceInvalidRemainingAccounts'#
exception zetamarkets_py.zeta_client.errors.custom.ReferralAccountSeedsMismatch#

Bases: ProgramError

code = 6116#
msg = 'Referral account seeds mismatch'#
name = 'ReferralAccountSeedsMismatch'#
exception zetamarkets_py.zeta_client.errors.custom.ReferrerAccountSeedsMismatch#

Bases: ProgramError

code = 6117#
msg = 'Referrer account seeds mismatch'#
name = 'ReferrerAccountSeedsMismatch'#
exception zetamarkets_py.zeta_client.errors.custom.ReferrerAlreadyHasAlias#

Bases: ProgramError

code = 6109#
msg = 'Referrer already has alias'#
name = 'ReferrerAlreadyHasAlias'#
exception zetamarkets_py.zeta_client.errors.custom.RetreatsAreStale#

Bases: ProgramError

code = 6033#
msg = 'Retreats are stale'#
name = 'RetreatsAreStale'#
exception zetamarkets_py.zeta_client.errors.custom.SetReferralsRewardsAccountNotMutable#

Bases: ProgramError

code = 6113#
msg = 'Referrals account not mutable'#
name = 'SetReferralsRewardsAccountNotMutable'#
exception zetamarkets_py.zeta_client.errors.custom.SpreadAccountHasUnsettledPositions#

Bases: ProgramError

code = 6097#
msg = 'Spread account seeds mismatch'#
name = 'SpreadAccountHasUnsettledPositions'#
exception zetamarkets_py.zeta_client.errors.custom.SpreadAccountInvalidExpirySeriesState#

Bases: ProgramError

code = 6098#
msg = 'Spread account invalid expiry series state'#
name = 'SpreadAccountInvalidExpirySeriesState'#
exception zetamarkets_py.zeta_client.errors.custom.SpreadAccountSeedsMismatch#

Bases: ProgramError

code = 6096#
msg = 'Spread account seeds mismatch'#
name = 'SpreadAccountSeedsMismatch'#
exception zetamarkets_py.zeta_client.errors.custom.StrikeInitializationNotReady#

Bases: ProgramError

code = 6036#
msg = 'Strike initialization not ready'#
name = 'StrikeInitializationNotReady'#
exception zetamarkets_py.zeta_client.errors.custom.TooManyTriggerOrders#

Bases: ProgramError

code = 6148#
msg = 'Too many trigger orders, close some and retry'#
name = 'TooManyTriggerOrders'#
exception zetamarkets_py.zeta_client.errors.custom.TriggerOrderBitOccupied#

Bases: ProgramError

code = 6156#
msg = 'Given trigger order bit is occupied, pick another'#
name = 'TriggerOrderBitOccupied'#
exception zetamarkets_py.zeta_client.errors.custom.TriggerOrderCannotBeExecuted#

Bases: ProgramError

code = 6147#
msg = 'Trigger order cannot be executed'#
name = 'TriggerOrderCannotBeExecuted'#
exception zetamarkets_py.zeta_client.errors.custom.TriggerOrderCannotBeRemoved#

Bases: ProgramError

code = 6146#
msg = 'Trigger order cannot be removed'#
name = 'TriggerOrderCannotBeRemoved'#
exception zetamarkets_py.zeta_client.errors.custom.TriggerOrderNeedsTimeOrPriceAndDirection#

Bases: ProgramError

code = 6155#
msg = 'Trigger order needs either a trigger price + direction, or trigger time'#
name = 'TriggerOrderNeedsTimeOrPriceAndDirection'#
exception zetamarkets_py.zeta_client.errors.custom.Unreachable#

Bases: ProgramError

code = 6001#
msg = 'Unreachable'#
name = 'Unreachable'#
exception zetamarkets_py.zeta_client.errors.custom.UnsortedOpenOrdersAccounts#

Bases: ProgramError

code = 6063#
msg = 'Unsorted open orders accounts'#
name = 'UnsortedOpenOrdersAccounts'#
exception zetamarkets_py.zeta_client.errors.custom.UnsupportedKind#

Bases: ProgramError

code = 6037#
msg = 'Unsupported kind'#
name = 'UnsupportedKind'#
exception zetamarkets_py.zeta_client.errors.custom.UserDepositWhitelistAccountSeedsMismatch#

Bases: ProgramError

code = 6052#
msg = 'User deposit whitelist account seeds mismatch'#
name = 'UserDepositWhitelistAccountSeedsMismatch'#
exception zetamarkets_py.zeta_client.errors.custom.UserForceCancelInProgress#

Bases: ProgramError

code = 6061#
msg = 'User has a force cancel in progress'#
name = 'UserForceCancelInProgress'#
exception zetamarkets_py.zeta_client.errors.custom.UserHasActiveOrders#

Bases: ProgramError

code = 6060#
msg = 'User still has active orders'#
name = 'UserHasActiveOrders'#
exception zetamarkets_py.zeta_client.errors.custom.UserHasNoActiveOrders#

Bases: ProgramError

code = 6015#
msg = 'User has no active orders'#
name = 'UserHasNoActiveOrders'#
exception zetamarkets_py.zeta_client.errors.custom.UserHasRemainingOrdersOnExpiredMarket#

Bases: ProgramError

code = 6021#
msg = 'User has remaining orders on expired market'#
name = 'UserHasRemainingOrdersOnExpiredMarket'#
exception zetamarkets_py.zeta_client.errors.custom.UserHasUnsettledPositions#

Bases: ProgramError

code = 6025#
msg = 'User has unsettled positions'#
name = 'UserHasUnsettledPositions'#
exception zetamarkets_py.zeta_client.errors.custom.UserTradingFeeWhitelistAccountSeedsMismatch#

Bases: ProgramError

code = 6051#
msg = 'User trading fee whitelist account seeds mismatch'#
name = 'UserTradingFeeWhitelistAccountSeedsMismatch'#
exception zetamarkets_py.zeta_client.errors.custom.WithdrawLimitBreach#

Bases: ProgramError

code = 6133#
msg = 'Withdraw limit breach, wait to withdraw more'#
name = 'WithdrawLimitBreach'#
exception zetamarkets_py.zeta_client.errors.custom.WithdrawalAmountExceedsWithdrawableBalance#

Bases: ProgramError

code = 6011#
msg = 'Withdrawal amount exceeds withdrawable balance'#
name = 'WithdrawalAmountExceedsWithdrawableBalance'#
exception zetamarkets_py.zeta_client.errors.custom.ZeroPrice#

Bases: ProgramError

code = 6007#
msg = 'ZeroPrice'#
name = 'ZeroPrice'#
exception zetamarkets_py.zeta_client.errors.custom.ZeroSize#

Bases: ProgramError

code = 6008#
msg = 'ZeroSize'#
name = 'ZeroSize'#
exception zetamarkets_py.zeta_client.errors.custom.ZeroWithdrawableBalance#

Bases: ProgramError

code = 6009#
msg = 'Zero withdrawable balance'#
name = 'ZeroWithdrawableBalance'#
exception zetamarkets_py.zeta_client.errors.custom.ZetaGroupAccountSeedsMismatch#

Bases: ProgramError

code = 6047#
msg = 'Zeta group account seeds mismatch'#
name = 'ZetaGroupAccountSeedsMismatch'#
exception zetamarkets_py.zeta_client.errors.custom.ZetaGroupHalted#

Bases: ProgramError

code = 6080#
msg = 'Zeta group halted'#
name = 'ZetaGroupHalted'#
exception zetamarkets_py.zeta_client.errors.custom.ZetaGroupNotHalted#

Bases: ProgramError

code = 6081#
msg = 'Zeta group not halted'#
name = 'ZetaGroupNotHalted'#
exception zetamarkets_py.zeta_client.errors.custom.ZetaHalted#

Bases: ProgramError

code = 6136#
msg = 'Zeta exchange is halted'#
name = 'ZetaHalted'#
exception zetamarkets_py.zeta_client.errors.custom.ZetaNotHalted#

Bases: ProgramError

code = 6137#
msg = 'Zeta exchange is not halted'#
name = 'ZetaNotHalted'#
zetamarkets_py.zeta_client.errors.custom.from_code(code: int) DepositOverflow | Unreachable | FailedInitialMarginRequirement | LiquidatorFailedMarginRequirement | CannotLiquidateOwnAccount | CrankInvalidRemainingAccounts | IncorrectTickSize | ZeroPrice | ZeroSize | ZeroWithdrawableBalance | DepositAmountExceeded | WithdrawalAmountExceedsWithdrawableBalance | AccountHasSufficientMarginPostCancels | OverBankrupt | AccountHasSufficientMargin | UserHasNoActiveOrders | InvalidExpirationInterval | ProductMarketsAlreadyInitialized | InvalidProductMarketKey | MarketNotLive | MarketPricingNotReady | UserHasRemainingOrdersOnExpiredMarket | InvalidSeriesExpiration | InvalidExpiredOrderCancel | NoMarketsToAdd | UserHasUnsettledPositions | NoMarginAccountsToSettle | CannotSettleUserWithActiveOrders | OrderbookNotEmpty | InvalidNumberOfAccounts | InvalidMarketAccounts | ProductStrikeUninitialized | PricingNotUpToDate | RetreatsAreStale | ProductDirty | ProductStrikesInitialized | StrikeInitializationNotReady | UnsupportedKind | InvalidZetaGroup | InvalidMarginAccount | InvalidGreeksAccount | InvalidSettlementAccount | InvalidCancelAuthority | CannotUpdatePricingAfterExpiry | LoadAccountDiscriminatorAlreadySet | AccountAlreadyInitialized | GreeksAccountSeedsMismatch | ZetaGroupAccountSeedsMismatch | MarginAccountSeedsMismatch | OpenOrdersAccountSeedsMismatch | MarketNodeAccountSeedsMismatch | UserTradingFeeWhitelistAccountSeedsMismatch | UserDepositWhitelistAccountSeedsMismatch | MarketIndexesUninitialized | MarketIndexesAlreadyInitialized | CannotGetUnsetStrike | CannotSetInitializedStrike | CannotResetUninitializedStrike | CrankMarginAccountNotMutable | InvalidAdminSigner | UserHasActiveOrders | UserForceCancelInProgress | FailedPriceBandCheck | UnsortedOpenOrdersAccounts | AccountNotMutable | AccountDiscriminatorMismatch | InvalidMarketNodeIndex | InvalidMarketNode | LUTOutOfBounds | RebalanceInsuranceInvalidRemainingAccounts | InvalidMintDecimals | InvalidZetaGroupOracle | InvalidZetaGroupDepositMint | InvalidZetaGroupRebalanceMint | InvalidDepositAmount | InvalidTokenAccountOwner | InvalidWithdrawAmount | InvalidDepositRemainingAccounts | InvalidPlaceOrderRemainingAccounts | ClientOrderIdCannotBeZero | ZetaGroupHalted | ZetaGroupNotHalted | HaltMarkPriceNotSet | HaltMarketsNotCleaned | HaltMarketNodesNotCleaned | CannotExpireOptionsAfterExpirationThreshold | PostOnlyInCross | FillOrKillNotFullSize | InvalidOpenOrdersMapOwner | AccountDidNotSerialize | OpenOrdersWithNonEmptyPositions | CannotCloseNonEmptyMarginAccount | InvalidTagLength | NakedShortCallIsNotAllowed | InvalidSpreadAccount | CannotCloseNonEmptySpreadAccount | SpreadAccountSeedsMismatch | SpreadAccountHasUnsettledPositions | SpreadAccountInvalidExpirySeriesState | InsufficientFundsToCollateralizeSpreadAccount | FailedMaintenanceMarginRequirement | InvalidMovement | MovementOnExpiredSeries | InvalidMovementSize | ExceededMaxPositionMovements | ExceededMaxSpreadAccountContracts | OraclePriceIsInvalid | InvalidUnderlyingMint | InvalidReferrerAlias | ReferrerAlreadyHasAlias | InvalidTreasuryMovementAmount | InvalidReferralsAdminSigner | InvalidSetReferralsRewardsRemainingAccounts | SetReferralsRewardsAccountNotMutable | InvalidClaimReferralsRewardsAmount | InvalidClaimReferralsRewardsAccount | ReferralAccountSeedsMismatch | ReferrerAccountSeedsMismatch | ProtectedMmMarginAccount | CannotWithdrawWithOpenOrders | FundingRateNotUpToDate | PerpSyncQueueFull | PerpSyncQueueAccountSeedsMismatch | PerpSyncQueueEmpty | InvalidNonPerpMarket | InvalidPerpMarket | CannotInitializePerpMarketNode | DeprecatedInstruction | ForceCancelExpiredTIFOrdersOnly | InvalidPlaceOrderAuthority | InvalidOpenOrdersAuthority | InsuranceVaultSeedsMismatch | OpenInterestLimitBreach | WithdrawLimitBreach | InvalidPricingOracle | PricingAccountSeedsMismatch | ZetaHalted | ZetaNotHalted | NotFreshCrossMarginAccount | CannotCloseNonEmptyMarginAccountManager | CannotMigrateWithOpenOrders | InvalidMarginAccountType | MarginAccountAssetMismatch | FeatureUnavailable | MarginAccountCannotLiquidateCrossMarginAccount | InvalidDexAccOwner | TriggerOrderCannotBeRemoved | TriggerOrderCannotBeExecuted | TooManyTriggerOrders | InvalidTriggerOrderRemainingAccounts | InvalidTriggerOrderWhitelistFeesAccount | MissingTriggerOrderWhitelistFeesAccount | InvalidTriggerOrderBitRange | InvalidSecondaryAdmin | OnlyOwnerCanEditTriggerOrder | TriggerOrderNeedsTimeOrPriceAndDirection | TriggerOrderBitOccupied | InvalidLiquidatorAuthority | IOCInvalidTakerFillSize | IncorrectLotSize | None#

Module contents#

zetamarkets_py.zeta_client.errors.from_code(code: int) DepositOverflow | Unreachable | FailedInitialMarginRequirement | LiquidatorFailedMarginRequirement | CannotLiquidateOwnAccount | CrankInvalidRemainingAccounts | IncorrectTickSize | ZeroPrice | ZeroSize | ZeroWithdrawableBalance | DepositAmountExceeded | WithdrawalAmountExceedsWithdrawableBalance | AccountHasSufficientMarginPostCancels | OverBankrupt | AccountHasSufficientMargin | UserHasNoActiveOrders | InvalidExpirationInterval | ProductMarketsAlreadyInitialized | InvalidProductMarketKey | MarketNotLive | MarketPricingNotReady | UserHasRemainingOrdersOnExpiredMarket | InvalidSeriesExpiration | InvalidExpiredOrderCancel | NoMarketsToAdd | UserHasUnsettledPositions | NoMarginAccountsToSettle | CannotSettleUserWithActiveOrders | OrderbookNotEmpty | InvalidNumberOfAccounts | InvalidMarketAccounts | ProductStrikeUninitialized | PricingNotUpToDate | RetreatsAreStale | ProductDirty | ProductStrikesInitialized | StrikeInitializationNotReady | UnsupportedKind | InvalidZetaGroup | InvalidMarginAccount | InvalidGreeksAccount | InvalidSettlementAccount | InvalidCancelAuthority | CannotUpdatePricingAfterExpiry | LoadAccountDiscriminatorAlreadySet | AccountAlreadyInitialized | GreeksAccountSeedsMismatch | ZetaGroupAccountSeedsMismatch | MarginAccountSeedsMismatch | OpenOrdersAccountSeedsMismatch | MarketNodeAccountSeedsMismatch | UserTradingFeeWhitelistAccountSeedsMismatch | UserDepositWhitelistAccountSeedsMismatch | MarketIndexesUninitialized | MarketIndexesAlreadyInitialized | CannotGetUnsetStrike | CannotSetInitializedStrike | CannotResetUninitializedStrike | CrankMarginAccountNotMutable | InvalidAdminSigner | UserHasActiveOrders | UserForceCancelInProgress | FailedPriceBandCheck | UnsortedOpenOrdersAccounts | AccountNotMutable | AccountDiscriminatorMismatch | InvalidMarketNodeIndex | InvalidMarketNode | LUTOutOfBounds | RebalanceInsuranceInvalidRemainingAccounts | InvalidMintDecimals | InvalidZetaGroupOracle | InvalidZetaGroupDepositMint | InvalidZetaGroupRebalanceMint | InvalidDepositAmount | InvalidTokenAccountOwner | InvalidWithdrawAmount | InvalidDepositRemainingAccounts | InvalidPlaceOrderRemainingAccounts | ClientOrderIdCannotBeZero | ZetaGroupHalted | ZetaGroupNotHalted | HaltMarkPriceNotSet | HaltMarketsNotCleaned | HaltMarketNodesNotCleaned | CannotExpireOptionsAfterExpirationThreshold | PostOnlyInCross | FillOrKillNotFullSize | InvalidOpenOrdersMapOwner | AccountDidNotSerialize | OpenOrdersWithNonEmptyPositions | CannotCloseNonEmptyMarginAccount | InvalidTagLength | NakedShortCallIsNotAllowed | InvalidSpreadAccount | CannotCloseNonEmptySpreadAccount | SpreadAccountSeedsMismatch | SpreadAccountHasUnsettledPositions | SpreadAccountInvalidExpirySeriesState | InsufficientFundsToCollateralizeSpreadAccount | FailedMaintenanceMarginRequirement | InvalidMovement | MovementOnExpiredSeries | InvalidMovementSize | ExceededMaxPositionMovements | ExceededMaxSpreadAccountContracts | OraclePriceIsInvalid | InvalidUnderlyingMint | InvalidReferrerAlias | ReferrerAlreadyHasAlias | InvalidTreasuryMovementAmount | InvalidReferralsAdminSigner | InvalidSetReferralsRewardsRemainingAccounts | SetReferralsRewardsAccountNotMutable | InvalidClaimReferralsRewardsAmount | InvalidClaimReferralsRewardsAccount | ReferralAccountSeedsMismatch | ReferrerAccountSeedsMismatch | ProtectedMmMarginAccount | CannotWithdrawWithOpenOrders | FundingRateNotUpToDate | PerpSyncQueueFull | PerpSyncQueueAccountSeedsMismatch | PerpSyncQueueEmpty | InvalidNonPerpMarket | InvalidPerpMarket | CannotInitializePerpMarketNode | DeprecatedInstruction | ForceCancelExpiredTIFOrdersOnly | InvalidPlaceOrderAuthority | InvalidOpenOrdersAuthority | InsuranceVaultSeedsMismatch | OpenInterestLimitBreach | WithdrawLimitBreach | InvalidPricingOracle | PricingAccountSeedsMismatch | ZetaHalted | ZetaNotHalted | NotFreshCrossMarginAccount | CannotCloseNonEmptyMarginAccountManager | CannotMigrateWithOpenOrders | InvalidMarginAccountType | MarginAccountAssetMismatch | FeatureUnavailable | MarginAccountCannotLiquidateCrossMarginAccount | InvalidDexAccOwner | TriggerOrderCannotBeRemoved | TriggerOrderCannotBeExecuted | TooManyTriggerOrders | InvalidTriggerOrderRemainingAccounts | InvalidTriggerOrderWhitelistFeesAccount | MissingTriggerOrderWhitelistFeesAccount | InvalidTriggerOrderBitRange | InvalidSecondaryAdmin | OnlyOwnerCanEditTriggerOrder | TriggerOrderNeedsTimeOrPriceAndDirection | TriggerOrderBitOccupied | InvalidLiquidatorAuthority | IOCInvalidTakerFillSize | IncorrectLotSize | InstructionMissing | InstructionFallbackNotFound | InstructionDidNotDeserialize | InstructionDidNotSerialize | IdlInstructionStub | IdlInstructionInvalidProgram | ConstraintMut | ConstraintHasOne | ConstraintSigner | ConstraintRaw | ConstraintOwner | ConstraintRentExempt | ConstraintSeeds | ConstraintExecutable | ConstraintState | ConstraintAssociated | ConstraintAssociatedInit | ConstraintClose | ConstraintAddress | ConstraintZero | ConstraintTokenMint | ConstraintTokenOwner | ConstraintMintMintAuthority | ConstraintMintFreezeAuthority | ConstraintMintDecimals | ConstraintSpace | RequireViolated | RequireEqViolated | RequireKeysEqViolated | RequireNeqViolated | RequireKeysNeqViolated | RequireGtViolated | RequireGteViolated | AccountDiscriminatorAlreadySet | AccountDiscriminatorNotFound | AccountDiscriminatorMismatch | AccountDidNotDeserialize | AccountDidNotSerialize | AccountNotEnoughKeys | AccountNotMutable | AccountOwnedByWrongProgram | InvalidProgramId | InvalidProgramExecutable | AccountNotSigner | AccountNotSystemOwned | AccountNotInitialized | AccountNotProgramData | AccountNotAssociatedTokenAccount | AccountSysvarMismatch | StateInvalidAddress | Deprecated | None#
zetamarkets_py.zeta_client.errors.from_tx_error(error: RPCException) InstructionMissing | InstructionFallbackNotFound | InstructionDidNotDeserialize | InstructionDidNotSerialize | IdlInstructionStub | IdlInstructionInvalidProgram | ConstraintMut | ConstraintHasOne | ConstraintSigner | ConstraintRaw | ConstraintOwner | ConstraintRentExempt | ConstraintSeeds | ConstraintExecutable | ConstraintState | ConstraintAssociated | ConstraintAssociatedInit | ConstraintClose | ConstraintAddress | ConstraintZero | ConstraintTokenMint | ConstraintTokenOwner | ConstraintMintMintAuthority | ConstraintMintFreezeAuthority | ConstraintMintDecimals | ConstraintSpace | RequireViolated | RequireEqViolated | RequireKeysEqViolated | RequireNeqViolated | RequireKeysNeqViolated | RequireGtViolated | RequireGteViolated | AccountDiscriminatorAlreadySet | AccountDiscriminatorNotFound | AccountDiscriminatorMismatch | AccountDidNotDeserialize | AccountDidNotSerialize | AccountNotEnoughKeys | AccountNotMutable | AccountOwnedByWrongProgram | InvalidProgramId | InvalidProgramExecutable | AccountNotSigner | AccountNotSystemOwned | AccountNotInitialized | AccountNotProgramData | AccountNotAssociatedTokenAccount | AccountSysvarMismatch | StateInvalidAddress | Deprecated | DepositOverflow | Unreachable | FailedInitialMarginRequirement | LiquidatorFailedMarginRequirement | CannotLiquidateOwnAccount | CrankInvalidRemainingAccounts | IncorrectTickSize | ZeroPrice | ZeroSize | ZeroWithdrawableBalance | DepositAmountExceeded | WithdrawalAmountExceedsWithdrawableBalance | AccountHasSufficientMarginPostCancels | OverBankrupt | AccountHasSufficientMargin | UserHasNoActiveOrders | InvalidExpirationInterval | ProductMarketsAlreadyInitialized | InvalidProductMarketKey | MarketNotLive | MarketPricingNotReady | UserHasRemainingOrdersOnExpiredMarket | InvalidSeriesExpiration | InvalidExpiredOrderCancel | NoMarketsToAdd | UserHasUnsettledPositions | NoMarginAccountsToSettle | CannotSettleUserWithActiveOrders | OrderbookNotEmpty | InvalidNumberOfAccounts | InvalidMarketAccounts | ProductStrikeUninitialized | PricingNotUpToDate | RetreatsAreStale | ProductDirty | ProductStrikesInitialized | StrikeInitializationNotReady | UnsupportedKind | InvalidZetaGroup | InvalidMarginAccount | InvalidGreeksAccount | InvalidSettlementAccount | InvalidCancelAuthority | CannotUpdatePricingAfterExpiry | LoadAccountDiscriminatorAlreadySet | AccountAlreadyInitialized | GreeksAccountSeedsMismatch | ZetaGroupAccountSeedsMismatch | MarginAccountSeedsMismatch | OpenOrdersAccountSeedsMismatch | MarketNodeAccountSeedsMismatch | UserTradingFeeWhitelistAccountSeedsMismatch | UserDepositWhitelistAccountSeedsMismatch | MarketIndexesUninitialized | MarketIndexesAlreadyInitialized | CannotGetUnsetStrike | CannotSetInitializedStrike | CannotResetUninitializedStrike | CrankMarginAccountNotMutable | InvalidAdminSigner | UserHasActiveOrders | UserForceCancelInProgress | FailedPriceBandCheck | UnsortedOpenOrdersAccounts | AccountNotMutable | AccountDiscriminatorMismatch | InvalidMarketNodeIndex | InvalidMarketNode | LUTOutOfBounds | RebalanceInsuranceInvalidRemainingAccounts | InvalidMintDecimals | InvalidZetaGroupOracle | InvalidZetaGroupDepositMint | InvalidZetaGroupRebalanceMint | InvalidDepositAmount | InvalidTokenAccountOwner | InvalidWithdrawAmount | InvalidDepositRemainingAccounts | InvalidPlaceOrderRemainingAccounts | ClientOrderIdCannotBeZero | ZetaGroupHalted | ZetaGroupNotHalted | HaltMarkPriceNotSet | HaltMarketsNotCleaned | HaltMarketNodesNotCleaned | CannotExpireOptionsAfterExpirationThreshold | PostOnlyInCross | FillOrKillNotFullSize | InvalidOpenOrdersMapOwner | AccountDidNotSerialize | OpenOrdersWithNonEmptyPositions | CannotCloseNonEmptyMarginAccount | InvalidTagLength | NakedShortCallIsNotAllowed | InvalidSpreadAccount | CannotCloseNonEmptySpreadAccount | SpreadAccountSeedsMismatch | SpreadAccountHasUnsettledPositions | SpreadAccountInvalidExpirySeriesState | InsufficientFundsToCollateralizeSpreadAccount | FailedMaintenanceMarginRequirement | InvalidMovement | MovementOnExpiredSeries | InvalidMovementSize | ExceededMaxPositionMovements | ExceededMaxSpreadAccountContracts | OraclePriceIsInvalid | InvalidUnderlyingMint | InvalidReferrerAlias | ReferrerAlreadyHasAlias | InvalidTreasuryMovementAmount | InvalidReferralsAdminSigner | InvalidSetReferralsRewardsRemainingAccounts | SetReferralsRewardsAccountNotMutable | InvalidClaimReferralsRewardsAmount | InvalidClaimReferralsRewardsAccount | ReferralAccountSeedsMismatch | ReferrerAccountSeedsMismatch | ProtectedMmMarginAccount | CannotWithdrawWithOpenOrders | FundingRateNotUpToDate | PerpSyncQueueFull | PerpSyncQueueAccountSeedsMismatch | PerpSyncQueueEmpty | InvalidNonPerpMarket | InvalidPerpMarket | CannotInitializePerpMarketNode | DeprecatedInstruction | ForceCancelExpiredTIFOrdersOnly | InvalidPlaceOrderAuthority | InvalidOpenOrdersAuthority | InsuranceVaultSeedsMismatch | OpenInterestLimitBreach | WithdrawLimitBreach | InvalidPricingOracle | PricingAccountSeedsMismatch | ZetaHalted | ZetaNotHalted | NotFreshCrossMarginAccount | CannotCloseNonEmptyMarginAccountManager | CannotMigrateWithOpenOrders | InvalidMarginAccountType | MarginAccountAssetMismatch | FeatureUnavailable | MarginAccountCannotLiquidateCrossMarginAccount | InvalidDexAccOwner | TriggerOrderCannotBeRemoved | TriggerOrderCannotBeExecuted | TooManyTriggerOrders | InvalidTriggerOrderRemainingAccounts | InvalidTriggerOrderWhitelistFeesAccount | MissingTriggerOrderWhitelistFeesAccount | InvalidTriggerOrderBitRange | InvalidSecondaryAdmin | OnlyOwnerCanEditTriggerOrder | TriggerOrderNeedsTimeOrPriceAndDirection | TriggerOrderBitOccupied | InvalidLiquidatorAuthority | IOCInvalidTakerFillSize | IncorrectLotSize | None#