Change an alert rule by revision.
Changes an alert rule; the revision must be the current one, or the answer is 409 stale_revision.
/v1/me/alerts/{id}sessionAPI key · cookierequiredAn opaque, revocable INVICTUS session set by createSession.
idstringrequiredThe operation's id.
Idempotency-KeystringrequiredA key the client makes per intended write; a repeat with the same key and body is answered as the first, never applied twice.
X-Telegram-UserstringWith the service credential: the linked Telegram user the call acts for.
application/jsonrevisionintegerrequiredThe revision the change was made on; a stale one is 409 stale_revision.
enabledbooleanSwitch the rule on or off.
mutedUntilinteger | nullMute the rule until this Unix time in seconds; null unmutes it.
Show propertiesHide properties
integernullconditionobjectThe new condition.
Show propertiesHide properties
thresholdPercentDecimalThe change that fires the rule, in percent.
levelUsdDecimalThe price level that fires the rule, in US dollars.
directionstringFire on a move up, down, or either way.
updowneitherwindowSecondsnumberThe window a change is measured over, in seconds.
300360086400metricstringThe pool figure a pool-metric rule watches.
fee-aprtvlvolumeliquiditydeliveryobjectThe new delivery.
Show propertiesHide properties
channelsstring[]requiredWhere a notification is delivered: the inbox, Telegram, or both.
cooldownSecondsintegerrequiredThe least time between two notifications of the rule, in seconds.
quietHoursobject | nullrequiredHours in which no notification is sent; null for none.
Show propertiesHide properties
fromstringrequiredWhen quiet hours start, as HH:MM.
tostringrequiredWhen quiet hours end, as HH:MM.
timeZonestringrequiredThe IANA time zone of from and to.
nulldigeststringrequiredSend each notification at once, or a daily digest.
offdailySuccess.
kindstringrequiredWhat the rule watches.
out-of-rangeback-in-rangenear-edgefees-readyvalue-movedclosed-elsewhereprice-levelprice-movepool-metricnew-pooltoken-changetransactionfunds-movednew-loginkey-exportsource-stalesubjectobject | nullrequiredWhat the rule is about; null for an account-wide rule.
Show propertiesHide properties
typestringrequiredWhat kind of thing the subject is.
poolpositionwallettokenoperationaccounttraderidstringrequiredIts id: a pool path, a wallet reference, a public id.
nullconditionobjectrequiredWhen the rule fires; the fields its kind needs.
Show propertiesHide properties
thresholdPercentDecimalThe change that fires the rule, in percent.
levelUsdDecimalThe price level that fires the rule, in US dollars.
directionstringFire on a move up, down, or either way.
updowneitherwindowSecondsnumberThe window a change is measured over, in seconds.
300360086400metricstringThe pool figure a pool-metric rule watches.
fee-aprtvlvolumeliquiditydeliveryobjectrequiredHow its notifications are delivered.
Show propertiesHide properties
channelsstring[]requiredWhere a notification is delivered: the inbox, Telegram, or both.
cooldownSecondsintegerrequiredThe least time between two notifications of the rule, in seconds.
quietHoursobject | nullrequiredHours in which no notification is sent; null for none.
Show propertiesHide properties
fromstringrequiredWhen quiet hours start, as HH:MM.
tostringrequiredWhen quiet hours end, as HH:MM.
timeZonestringrequiredThe IANA time zone of from and to.
nulldigeststringrequiredSend each notification at once, or a daily digest.
offdailyidstringrequiredThe rule's id.
enabledbooleanrequiredFalse while the rule is switched off.
mutedUntilinteger | nullrequiredUntil when the rule is muted, in Unix seconds; null when it is not.
Show propertiesHide properties
integernulllastFiredAtinteger | nullrequiredWhen the rule last fired, in Unix seconds; null if never.
Show propertiesHide properties
integernullrevisionintegerrequiredThe revision to send with a change.
Invalid input; errors names the fields.
typestring<uri-reference>requiredA URI reference naming the problem type; about:blank when only the status says it.
titlestringrequiredA short summary of the problem type, the same for every occurrence.
statusintegerrequiredThe HTTP status code of this answer.
detailstringWhat went wrong this time, for a person to read.
instancestring<uri-reference>A URI reference of this occurrence, quoted to support.
codestringrequiredWhat a client branches on, stable across releases.
retryAfterSecondsintegerSeconds to wait before asking again, on 429 and 503; the Retry-After header agrees.
errorsobject[]The fields that were refused, on 400.
Show propertiesHide properties
objectfieldstringrequiredThe refused field, as a JSON path into the request.
codestringrequiredWhy it was refused, stable across releases.
messagestringThe reason, for a person to read.
No session, or it ended.
typestring<uri-reference>requiredA URI reference naming the problem type; about:blank when only the status says it.
titlestringrequiredA short summary of the problem type, the same for every occurrence.
statusintegerrequiredThe HTTP status code of this answer.
detailstringWhat went wrong this time, for a person to read.
instancestring<uri-reference>A URI reference of this occurrence, quoted to support.
codestringrequiredWhat a client branches on, stable across releases.
retryAfterSecondsintegerSeconds to wait before asking again, on 429 and 503; the Retry-After header agrees.
errorsobject[]The fields that were refused, on 400.
Show propertiesHide properties
objectfieldstringrequiredThe refused field, as a JSON path into the request.
codestringrequiredWhy it was refused, stable across releases.
messagestringThe reason, for a person to read.
Not found, or not yours.
typestring<uri-reference>requiredA URI reference naming the problem type; about:blank when only the status says it.
titlestringrequiredA short summary of the problem type, the same for every occurrence.
statusintegerrequiredThe HTTP status code of this answer.
detailstringWhat went wrong this time, for a person to read.
instancestring<uri-reference>A URI reference of this occurrence, quoted to support.
codestringrequiredWhat a client branches on, stable across releases.
retryAfterSecondsintegerSeconds to wait before asking again, on 429 and 503; the Retry-After header agrees.
errorsobject[]The fields that were refused, on 400.
Show propertiesHide properties
objectfieldstringrequiredThe refused field, as a JSON path into the request.
codestringrequiredWhy it was refused, stable across releases.
messagestringThe reason, for a person to read.
In conflict with the current state.
typestring<uri-reference>requiredA URI reference naming the problem type; about:blank when only the status says it.
titlestringrequiredA short summary of the problem type, the same for every occurrence.
statusintegerrequiredThe HTTP status code of this answer.
detailstringWhat went wrong this time, for a person to read.
instancestring<uri-reference>A URI reference of this occurrence, quoted to support.
codestringrequiredWhat a client branches on, stable across releases.
retryAfterSecondsintegerSeconds to wait before asking again, on 429 and 503; the Retry-After header agrees.
errorsobject[]The fields that were refused, on 400.
Show propertiesHide properties
objectfieldstringrequiredThe refused field, as a JSON path into the request.
codestringrequiredWhy it was refused, stable across releases.
messagestringThe reason, for a person to read.
Too many requests; retryAfterSeconds says when to ask again.
typestring<uri-reference>requiredA URI reference naming the problem type; about:blank when only the status says it.
titlestringrequiredA short summary of the problem type, the same for every occurrence.
statusintegerrequiredThe HTTP status code of this answer.
detailstringWhat went wrong this time, for a person to read.
instancestring<uri-reference>A URI reference of this occurrence, quoted to support.
codestringrequiredWhat a client branches on, stable across releases.
retryAfterSecondsintegerSeconds to wait before asking again, on 429 and 503; the Retry-After header agrees.
errorsobject[]The fields that were refused, on 400.
Show propertiesHide properties
objectfieldstringrequiredThe refused field, as a JSON path into the request.
codestringrequiredWhy it was refused, stable across releases.
messagestringThe reason, for a person to read.
Server error.
typestring<uri-reference>requiredA URI reference naming the problem type; about:blank when only the status says it.
titlestringrequiredA short summary of the problem type, the same for every occurrence.
statusintegerrequiredThe HTTP status code of this answer.
detailstringWhat went wrong this time, for a person to read.
instancestring<uri-reference>A URI reference of this occurrence, quoted to support.
codestringrequiredWhat a client branches on, stable across releases.
retryAfterSecondsintegerSeconds to wait before asking again, on 429 and 503; the Retry-After header agrees.
errorsobject[]The fields that were refused, on 400.
Show propertiesHide properties
objectfieldstringrequiredThe refused field, as a JSON path into the request.
codestringrequiredWhy it was refused, stable across releases.
messagestringThe reason, for a person to read.
