---
title: "Routing to a non-tokenized position"
method: GET
path: "/api/v1/shortcuts/route/nontokenized"
tags: ["DeFi Shortcuts"]
---

# Routing to a non-tokenized position

`GET /api/v1/shortcuts/route/nontokenized`

Calculates optimal transaction with the best route entering a non-tokenized position, which may involve several actions that interact with various DeFi protocols.

## Query parameters

- `chainId` number
- `fromAddress` string, required
- `routingStrategy` 'delegate' | 'delegate-legacy', nullable
- `tokenIn` string[], required
- `positionOut` string, required
- `slippage` string
- `fee` string[]
- `feeReceiver` string
- `amountIn` string[], required
- `receiver` string, required
- `spender` string
- `referralCode` string

## Response `200`

- RouteShortcutTransaction
  - `gas` string, required
  - `amountOut` string, required
  - `priceImpact` number, nullable, required — Price impact in basis points, null if USD price not found
  - `feeAmount` string[], required — An array of the fee amount collected for each tokenIn
  - `minAmountOut` string, required — The minimum allowable amount out after slippage
  - `createdAt` number, required — Block number the transaction was created on
  - `tx` Transaction, required
    - `data` string, required
    - `to` string, required
    - `from` string, required
    - `value` string, required
  - `route` Hop[], required — The route the shortcut will use
    - `tokenIn` string[], required
    - `tokenOut` string[], required
    - `protocol` string, required
    - `action` string, required
    - `primary` string, required
    - `internalRoutes` string[], required
    - `args` object, required
    - `chainId` number
    - `sourceChainId` number
    - `destinationChainId` number
  - `ensoFeeAmount` string[], required

## Other responses

- `400`

---

[API](https://skmtc.dev/enso/apis/enso-api.md) · [All operations](https://skmtc.dev/enso/apis/enso-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/enso/enso-api/revisions/249f471fdafd/schema)
