import moonsdkfrom moonsdk.models.transaction_input import TransactionInputfrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.OnramperApi(api_client) authorization ='authorization_example'# str | account_name ='account_name_example'# str | transaction_input = moonsdk.TransactionInput()# TransactionInput | try: api_response =await api_instance.on_ramper_checkout(authorization, account_name, transaction_input)print("The response of OnramperApi->on_ramper_checkout:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling OnramperApi->on_ramper_checkout: %s\n"% e)
import moonsdkfrom moonsdk.models.quote import Quotefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.OnramperApi(api_client) authorization ='authorization_example'# str | fiat ='fiat_example'# str | crypto ='crypto_example'# str | amount =3.4# float | payment_method ='creditcard'# str | (optional) (default to 'creditcard') uuid =''# str | (optional) (default to '') client_name =''# str | (optional) (default to '') country =''# str | (optional) (default to '')try: api_response =await api_instance.on_ramper_get_quotes_buy(authorization, fiat, crypto, amount, payment_method=payment_method, uuid=uuid, client_name=client_name, country=country)print("The response of OnramperApi->on_ramper_get_quotes_buy:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling OnramperApi->on_ramper_get_quotes_buy: %s\n"% e)
import moonsdkfrom moonsdk.models.sell_quote import SellQuotefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.OnramperApi(api_client) authorization ='authorization_example'# str | fiat ='fiat_example'# str | crypto ='crypto_example'# str | amount =3.4# float | payment_method ='creditcard'# str | (optional) (default to 'creditcard') uuid =''# str | (optional) (default to '') client_name =''# str | (optional) (default to '') country =''# str | (optional) (default to '')try: api_response =await api_instance.on_ramper_get_quotes_sell(authorization, fiat, crypto, amount, payment_method=payment_method, uuid=uuid, client_name=client_name, country=country)print("The response of OnramperApi->on_ramper_get_quotes_sell:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling OnramperApi->on_ramper_get_quotes_sell: %s\n"% e)
import moonsdkfrom moonsdk.models.supported_asset_response import SupportedAssetResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.OnramperApi(api_client) authorization ='authorization_example'# str | source ='source_example'# str | country ='country_example'# str | try: api_response =await api_instance.on_ramper_get_supported_assets(authorization, source, country)print("The response of OnramperApi->on_ramper_get_supported_assets:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling OnramperApi->on_ramper_get_supported_assets: %s\n"% e)
import moonsdkfrom moonsdk.models.supported_currencies_response import SupportedCurrenciesResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.OnramperApi(api_client) authorization ='authorization_example'# str | type='type_example'# str | try: api_response =await api_instance.on_ramper_get_supported_currencies(authorization, type)print("The response of OnramperApi->on_ramper_get_supported_currencies:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling OnramperApi->on_ramper_get_supported_currencies: %s\n"% e)
import moonsdkfrom moonsdk.models.supported_default_response import SupportedDefaultResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.OnramperApi(api_client) authorization ='authorization_example'# str | country ='country_example'# str | type='type_example'# str | try: api_response =await api_instance.on_ramper_get_supported_defaults_all(authorization, country, type)print("The response of OnramperApi->on_ramper_get_supported_defaults_all:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling OnramperApi->on_ramper_get_supported_defaults_all: %s\n"% e)
import moonsdkfrom moonsdk.models.get_supported_on_ramps_response import GetSupportedOnRampsResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.OnramperApi(api_client) authorization ='authorization_example'# str | try: api_response =await api_instance.on_ramper_get_supported_on_ramps_all(authorization)print("The response of OnramperApi->on_ramper_get_supported_on_ramps_all:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling OnramperApi->on_ramper_get_supported_on_ramps_all: %s\n"% e)
import moonsdkfrom moonsdk.models.supported_payment_types_currency_response import SupportedPaymentTypesCurrencyResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.OnramperApi(api_client) authorization ='authorization_example'# str | fiat ='fiat_example'# str | country ='country_example'# str | type='type_example'# str | try: api_response =await api_instance.on_ramper_get_supported_payment_types(authorization, fiat, country, type)print("The response of OnramperApi->on_ramper_get_supported_payment_types:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling OnramperApi->on_ramper_get_supported_payment_types: %s\n"% e)
import moonsdkfrom moonsdk.models.supported_payment_types_currency_response import SupportedPaymentTypesCurrencyResponsefrom moonsdk.rest import ApiExceptionfrom pprint import pprint# Defining the host is optional and defaults to https://beta.usemoon.ai# See configuration.py for a list of all supported configuration parameters.configuration = moonsdk.Configuration( host ="https://beta.usemoon.ai")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Configure API key authorization: BearerAuthconfiguration.api_key['BearerAuth']= os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['BearerAuth'] = 'Bearer'# Enter a context with an instance of the API clientasyncwith moonsdk.ApiClient(configuration)as api_client:# Create an instance of the API class api_instance = moonsdk.OnramperApi(api_client) authorization ='authorization_example'# str | fiat ='fiat_example'# str | country ='country_example'# str | try: api_response =await api_instance.on_ramper_get_supported_payment_types_fiat(authorization, fiat, country)print("The response of OnramperApi->on_ramper_get_supported_payment_types_fiat:\n")pprint(api_response)exceptExceptionas e:print("Exception when calling OnramperApi->on_ramper_get_supported_payment_types_fiat: %s\n"% e)