Skip to content
Docs
Esc
↑↓navigate↵open⌘Jpreview

Change settings by revision.

Changes some settings; null resets a field to its default. The revision must be the current one, or the answer is 409 stale_revision.

PATCH/v1/me/settings
Authorization
sessionAPI key · cookierequired

An opaque, revocable INVICTUS session set by createSession.

Header parameters
Idempotency-Keystringrequired

A key the client makes per intended write; a repeat with the same key and body is answered as the first, never applied twice.

min length 1 · max length 200
X-Telegram-Userstring

With the service credential: the linked Telegram user the call acts for.

matches ^[0-9]{1,20}$
Request body
requiredapplication/json
revisionintegerrequired

The revision the change was made on; a stale one is 409 stale_revision.

min 0 · max 9007199254740991
changesobjectrequired

The settings to change; null resets one to its default.

Show properties
slippagePercentstring | Decimal | null

The most a price may move against a deposit, zap or withdrawal before it is refused, in percent, or auto by the token's category.

Show properties
Any of:
string | Decimal
Any of:
string
string
Decimal
string
null
null
swapSlippagePercentstring | Decimal | null

The same for a swap, in percent, or auto by the token's category.

Show properties
Any of:
string | Decimal
Any of:
string
string
Decimal
string
null
null
maxSwapLossPercentDecimal | null

The most a fallback route may pay below the best route when that one fails, in percent.

Show properties
Any of:
Decimal
string
null
null
priceImpactPercentDecimal | null

The most a trade may move the price before it is refused, in percent.

Show properties
Any of:
Decimal
string
null
null
deadlineSecondsnumber | null

How long a transaction may wait to be included before it is dropped, in seconds.

Show properties
Any of:
number
number
null
null
abortOnTickDriftboolean | null

Call off a deposit when the pool's price leaves the tick it was quoted at before it lands.

Show properties
Any of:
boolean
boolean
null
null
prioritystring | null

How much is paid for a transaction to be included sooner.

Show properties
Any of:
string
string
null
null
maxGasUsdDecimal | string | null

The network fee limit in US dollars; off for no limit, null to reset to the default.

Show properties
Any of:
Decimal | string
Any of:
Decimal
string
string
string
null
null
gasReserveobject | null

Native coin kept for gas per chain, in base units; null takes the server's value.

Show properties
Any of:
object
Any of:
object
object
null
null
null
null
autoWrapNativeboolean | null

Wrap and unwrap the native coin when a pool needs the wrapped token.

Show properties
Any of:
boolean
boolean
null
null
zapAutoBalanceboolean | null

Swap a deposit to the ratio the pool needs before adding liquidity.

Show properties
Any of:
boolean
boolean
null
null
exitAssetstring | null

What a position is paid out in when it is closed.

Show properties
Any of:
string
string
null
null
confirmTransactionsboolean | null

Show each transaction for a last look before it is sent; the checks run either way.

Show properties
Any of:
boolean
boolean
null
null
displayCurrencystring | null

The fiat currency figures are shown in, as an ISO 4217 code.

Show properties
Any of:
string
string
null
null
explorersobject | null

The block explorer chosen per chain; a chain left out uses its default.

Show properties
Any of:
object
object
null
null
alertsobject | null

Account-wide notifications to receive.

Show properties
Any of:
object
outOfRangebooleanrequired

When a position leaves its range.

nearEdgebooleanrequired

When a position's price nears an end of its range.

feesReadybooleanrequired

When a position's fees are ready to collect.

transactionsbooleanrequired

When a transaction of the account is included or fails.

null
null
pairInversionsobject | null

Pairs the user shows the other way round, by pair key.

Show properties
Any of:
object
object
null
null
Responses
200

Success.

settingsSettingsrequired

The account's settings, defaults filled in.

Show properties
slippagePercentstring | Decimalrequired

The most a price may move against a deposit, zap or withdrawal before it is refused, in percent, or auto by the token's category.

Show properties
Any of:
string
string
Decimal
string
swapSlippagePercentstring | Decimalrequired

The same for a swap, in percent, or auto by the token's category.

Show properties
Any of:
string
string
Decimal
string
maxSwapLossPercentDecimalrequired

The most a fallback route may pay below the best route when that one fails, in percent.

max length 80 · matches ^-?[0-9]+(?:\.[0-9]+)?$
priceImpactPercentDecimalrequired

The most a trade may move the price before it is refused, in percent.

