marginpy.generated_client.types.internal_transfer_type module

class InsuranceFeeJSON

Bases: TypedDict

kind: Literal['InsuranceFee']
class ProtocolFeeJSON

Bases: TypedDict

kind: Literal['ProtocolFee']
class InsuranceFee

Bases: object

discriminator: ClassVar = 0
kind: ClassVar = 'InsuranceFee'
classmethod to_json() InsuranceFeeJSON
classmethod to_encodable() dict
class ProtocolFee

Bases: object

discriminator: ClassVar = 1
kind: ClassVar = 'ProtocolFee'
classmethod to_json() ProtocolFeeJSON
classmethod to_encodable() dict
from_decoded(obj: dict) Union[InsuranceFee, ProtocolFee]
from_json(obj: Union[InsuranceFeeJSON, ProtocolFeeJSON]) Union[InsuranceFee, ProtocolFee]