Skip to main content
POST
/
v1
/
public
/
conversions
/
quote
Живая котировка конвертации (preview)
curl --request POST \
  --url https://api.example.com/v1/public/conversions/quote \
  --header 'Content-Type: application/json' \
  --header 'X-Signature: <api-key>' \
  --data '
{
  "sourceAssetCode": "ETH",
  "targetAssetCode": "USDT_ERC20",
  "network": "ETHEREUM",
  "amountIn": "1.5",
  "maxSlippageBps": 123
}
'
{
  "sourceAssetCode": "<string>",
  "targetAssetCode": "<string>",
  "network": "<string>",
  "amountIn": "<string>",
  "amountOut": "<string>",
  "minAmountOut": "<string>",
  "rate": "<string>",
  "slippageBps": 123,
  "ttlSeconds": 123,
  "executable": true
}

Authorizations

X-Signature
string
header
required

HMAC-SHA256-Hex(timestamp + "." + raw_body, api_secret)

Body

application/json
sourceAssetCode
string
required

Код актива-источника.

Example:

"ETH"

targetAssetCode
string
required

Код целевого актива (стейбл).

Example:

"USDT_ERC20"

network
enum<string>
required

Сеть исполнения.

Available options:
TRON,
TON,
ETHEREUM,
BSC,
POLYGON,
BITCOIN,
LITECOIN,
XRP,
SOLANA
Example:

"ETHEREUM"

amountIn
string
required

Сумма к конвертации (string).

Example:

"1.5"

maxSlippageBps
number

Допустимое проскальзывание в bps (по умолчанию — из настроек).

Response

200 - application/json
sourceAssetCode
string
required
targetAssetCode
string
required
network
string
required
amountIn
string
required
amountOut
string
required
minAmountOut
string
required
rate
string
required
slippageBps
number
required
ttlSeconds
number
required
executable
boolean
required

false = preview без on-chain исполнения (нет DEX-backend).