---
title: "Calculate trade quote"
method: GET
path: "/v1/trading/quote"
tags: ["trading"]
---

# Calculate trade quote

`GET /v1/trading/quote`

## Request

- Base URL: `https://lpad-backend.stage.defi.ovh.gala.com`
- URL: `https://lpad-backend.stage.defi.ovh.gala.com/v1/trading/quote`
- Auth: none declared
- TypeScript: <https://skmtc.dev/gala/apis/launchpad-backend-api/docs/v1/trading/quote/get.ts> (a function with typed inputs; its response is checked against the schema)

Calculates trade amounts using local bonding curve math. No chain call — instant response.

## Query parameters

- `method` 'IN' | 'OUT', required
- `type` 'MEME' | 'NATIVE', required
- `amount` string, required
- `tokenName` string, required

## Response `200`

Calculated quote in the success envelope.

- object
  - `error` false, required: Successful response marker.
  - `message` string, required: Response message.
  - `status` number, required: HTTP status code.
  - `data` TradeAmountResponseDto, required
    - `calculatedQuantity` string, required
    - `extraFees` TradeQuoteFeesResponseDto, required
      - `reverseBondingCurve` string, required
      - `transactionFees` string, required

## Other responses

- `400`: Invalid parameters
- `404`: Token not found
- `default`: Shared error envelope for quote calculation failures.

---

[API](https://skmtc.dev/gala/apis/launchpad-backend-api.md) - [All operations](https://skmtc.dev/gala/apis/launchpad-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gala/apis/launchpad-backend-api/revisions/74545971be2b?raw)
