Skip to content

Latest commit

 

History

History
148 lines (96 loc) · 4.77 KB

ComplianceScreeningConfigurationApi.md

File metadata and controls

148 lines (96 loc) · 4.77 KB

fireblocks.ComplianceScreeningConfigurationApi

All URIs are relative to https://api.fireblocks.io/v1

Method HTTP request Description
get_aml_screening_configuration GET /screening/aml/policy_configuration Get AML Screening Policy Configuration
get_screening_configuration GET /screening/travel_rule/policy_configuration Get Travel Rule Screening Policy Configuration

get_aml_screening_configuration

ScreeningConfigurationsRequest get_aml_screening_configuration()

Get AML Screening Policy Configuration

Retrieves the configuration for Travel Rule screening policy.

Example

from fireblocks.models.screening_configurations_request import ScreeningConfigurationsRequest
from fireblocks.client import Fireblocks
from fireblocks.client_configuration import ClientConfiguration
from fireblocks.exceptions import ApiException
from fireblocks.base_path import BasePath
from pprint import pprint

# load the secret key content from a file
with open('your_secret_key_file_path', 'r') as file:
    secret_key_value = file.read()

# build the configuration
configuration = ClientConfiguration(
        api_key="your_api_key",
        secret_key=secret_key_value,
        base_path=BasePath.Sandbox, # or set it directly to a string "https://sandbox-api.fireblocks.io/v1"
)


# Enter a context with an instance of the API client
with Fireblocks(configuration) as fireblocks:

    try:
        # Get AML Screening Policy Configuration
        api_response = fireblocks.compliance_screening_configuration.get_aml_screening_configuration().result()
        print("The response of ComplianceScreeningConfigurationApi->get_aml_screening_configuration:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling ComplianceScreeningConfigurationApi->get_aml_screening_configuration: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

ScreeningConfigurationsRequest

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Screening policy configuration retrieved successfully. -

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

get_screening_configuration

ScreeningConfigurationsRequest get_screening_configuration()

Get Travel Rule Screening Policy Configuration

Retrieves the configuration for Travel Rule screening policy.

Example

from fireblocks.models.screening_configurations_request import ScreeningConfigurationsRequest
from fireblocks.client import Fireblocks
from fireblocks.client_configuration import ClientConfiguration
from fireblocks.exceptions import ApiException
from fireblocks.base_path import BasePath
from pprint import pprint

# load the secret key content from a file
with open('your_secret_key_file_path', 'r') as file:
    secret_key_value = file.read()

# build the configuration
configuration = ClientConfiguration(
        api_key="your_api_key",
        secret_key=secret_key_value,
        base_path=BasePath.Sandbox, # or set it directly to a string "https://sandbox-api.fireblocks.io/v1"
)


# Enter a context with an instance of the API client
with Fireblocks(configuration) as fireblocks:

    try:
        # Get Travel Rule Screening Policy Configuration
        api_response = fireblocks.compliance_screening_configuration.get_screening_configuration().result()
        print("The response of ComplianceScreeningConfigurationApi->get_screening_configuration:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling ComplianceScreeningConfigurationApi->get_screening_configuration: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

ScreeningConfigurationsRequest

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Screening policy configuration retrieved successfully. -

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