Skip to content

Latest commit

 

History

History
55 lines (46 loc) · 2.63 KB

File metadata and controls

55 lines (46 loc) · 2.63 KB

PolicyRule

V2 Policy rule which is enforced on transactions

Properties

Name Type Description Notes
name str Name of the policy rule
id str Unique identifier for the policy rule
policy_engine_version str Policy engine version
type PolicyType
sub_type PolicyType [optional]
initiator InitiatorConfigPattern
asset AssetConfig [optional]
source SourceConfig
destination DestinationConfig [optional]
account AccountConfig [optional]
side OrderSide [optional]
verdict VerdictConfig
amount_over_time AmountOverTimeConfig [optional]
amount AmountConfig [optional]
external_descriptor str External descriptor for the rule [optional]
method ContractMethodPattern [optional]
is_global_policy bool Whether this is a global policy [optional]
program_call ProgramCallConfig [optional]
screening_metadata ScreeningMetadataConfig [optional]
quote_asset AssetConfig [optional]
base_asset AssetConfig [optional]
quote_amount AmountRange [optional]
base_amount AmountRange [optional]
d_app_address DAppAddressConfig [optional]
derivation_path DerivationPathConfig [optional]
index float Index for the policy rule [optional]

Example

from fireblocks.models.policy_rule import PolicyRule

# TODO update the JSON string below
json = "{}"
# create an instance of PolicyRule from a JSON string
policy_rule_instance = PolicyRule.from_json(json)
# print the JSON string representation of the object
print(PolicyRule.to_json())

# convert the object into a dict
policy_rule_dict = policy_rule_instance.to_dict()
# create an instance of PolicyRule from a dict
policy_rule_from_dict = PolicyRule.from_dict(policy_rule_dict)

[Back to Model list] [Back to API list] [Back to README]