Skip to main content
POST
/
v1
/
public
/
conversions
Создать конвертацию
curl --request POST \
  --url https://api.example.com/v1/public/conversions \
  --header 'Content-Type: application/json' \
  --header 'X-Signature: <api-key>' \
  --data '
{
  "sourceAssetCode": "ETH",
  "targetAssetCode": "USDT_ERC20",
  "network": "ETHEREUM",
  "amountIn": "1.5",
  "maxSlippageBps": 123
}
'
{
  "uuid": "<string>",
  "status": "queued",
  "sourceAssetCode": "<string>",
  "targetAssetCode": "<string>",
  "network": "<string>",
  "sourceAmount": "<string>",
  "quotedAmountOut": "<string>",
  "executedAmountOut": {},
  "quotedRate": "<string>",
  "executedRate": {},
  "minAmountOut": "<string>",
  "providerKind": "dex",
  "failReason": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "settledAt": {}
}

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

201 - application/json
uuid
string
required
status
string
required
Example:

"queued"

sourceAssetCode
string
required
targetAssetCode
string
required
network
string
required
sourceAmount
string
required
quotedAmountOut
string
required
executedAmountOut
object
required
quotedRate
string
required
executedRate
object
required
minAmountOut
string
required
providerKind
string
required
Example:

"dex"

failReason
object
required
createdAt
string<date-time>
required
settledAt
object
required