max length 80 · matches ^-?[0-9]+(?:\.[0-9]+)?$
deadlineSecondsnumberrequired

How long a transaction may wait to be included before it is dropped, in seconds.

Allowed:3060120300
abortOnTickDriftbooleanrequired

Call off a deposit when the pool's price leaves the tick it was quoted at before it lands.

prioritystringrequired

How much is paid for a transaction to be included sooner.

Allowed:standardfastturbo
maxGasUsdDecimal | nullrequired

The most one transaction may cost in network fees, in US dollars; null for no limit.

Show properties
Any of:
Decimal
string
null
null
gasReserveobject | nullrequired

Native coin kept for gas per chain, in base units; null takes the server's value.

Show properties
Any of:
object
object
null
null
autoWrapNativebooleanrequired

Wrap and unwrap the native coin when a pool needs the wrapped token.

zapAutoBalancebooleanrequired

Swap a deposit to the ratio the pool needs before adding liquidity.

exitAssetstringrequired

What a position is paid out in when it is closed.

Allowed:autonativestable
confirmTransactionsbooleanrequired

Show each transaction for a last look before it is sent; the checks run either way.

displayCurrencystringrequired

The fiat currency figures are shown in, as an ISO 4217 code.

matches ^[A-Z]{3}$
explorersobjectrequired

The block explorer chosen per chain; a chain left out uses its default.

alertsobjectrequired

Account-wide notifications to receive.

Show properties
outOfRangebooleanrequired

When a position leaves its range.

nearEdgebooleanrequired

When a position's price nears an end of its range.

feesReadybooleanrequired

When a position's fees are ready to collect.

transactionsbooleanrequired

When a transaction of the account is included or fails.

pairInversionsobjectrequired

Pairs the user shows the other way round, by pair key.

defaultsSettingsrequired

Every setting's default.

Show properties
slippagePercentstring | Decimalrequired

The most a price may move against a deposit, zap or withdrawal before it is refused, in percent, or auto by the token's category.

Show properties
Any of:
string
string
Decimal
string
swapSlippagePercentstring | Decimalrequired

The same for a swap, in percent, or auto by the token's category.

Show properties
Any of:
string
string
Decimal
string
maxSwapLossPercentDecimalrequired

The most a fallback route may pay below the best route when that one fails, in percent.

max length 80 · matches ^-?[0-9]+(?:\.[0-9]+)?$
priceImpactPercentDecimalrequired

The most a trade may move the price before it is refused, in percent.

max length 80 · matches ^-?[0-9]+(?:\.[0-9]+)?$
deadlineSecondsnumberrequired

How long a transaction may wait to be included before it is dropped, in seconds.

Allowed:3060120300
abortOnTickDriftbooleanrequired

Call off a deposit when the pool's price leaves the tick it was quoted at before it lands.

prioritystringrequired

How much is paid for a transaction to be included sooner.

Allowed:standardfastturbo
maxGasUsdDecimal | nullrequired

The most one transaction may cost in network fees, in US dollars; null for no limit.

Show properties
Any of:
Decimal
string
null
null
gasReserveobject | nullrequired

Native coin kept for gas per chain, in base units; null takes the server's value.

Show properties
Any of:
object
object
null
null
autoWrapNativebooleanrequired

Wrap and unwrap the native coin when a pool needs the wrapped token.

zapAutoBalancebooleanrequired

Swap a deposit to the ratio the pool needs before adding liquidity.

exitAssetstringrequired

What a position is paid out in when it is closed.

Allowed:autonativestable
confirmTransactionsbooleanrequired

Show each transaction for a last look before it is sent; the checks run either way.

displayCurrencystringrequired

The fiat currency figures are shown in, as an ISO 4217 code.

matches ^[A-Z]{3}$
explorersobjectrequired

The block explorer chosen per chain; a chain left out uses its default.

alertsobjectrequired

Account-wide notifications to receive.

Show properties
outOfRangebooleanrequired

When a position leaves its range.

nearEdgebooleanrequired

When a position's price nears an end of its range.

feesReadybooleanrequired

When a position's fees are ready to collect.

transactionsbooleanrequired

When a transaction of the account is included or fails.

pairInversionsobjectrequired

Pairs the user shows the other way round, by pair key.

boundsobjectrequired

Per setting, its allowed range or options.

revisionintegerrequired

The revision to send with a change.

min 0 · max 9007199254740991
asOfintegerrequired

When this answer was read, in Unix seconds.

min 0 · max 9007199254740991
400

