---
title: "Calculate estimation of amount/fee for sale order"
method: POST
path: "/fmarket/orders/estimate-sale"
tags: ["Fmarket"]
---

# Calculate estimation of amount/fee for sale order

`POST /fmarket/orders/estimate-sale`

## Request

- Base URL: `https://api.fireant.vn`
- URL: `https://api.fireant.vn/fmarket/orders/estimate-sale`
- Auth: OAuth 2
  - Implicit: `https://accounts.fireant.vn/connect/authorize`
  - Scopes: `user-data-write`
- TypeScript: <https://skmtc.dev/fireant/apis/fireant-restful-api/docs/fmarket/orders/estimate-sale/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- FireAntApiModelsFmarketEstimateSaleOrderRequest
  - `fmarket_id` string
  - `product_id` integer
  - `volume` number, double
  - `program_id` integer

## Response `200`

Thành công

- FireAntApiModelsFmarketEstimateSaleOrderResult
  - `estimate_value` number, double
  - `estimate_fee_percent` number, double
  - `estimate_fee_amount` number, double

## Other responses

- `400`: Có lỗi khi thực hiện thao tác

---

[API](https://skmtc.dev/fireant/apis/fireant-restful-api.md) - [All operations](https://skmtc.dev/fireant/apis/fireant-restful-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fireant/apis/fireant-restful-api/revisions/c9b3aa855f95?raw)
