---
title: "Rate Calculator"
method: POST
path: "/trades/pbc/sell/rate-calculator/{assetId}"
tags: ["Rates and Prices"]
---

# Rate Calculator

`POST /trades/pbc/sell/rate-calculator/{assetId}`

Calculate crypto amount and get NGN/GHS rate. This endpoint returns Breet's actual conversion rate for NGN or GHS. Use this endpoint to determine the exact amount you'll receive when converting crypto to NGN or GHS.

## Path parameters

- `assetId` string, required

## Request body

- object
  - `amountInUSD` number
  - `currency` string — Target fiat currency. Supported values: ngn, ghs.

## Response `200`

Rate calculation returned successfully

## Other responses

- `404` — Asset not found
- `422` — Request validation failed — check the errors array for field-level details
- `500` — An unexpected server error occurred

---

[API](https://skmtc.net/breet/apis/breet-public-api.md) · [All operations](https://skmtc.net/breet/apis/breet-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/breet/breet-public-api/revisions/5e7cf25847f7/schema)