Invalid input; errors names the fields.

typestring<uri-reference>required

A URI reference naming the problem type; about:blank when only the status says it.

max length 200
titlestringrequired

A short summary of the problem type, the same for every occurrence.

max length 200
statusintegerrequired

The HTTP status code of this answer.

min 400 · max 599
detailstring

What went wrong this time, for a person to read.

max length 500
instancestring<uri-reference>

A URI reference of this occurrence, quoted to support.

max length 200
codestringrequired

What a client branches on, stable across releases.

matches ^[a-z][a-z0-9_]{0,63}$
retryAfterSecondsinteger

Seconds to wait before asking again, on 429 and 503; the Retry-After header agrees.

max 9007199254740991
errorsobject[]

The fields that were refused, on 400.

max items 50
Show properties
Array of object
fieldstringrequired

The refused field, as a JSON path into the request.

max length 200
codestringrequired

Why it was refused, stable across releases.

max length 64
messagestring

The reason, for a person to read.

max length 200
401

No session, or it ended.

typestring<uri-reference>required

A URI reference naming the problem type; about:blank when only the status says it.

max length 200
titlestringrequired

A short summary of the problem type, the same for every occurrence.

max length 200
statusintegerrequired

The HTTP status code of this answer.

min 400 · max 599
detailstring

What went wrong this time, for a person to read.

max length 500
instancestring<uri-reference>

A URI reference of this occurrence, quoted to support.

max length 200
codestringrequired

What a client branches on, stable across releases.

matches ^[a-z][a-z0-9_]{0,63}$
retryAfterSecondsinteger

Seconds to wait before asking again, on 429 and 503; the Retry-After header agrees.

max 9007199254740991
errorsobject[]

The fields that were refused, on 400.

max items 50
Show properties
Array of object
fieldstringrequired

The refused field, as a JSON path into the request.

max length 200
codestringrequired

Why it was refused, stable across releases.

max length 64
messagestring

The reason, for a person to read.

max length 200
403

Not allowed for this account.

typestring<uri-reference>required

A URI reference naming the problem type; about:blank when only the status says it.

max length 200
titlestringrequired

A short summary of the problem type, the same for every occurrence.

max length 200
statusnumberrequired
detailstring

What went wrong this time, for a person to read.

max length 500
instancestring<uri-reference>

A URI reference of this occurrence, quoted to support.

max length 200
codestringrequired
retryAfterSecondsinteger

Seconds to wait before asking again, on 429 and 503; the Retry-After header agrees.

max 9007199254740991
errorsobject[]

The fields that were refused, on 400.

max items 50
Show properties
Array of object
fieldstringrequired

The refused field, as a JSON path into the request.

max length 200
codestringrequired

Why it was refused, stable across releases.

max length 64
messagestring

The reason, for a person to read.

max length 200
webPathstringrequired

The path of the web origin where the same screen is.

max length 300 · matches ^\/(?!\/)
409

In conflict with the current state.

typestring<uri-reference>required

A URI reference naming the problem type; about:blank when only the status says it.

max length 200
titlestringrequired

A short summary of the problem type, the same for every occurrence.

max length 200
statusintegerrequired

The HTTP status code of this answer.

min 400 · max 599
detailstring

What went wrong this time, for a person to read.

max length 500
instancestring<uri-reference>

A URI reference of this occurrence, quoted to support.

max length 200
codestringrequired

What a client branches on, stable across releases.

matches ^[a-z][a-z0-9_]{0,63}$
retryAfterSecondsinteger

Seconds to wait before asking again, on 429 and 503; the Retry-After header agrees.

max 9007199254740991
errorsobject[]

The fields that were refused, on 400.

max items 50
Show properties
Array of object
fieldstringrequired

The refused field, as a JSON path into the request.

max length 200
codestringrequired

Why it was refused, stable across releases.

max length 64
messagestring

The reason, for a person to read.

max length 200
429

Too many requests; retryAfterSeconds says when to ask again.

typestring<uri-reference>required

A URI reference naming the problem type; about:blank when only the status says it.

max length 200
titlestringrequired

A short summary of the problem type, the same for every occurrence.

max length 200
statusintegerrequired

The HTTP status code of this answer.

min 400 · max 599
detailstring

What went wrong this time, for a person to read.

max length 500
instancestring<uri-reference>

A URI reference of this occurrence, quoted to support.

max length 200
codestringrequired

What a client branches on, stable across releases.

