marginpy.generated_client.accounts.marginfi_account module
- class MarginfiAccountJSON
Bases:
TypedDict
- authority: str
- marginfi_group: str
- deposit_record: WrappedI80F48JSON
- borrow_record: WrappedI80F48JSON
- active_utps: list[bool]
- utp_account_config: list[marginpy.generated_client.types.utp_account_config.UTPAccountConfigJSON]
- reserved_space: list[int]
- class MarginfiAccount(authority: solana.publickey.PublicKey, marginfi_group: solana.publickey.PublicKey, deposit_record: marginpy.generated_client.types.wrapped_i80f48.WrappedI80F48, borrow_record: marginpy.generated_client.types.wrapped_i80f48.WrappedI80F48, active_utps: list[bool], utp_account_config: list[marginpy.generated_client.types.utp_account_config.UTPAccountConfig], reserved_space: list[int])
Bases:
object
- discriminator: ClassVar = b'C\xb2\x82m~r\x1c*'
- layout: ClassVar = <CStruct>
- authority: PublicKey
- marginfi_group: PublicKey
- deposit_record: WrappedI80F48
- borrow_record: WrappedI80F48
- active_utps: list[bool]
- utp_account_config: list[marginpy.generated_client.types.utp_account_config.UTPAccountConfig]
- reserved_space: list[int]
- async classmethod fetch(conn: AsyncClient, address: PublicKey, commitment: Optional[Commitment] = None, program_id: PublicKey = mf2tjVmwcxgNfscvVNdN9t2LZ8YwPkNQabeTzyYw2Hn) Optional[MarginfiAccount]
- async classmethod fetch_multiple(conn: AsyncClient, addresses: list[solana.publickey.PublicKey], commitment: Optional[Commitment] = None, program_id: PublicKey = mf2tjVmwcxgNfscvVNdN9t2LZ8YwPkNQabeTzyYw2Hn) List[Optional[MarginfiAccount]]
- classmethod decode(data: bytes) MarginfiAccount
- to_json() MarginfiAccountJSON
- classmethod from_json(obj: MarginfiAccountJSON) MarginfiAccount