Skip to content

info

Using the info model methods the merchant can get the following information:

  1. List of available currencies - method info.currencies
  2. List of available currency exchange directions - method info.exchanges

endpoint

Queries for the model's methods are sent to endpoint https://api.any.money/.


info.currencies

The method returns a list of all active currencies in the system and the base parameter values for each. Has no arguments, only standart headers needed.

Input method arguments
Param Required Example Description
- - - -

Method response data

Active system currencies list
Currency params:

admin_max
maximum transaction amount for this currency
admin_min
minimum transaction amount for this currency
is_crypto
cryptocurrency flag
precision
value of the currency fractional part (minimum movements grain)

Exceptions

EParamNotFound
no active currency is found

info.exchanges

Method for compiling a list of available currencies convertation directions in Any.Money system and representations of their parameters.

Input method arguments
Param Required Example Description
- - - -

Method response data

Directions for "currency-currency" exchange Parameters of exchange directions:

fee
external system fee for convertation of the currency pair, in percents
i_rate
pure actual exchange rate, if the convertation tooks place. In the "rate": ["25.30301", "1"] format
in_curr
replenishment currency for convertation transaction - the one to be converted in the credit currency
in_max
maximum amount in the credit currency
in_min
minimum amount in the credit currency
out_curr
debit currency for convertation transaction - the one in which the credit currency will be converted
out_min
minimum convertation amount in the debit currency
out_max
maximum convertation amount in the debit currency
rate
currency pair convertation rate with convertation fee added (rate= i_rate + system fee for the convertation)
ratesource
the source of i_rate receiving

Exceptions

EParamNotFound
no exchange directions were found