Create Offer

Create offers to exchange stablecoins on the submoney API

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

Request

{
    "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

{
    "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
    }
}

Last updated