> For the complete documentation index, see [llms.txt](https://docs.submoney.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.submoney.co/offers-api/offer-intro/create-offer.md).

# Create Offer

Create offers to exchange stablecoins on the submoney API

```markdown
Your balance must be funded with the offer amount before calling this API.
```

## Request

```markdown
{
    "inSymbol":"CADT",
    "outSymbol":"NGNT",
    "buyAmount": 1000,
    "max":1000,
    "min":1,
    "rate":500
}
```

| Field     | Data Type | Required | Description                                                         |
| --------- | --------- | -------- | ------------------------------------------------------------------- |
| inSymbol  | String    | True     | Symbol of the token that you are buying                             |
| outSymbol | String    | True     | Symbol of the token that you are selling                            |
| buyAmount | String    | True     | Amount of the token you are willing to buy                          |
| max       | String    | True     | Maximum amount that you are willing to sell in a single transaction |
| min       | String    | True     | Minimum amount that you are willing to sell in a single transaction |
| rate      | Double    | True     | The rate at which you are willing to sell each token                |

## Response

```markdown
{
    "code": "P00",
    "message": "Success",
    "data": {
        "id": 2027,
        "offerorId": 1651,
        "inSymbol": "CADT",
        "outSymbol": "NGNT",
        "total": "500000.00",
        "available": "500000.00",
        "buyAmount": "1000.00",
        "min": "1.00",
        "max": "1000.00",
        "rate": 500.0,
        "status": "ACTIVE",
        "createdDate": "2022-11-23T04:48:54.705+00:00",
        "funded": true
    }
}
```
