POST
/
v1
/
strategies
/
{address}
/
order
curl --request POST \
  --url https://backend.swap.coffee/v1/strategies/{address}/order \
  --header 'Content-Type: application/json' \
  --header 'x-verify: <x-verify>' \
  --data '{
  "type": "limit",
  "token_from": {
    "blockchain": "ton",
    "address": "native"
  },
  "token_to": {
    "blockchain": "ton",
    "address": "native"
  },
  "input_amount": "<string>",
  "settings": {},
  "max_suborders": 128,
  "max_invocations": 128,
  "slippage": 0.5
}'
{
  "address": "EQCM3B12QK1e4yZSf8GtBRT0aLMNyEsBc_DhVfRRtOEffLez",
  "value": "<string>"
}

Authorizations

X-Api-Key
string
header
required

Headers

x-verify
string
required

TON proof for the given address

Path Parameters

address
string
required

Body

application/json
type
enum<string>
required
Available options:
limit,
dca,
vca
token_from
object
required
token_to
object
required
input_amount
string
required
settings
object
required
max_suborders
integer
required
Required range: 1 < x < 255
max_invocations
integer
required

Max amount of swaps to be potentially executed (including those that fail to reasons like slippage tolerance abortion)

Required range: 1 < x < 255
slippage
number
required
Required range: 0 < x < 1

Response

200
application/json
Transaction to be sent
payload_cell
file
required

Base64-encoded cell. Treated as a payload field in TonConnect transaction.

address
string
required
value
string
required

Amount of nanotons to be sent. Can be passed to TonConnect transaction.

state_init
file

Base64-encoded cell. Treated as a stateInit field in TonConnect transaction.