GET
/
v1
/
strategies
/
{address}
/
orders
curl --request GET \
  --url https://backend.swap.coffee/v1/strategies/{address}/orders \
  --header 'x-verify: <x-verify>'
[
  {
    "id": 123,
    "type": "limit",
    "wallet": "UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV",
    "status": "active",
    "creation_timestamp": 123,
    "token_from": {
      "address": {
        "blockchain": "ton",
        "address": "native"
      },
      "metadata": {
        "name": "ARBUZ",
        "symbol": "ARBUZ",
        "decimals": 123,
        "image_url": "<string>",
        "listed": true
      }
    },
    "token_to": {
      "address": {
        "blockchain": "ton",
        "address": "native"
      },
      "metadata": {
        "name": "ARBUZ",
        "symbol": "ARBUZ",
        "decimals": 123,
        "image_url": "<string>",
        "listed": true
      }
    },
    "initial_input_amount": "<string>",
    "current_input_amount": "<string>",
    "settings": {},
    "current_output_amount": "<string>",
    "max_suborders": 123,
    "suborders_executed": 123,
    "max_invocations": 123,
    "invocations_executed": 123,
    "slippage": 0.5005,
    "max_path_length": 123,
    "active_transactions": 123,
    "close_timestamp": 123
  }
]

Authorizations

X-Api-Key
string
header
required

Headers

x-verify
string
required

TON proof for the given address

Path Parameters

address
string
required

Query Parameters

type
enum<string>
Available options:
limit,
dca,
vca
include_finished
boolean
default:
false

By default, only active and pending cancellation orders are being returned

size
integer
default:
100
Required range: 1 < x < 100
before_id
integer

Return only those orders, which id is lower than the given one

Response

200
application/json
Account's strategy orders
id
integer
required
type
enum<string>
required
Available options:
limit,
dca,
vca
wallet
string
required
status
enum<string>
required
Available options:
active,
requested_cancellation,
cancelled_by_user,
cancelled_by_system,
executed,
max_retries_exceeded
creation_timestamp
integer
required

Unix time in seconds

token_from
object
required
token_to
object
required
initial_input_amount
string
required
current_input_amount
string
required
settings
object
required
current_output_amount
string
required
max_suborders
integer
required
suborders_executed
integer
required
max_invocations
integer
required

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

invocations_executed
integer
required

Amount of swaps that had already been tried to be executed (including those that failed to reasons like slippage tolerance abortion)

slippage
number
required
Required range: 0.001 < x < 1
max_path_length
integer
required

Max path length in tokens for every route that could potentially be executed within this order

active_transactions
integer
required

Amount of this order transactions that were sent, but their result is still unknown

close_timestamp
integer

Unix time in seconds