Предметные инструменты · currency
Валюты и курсы · изменения · Добавить валюту
currency_site_currency_m174_writeИзменениеДобавить валюту · Обновить кеш валют · Удалить валюту.
Действия
В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.
Создать валюту с курсом к базовой валюте. Названия и форматы добавляются отдельно. Optional fields.LANG supplies installed language formats atomically. from_classifier:true fills native classifier defaults for every installed language before caller overrides. Optional request_id enables a durable one-attempt receipt; unknown or interrupted requests must never be automatically retried.
currency- строка · обязательный параметр
Три латинские буквы, например RUB или USD.
fields- объект · обязательный параметр
from_classifier- логическое значение
request_id- строка
Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt.
{
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "Три латинские буквы, например RUB или USD."
},
"fields": {
"type": "object",
"minProperties": 1,
"properties": {
"AMOUNT_CNT": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"AMOUNT": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000000
},
"SORT": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"NUMCODE": {
"type": "string",
"pattern": "^[0-9]{3}$"
},
"LANG": {
"type": "object",
"minProperties": 1,
"maxProperties": 100,
"additionalProperties": {
"type": "object",
"minProperties": 1,
"properties": {
"FULL_NAME": {
"type": "string",
"maxLength": 255
},
"FORMAT_STRING": {
"type": "string",
"maxLength": 50,
"minLength": 1,
"description": "Нативный шаблон, включая HTML и HTML-сущности. Сохранение требует штатного права W на валюты."
},
"DEC_POINT": {
"type": "string",
"maxLength": 16
},
"THOUSANDS_VARIANT": {
"type": "string",
"maxLength": 10
},
"THOUSANDS_SEP": {
"type": "string",
"maxLength": 20
},
"DECIMALS": {
"type": "integer",
"minimum": 0,
"maximum": 20
},
"HIDE_ZERO": {
"type": "string",
"enum": [
"Y",
"N"
]
}
},
"required": [],
"additionalProperties": false
}
}
},
"required": [
"AMOUNT_CNT",
"AMOUNT"
],
"additionalProperties": false
},
"from_classifier": {
"type": "boolean"
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt."
}
},
"required": [
"currency",
"fields"
],
"additionalProperties": false
}Штатная очистка кеша валют и, при переданном коде, связанного кеша каталога. Требует право изменения и confirm:true. Optional request_id enables a durable one-attempt receipt; unknown or interrupted requests must never be automatically retried.
currency- строка
Три латинские буквы, например RUB или USD.
language- строка
Код установленного языка, например ru.
confirm- логическое значение · обязательный параметр
true после согласования действия с пользователем.
request_id- строка
Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt.
{
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "Три латинские буквы, например RUB или USD."
},
"language": {
"type": "string",
"pattern": "^[a-z]{2}$",
"description": "Код установленного языка, например ru."
},
"confirm": {
"type": "boolean",
"description": "true после согласования действия с пользователем."
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt."
}
},
"required": [
"confirm"
],
"additionalProperties": false
}Удаляет валюту вместе с её курсами и переводами. Штатный API запрещает удалять базовую валюту. Требует confirm:true. Optional request_id enables a durable one-attempt receipt; unknown or interrupted requests must never be automatically retried.
currency- строка · обязательный параметр
Три латинские буквы, например RUB или USD.
confirm- логическое значение · обязательный параметр
true после согласования действия с пользователем.
request_id- строка
Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt.
{
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "Три латинские буквы, например RUB или USD."
},
"confirm": {
"type": "boolean",
"description": "true после согласования действия с пользователем."
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt."
}
},
"required": [
"currency",
"confirm"
],
"additionalProperties": false
}Удаляет название и формат на одном языке; валюту и курсы сохраняет. Требует confirm:true. Optional request_id enables a durable one-attempt receipt; unknown or interrupted requests must never be automatically retried.
currency- строка · обязательный параметр
Три латинские буквы, например RUB или USD.
language- строка · обязательный параметр
Код установленного языка, например ru.
confirm- логическое значение · обязательный параметр
true после согласования действия с пользователем.
request_id- строка
Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt.
{
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "Три латинские буквы, например RUB или USD."
},
"language": {
"type": "string",
"pattern": "^[a-z]{2}$",
"description": "Код установленного языка, например ru."
},
"confirm": {
"type": "boolean",
"description": "true после согласования действия с пользователем."
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt."
}
},
"required": [
"currency",
"language",
"confirm"
],
"additionalProperties": false
}Добавляет курс на дату относительно текущей базовой валюты. Повтор на ту же дату отклоняет штатный API. fields.BASE_CURRENCY optionally selects an installed historical base; omission uses the current base. Currency/date remains unique. Optional request_id enables a durable one-attempt receipt; unknown or interrupted requests must never be automatically retried.
currency- строка · обязательный параметр
Три латинские буквы, например RUB или USD.
fields- объект · обязательный параметр
request_id- строка
Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt.
{
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "Три латинские буквы, например RUB или USD."
},
"fields": {
"type": "object",
"minProperties": 1,
"properties": {
"DATE_RATE": {
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
"description": "Дата ГГГГ-ММ-ДД, от 1971-01-01 до 2037-12-31: границы штатной конвертации."
},
"RATE_CNT": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"RATE": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000000
},
"BASE_CURRENCY": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "Три латинские буквы, например RUB или USD."
}
},
"required": [
"DATE_RATE",
"RATE_CNT",
"RATE"
],
"additionalProperties": false
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt."
}
},
"required": [
"currency",
"fields"
],
"additionalProperties": false
}Удаляет одну запись истории курсов с пересчётом штатных кешей. Требует confirm:true. Optional request_id enables a durable one-attempt receipt; unknown or interrupted requests must never be automatically retried.
rate_id- целое число · обязательный параметр
confirm- логическое значение · обязательный параметр
true после согласования действия с пользователем.
request_id- строка
Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt.
{
"type": "object",
"properties": {
"rate_id": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"confirm": {
"type": "boolean",
"description": "true после согласования действия с пользователем."
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt."
}
},
"required": [
"rate_id",
"confirm"
],
"additionalProperties": false
}Меняет перечисленные значения курса. Привязка к валюте и базовой валюте сохраняется. fields.BASE_CURRENCY optionally changes the installed historical base; omission preserves the existing binding. Optional request_id enables a durable one-attempt receipt; unknown or interrupted requests must never be automatically retried.
rate_id- целое число · обязательный параметр
fields- объект · обязательный параметр
request_id- строка
Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt.
{
"type": "object",
"properties": {
"rate_id": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"fields": {
"type": "object",
"minProperties": 1,
"properties": {
"DATE_RATE": {
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
"description": "Дата ГГГГ-ММ-ДД, от 1971-01-01 до 2037-12-31: границы штатной конвертации."
},
"RATE_CNT": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"RATE": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000000
},
"BASE_CURRENCY": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "Три латинские буквы, например RUB или USD."
}
},
"required": [],
"additionalProperties": false
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt."
}
},
"required": [
"rate_id",
"fields"
],
"additionalProperties": false
}Обновляет служебный текущий курс одной или всех валют штатным API. Требует confirm:true. Optional request_id enables a durable one-attempt receipt; unknown or interrupted requests must never be automatically retried.
currency- строка
Три латинские буквы, например RUB или USD.
confirm- логическое значение · обязательный параметр
true после согласования действия с пользователем.
request_id- строка
Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt.
{
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "Три латинские буквы, например RUB или USD."
},
"confirm": {
"type": "boolean",
"description": "true после согласования действия с пользователем."
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt."
}
},
"required": [
"confirm"
],
"additionalProperties": false
}Изменить номинал, основной курс, сортировку или числовой код. Требует право изменения модуля. Optional fields.LANG patches installed language formats with the currency in one native transaction; omitted languages remain unchanged. Optional request_id enables a durable one-attempt receipt; unknown or interrupted requests must never be automatically retried.
currency- строка · обязательный параметр
Три латинские буквы, например RUB или USD.
fields- объект · обязательный параметр
request_id- строка
Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt.
{
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "Три латинские буквы, например RUB или USD."
},
"fields": {
"type": "object",
"minProperties": 1,
"properties": {
"AMOUNT_CNT": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"AMOUNT": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000000
},
"SORT": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"NUMCODE": {
"type": "string",
"pattern": "^[0-9]{3}$"
},
"LANG": {
"type": "object",
"minProperties": 1,
"maxProperties": 100,
"additionalProperties": {
"type": "object",
"minProperties": 1,
"properties": {
"FULL_NAME": {
"type": "string",
"maxLength": 255
},
"FORMAT_STRING": {
"type": "string",
"maxLength": 50,
"minLength": 1,
"description": "Нативный шаблон, включая HTML и HTML-сущности. Сохранение требует штатного права W на валюты."
},
"DEC_POINT": {
"type": "string",
"maxLength": 16
},
"THOUSANDS_VARIANT": {
"type": "string",
"maxLength": 10
},
"THOUSANDS_SEP": {
"type": "string",
"maxLength": 20
},
"DECIMALS": {
"type": "integer",
"minimum": 0,
"maximum": 20
},
"HIDE_ZERO": {
"type": "string",
"enum": [
"Y",
"N"
]
}
},
"required": [],
"additionalProperties": false
}
}
},
"required": [],
"additionalProperties": false
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt."
}
},
"required": [
"currency",
"fields"
],
"additionalProperties": false
}Создаёт название и формат вывода для установленного языка. Шаблон: # руб. Optional request_id enables a durable one-attempt receipt; unknown or interrupted requests must never be automatically retried.
currency- строка · обязательный параметр
Три латинские буквы, например RUB или USD.
language- строка · обязательный параметр
Код установленного языка, например ru.
fields- объект · обязательный параметр
request_id- строка
Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt.
{
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "Три латинские буквы, например RUB или USD."
},
"language": {
"type": "string",
"pattern": "^[a-z]{2}$",
"description": "Код установленного языка, например ru."
},
"fields": {
"type": "object",
"minProperties": 1,
"properties": {
"FULL_NAME": {
"type": "string",
"maxLength": 255
},
"FORMAT_STRING": {
"type": "string",
"maxLength": 50,
"minLength": 1,
"description": "Нативный шаблон, включая HTML и HTML-сущности. Сохранение требует штатного права W на валюты."
},
"DEC_POINT": {
"type": "string",
"maxLength": 16
},
"THOUSANDS_VARIANT": {
"type": "string",
"maxLength": 10
},
"THOUSANDS_SEP": {
"type": "string",
"maxLength": 20
},
"DECIMALS": {
"type": "integer",
"minimum": 0,
"maximum": 20
},
"HIDE_ZERO": {
"type": "string",
"enum": [
"Y",
"N"
]
}
},
"required": [
"FORMAT_STRING"
],
"additionalProperties": false
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt."
}
},
"required": [
"currency",
"language",
"fields"
],
"additionalProperties": false
}Изменяет только перечисленные поля существующего перевода. Optional request_id enables a durable one-attempt receipt; unknown or interrupted requests must never be automatically retried.
currency- строка · обязательный параметр
Три латинские буквы, например RUB или USD.
language- строка · обязательный параметр
Код установленного языка, например ru.
fields- объект · обязательный параметр
request_id- строка
Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt.
{
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "Три латинские буквы, например RUB или USD."
},
"language": {
"type": "string",
"pattern": "^[a-z]{2}$",
"description": "Код установленного языка, например ru."
},
"fields": {
"type": "object",
"minProperties": 1,
"properties": {
"FULL_NAME": {
"type": "string",
"maxLength": 255
},
"FORMAT_STRING": {
"type": "string",
"maxLength": 50,
"minLength": 1,
"description": "Нативный шаблон, включая HTML и HTML-сущности. Сохранение требует штатного права W на валюты."
},
"DEC_POINT": {
"type": "string",
"maxLength": 16
},
"THOUSANDS_VARIANT": {
"type": "string",
"maxLength": 10
},
"THOUSANDS_SEP": {
"type": "string",
"maxLength": 20
},
"DECIMALS": {
"type": "integer",
"minimum": 0,
"maximum": 20
},
"HIDE_ZERO": {
"type": "string",
"enum": [
"Y",
"N"
]
}
},
"required": [],
"additionalProperties": false
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Optional durable one-attempt identity. Reusing it never invokes the native write again; inspect the own receipt."
}
},
"required": [
"currency",
"language",
"fields"
],
"additionalProperties": false
}