Skip to main content
Version: testnet (v0.73)

AccountType

The various account types in Vega (used by collateral)

enum AccountType {
ACCOUNT_TYPE_INSURANCE
ACCOUNT_TYPE_GLOBAL_INSURANCE
ACCOUNT_TYPE_SETTLEMENT
ACCOUNT_TYPE_MARGIN
ACCOUNT_TYPE_GENERAL
ACCOUNT_TYPE_FEES_INFRASTRUCTURE
ACCOUNT_TYPE_FEES_LIQUIDITY
ACCOUNT_TYPE_FEES_MAKER
ACCOUNT_TYPE_BOND
ACCOUNT_TYPE_EXTERNAL
ACCOUNT_TYPE_GLOBAL_REWARD
ACCOUNT_TYPE_PENDING_TRANSFERS
ACCOUNT_TYPE_REWARD_MAKER_PAID_FEES
ACCOUNT_TYPE_REWARD_MAKER_RECEIVED_FEES
ACCOUNT_TYPE_REWARD_LP_RECEIVED_FEES
ACCOUNT_TYPE_REWARD_MARKET_PROPOSERS
ACCOUNT_TYPE_HOLDING
ACCOUNT_TYPE_LP_LIQUIDITY_FEES
ACCOUNT_TYPE_NETWORK_TREASURY
ACCOUNT_TYPE_VESTING_REWARDS
ACCOUNT_TYPE_VESTED_REWARDS
ACCOUNT_TYPE_REWARD_AVERAGE_POSITION
ACCOUNT_TYPE_REWARD_RELATIVE_RETURN
ACCOUNT_TYPE_REWARD_RETURN_VOLATILITY
ACCOUNT_TYPE_REWARD_VALIDATOR_RANKING
ACCOUNT_TYPE_PENDING_FEE_REFERRAL_REWARD
}

Values

AccountType.ACCOUNT_TYPE_INSURANCE

Insurance pool account - only for 'system' party

AccountType.ACCOUNT_TYPE_GLOBAL_INSURANCE

Global insurance pool account for an asset

AccountType.ACCOUNT_TYPE_SETTLEMENT

Settlement - only for 'system' party

AccountType.ACCOUNT_TYPE_MARGIN

Margin - The leverage account for parties, contains funds set aside for the margin needed to support a party's open positions. Each party will have a margin account for each market they have traded in. The required initial margin is allocated to each market from the general account, and it cannot be withdrawn or used as margin on another market until it's released back into the general account. The protocol uses an internal accounting system to segregate funds held as margin from other funds to ensure they are never lost or 'double spent'

AccountType.ACCOUNT_TYPE_GENERAL

General account - the account containing 'unused' collateral for parties

AccountType.ACCOUNT_TYPE_FEES_INFRASTRUCTURE

Infrastructure fee account - the account where all infrastructure fees are collected

AccountType.ACCOUNT_TYPE_FEES_LIQUIDITY

Liquidity fee account - the account contains fees earned by providing liquidity

AccountType.ACCOUNT_TYPE_FEES_MAKER

Market maker fee account - holds fees paid to the passive side when a trade matches

AccountType.ACCOUNT_TYPE_BOND

Bond - an account use to maintain liquidity commitments

AccountType.ACCOUNT_TYPE_EXTERNAL

External - an account use to refer to external account

AccountType.ACCOUNT_TYPE_GLOBAL_REWARD

GlobalReward - a global account for the reward pool

AccountType.ACCOUNT_TYPE_PENDING_TRANSFERS

PendingTransfers - a global account for the pending transfers pool

AccountType.ACCOUNT_TYPE_REWARD_MAKER_PAID_FEES

RewardMakerPaidFees - an account holding rewards for maker paid fees

AccountType.ACCOUNT_TYPE_REWARD_MAKER_RECEIVED_FEES

RewardMakerReceivedFees - an account holding rewards for maker received fees

AccountType.ACCOUNT_TYPE_REWARD_LP_RECEIVED_FEES

RewardLpReceivedFees - an account holding rewards for a liquidity provider's received fees

AccountType.ACCOUNT_TYPE_REWARD_MARKET_PROPOSERS

RewardMarketProposers - an account holding rewards for market proposers

AccountType.ACCOUNT_TYPE_HOLDING

AccountTypeHolding - an account for holding funds covering for active unfilled orders

AccountType.ACCOUNT_TYPE_LP_LIQUIDITY_FEES

Per liquidity provider, per market account for holding LPs' fees before distribution

AccountType.ACCOUNT_TYPE_NETWORK_TREASURY

Network treasury, per-asset treasury controlled by the network

AccountType.ACCOUNT_TYPE_VESTING_REWARDS

Vesting reward account is a per party per asset account for locked reward funds waiting to be vested

AccountType.ACCOUNT_TYPE_VESTED_REWARDS

Vested reward account is a per party per asset account for vested reward funds

AccountType.ACCOUNT_TYPE_REWARD_AVERAGE_POSITION

Average position reward account is a per asset per market account for average position reward funds

AccountType.ACCOUNT_TYPE_REWARD_RELATIVE_RETURN

Relative return reward account is a per asset per market account for relative return reward funds

AccountType.ACCOUNT_TYPE_REWARD_RETURN_VOLATILITY

Return volatility reward account is a per asset per market account for return volatility reward funds

AccountType.ACCOUNT_TYPE_REWARD_VALIDATOR_RANKING

Validator ranking reward account is a per asset account for validator ranking reward funds

AccountType.ACCOUNT_TYPE_PENDING_FEE_REFERRAL_REWARD

Holds pending rewards to be paid to the referrer of a party out of fees paid by the taker

Member of

AccountBalance object ● AccountDetails object ● AccountEvent object ● AccountFilter input ● accounts subscription ● AccountUpdate object ● AggregatedBalance object ● AggregatedLedgerEntry object ● EpochRewardSummary object ● NewTransfer object ● Reward object ● Transfer object