---
title: "Create Rate"
method: POST
path: "/v1/rates"
tags: ["Liquidity Pool"]
---

# Create Rate

`POST /v1/rates`

This endpoint allows you to create a rate for a specific asset pair.

**Endpoint**
`POST https://api.blockradar.co/v1/rates`

## Body Parameters

| Key | Required | Type | Description |
| --- | --- | --- | --- |
| fromAsset | true | string | The symbol of the asset you are converting **from**. |
| toAsset | true | string | The symbol of the asset you are converting **to**. |
| rate | true | string | The exchange rate for the asset pair. Provided as a string to avoid floating point precision issues. |
| minAmount | true | string | The minimum amount allowed for this rate/pair. Provided as a string. |
| maxAmount | false | string | The maximum amount allowed for this rate/pair. Optional. Provided as a string. |

## Request body

- object
  - `fromAsset` string, required — The symbol of the asset you are converting from.
  - `toAsset` string, required — The symbol of the asset you are converting to.
  - `rate` string, required — The exchange rate for the asset pair. Provided as a string to avoid floating point precision issues.
  - `minAmount` string, required — The minimum amount allowed for this rate/pair. Provided as a string.
  - `maxAmount` string — The maximum amount allowed for this rate/pair. Optional. Provided as a string.

## Response `201`

201

- object
  - `data` object
    - `createdAt` string
    - `fromAsset` string
    - `id` string
    - `isActive` boolean
    - `maxAmount` string, nullable
    - `minAmount` string
    - `network` string
    - `rate` string
    - `status` string
    - `toAsset` string
    - `version` number
  - `message` string
  - `statusCode` number

---

[API](https://skmtc.net/blockradar/apis/blockradar-documentation.md) · [All operations](https://skmtc.net/blockradar/apis/blockradar-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/blockradar/blockradar-documentation/revisions/97f95b4cfc0d/schema)