matches ^[a-z][a-z0-9_]{0,63}$
retryAfterSecondsinteger

Seconds to wait before asking again, on 429 and 503; the Retry-After header agrees.

max 9007199254740991
errorsobject[]

The fields that were refused, on 400.

max items 50
Show properties
Array of object
fieldstringrequired

The refused field, as a JSON path into the request.

max length 200
codestringrequired

Why it was refused, stable across releases.

max length 64
messagestring

The reason, for a person to read.

max length 200
500

Server error.

typestring<uri-reference>required

A URI reference naming the problem type; about:blank when only the status says it.

max length 200
titlestringrequired

A short summary of the problem type, the same for every occurrence.

max length 200
statusintegerrequired

The HTTP status code of this answer.

min 400 · max 599
detailstring

What went wrong this time, for a person to read.

max length 500
instancestring<uri-reference>

A URI reference of this occurrence, quoted to support.

max length 200
codestringrequired

What a client branches on, stable across releases.

matches ^[a-z][a-z0-9_]{0,63}$
retryAfterSecondsinteger

Seconds to wait before asking again, on 429 and 503; the Retry-After header agrees.

max 9007199254740991
errorsobject[]

The fields that were refused, on 400.

max items 50
Show properties
Array of object
fieldstringrequired

The refused field, as a JSON path into the request.

max length 200
codestringrequired

Why it was refused, stable across releases.

max length 64
messagestring

The reason, for a person to read.

max length 200
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PATCH '/v1/me/settings' \
  -H 'Cookie: session=YOUR_API_KEY' \
  -H 'Idempotency-Key: string' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "revision": 0,
  "changes": {
    "slippagePercent": "auto",
    "swapSlippagePercent": "auto",
    "maxSwapLossPercent": "1234.56",
    "priceImpactPercent": "1234.56",
    "deadlineSeconds": 30,
    "abortOnTickDrift": true,
    "priority": "standard",
    "maxGasUsd": "1234.56",
    "gasReserve": {
      "property1": "1500000",
      "property2": "1500000"
    },
    "autoWrapNative": true,
    "zapAutoBalance": true,
    "exitAsset": "auto",
    "confirmTransactions": true,
    "displayCurrency": "string",
    "explorers": {
      "property1": "string",
      "property2": "string"
    },
    "alerts": {
      "outOfRange": true,
      "nearEdge": true,
      "feesReady": true,
      "transactions": true
    },
    "pairInversions": {
      "property1": true,
      "property2": true
    }
  }
}'
Response
{
  "settings": {
    "slippagePercent": "auto",
    "swapSlippagePercent": "auto",
    "maxSwapLossPercent": "1234.56",
    "priceImpactPercent": "1234.56",
    "deadlineSeconds": 30,
    "abortOnTickDrift": true,
    "priority": "standard",
    "maxGasUsd": "1234.56",
    "gasReserve": {
      "property1": "1500000",
      "property2": "1500000"
    },
    "autoWrapNative": true,
    "zapAutoBalance": true,
    "exitAsset": "auto",
    "confirmTransactions": true,
    "displayCurrency": "string",
    "explorers": {
      "property1": "string",
      "property2": "string"
    },
    "alerts": {
      "outOfRange": true,
      "nearEdge": true,
      "feesReady": true,
      "transactions": true
    },
    "pairInversions": {
      "property1": true,
      "property2": true
    }
  },
  "defaults": {
    "slippagePercent": "auto",
    "swapSlippagePercent": "auto",
    "maxSwapLossPercent": "1234.56",
    "priceImpactPercent": "1234.56",
    "deadlineSeconds": 30,
    "abortOnTickDrift": true,
    "priority": "standard",
    "maxGasUsd": "1234.56",
    "gasReserve": {
      "property1": "1500000",
      "property2": "1500000"
    },
    "autoWrapNative": true,
    "zapAutoBalance": true,
    "exitAsset": "auto",
    "confirmTransactions": true,
    "displayCurrency": "string",
    "explorers": {
      "property1": "string",
      "property2": "string"
    },
    "alerts": {
      "outOfRange": true,
      "nearEdge": true,
      "feesReady": true,
      "transactions": true
    },
    "pairInversions": {
      "property1": true,
      "property2": true
    }
  },
  "bounds": {
    "property1": {
      "min": "1234.56",
      "max": "1234.56"
    },
    "property2": {
      "min": "1234.56",
      "max": "1234.56"
    }
  },
  "revision": 0,
  "asOf": 1793145600
}