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

Settings with defaults and bounds.

Answers the account’s settings with their defaults, bounds and revision.

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

An opaque, revocable INVICTUS session set by createSession.

Header parameters
X-Telegram-Userstring

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

matches ^[0-9]{1,20}$
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
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
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
Request
curl -X GET '/v1/me/settings' \
  -H 'Cookie: session=YOUR_API_KEY' \
  -H 'Accept: application/json'
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
}