Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Sell

Sell cryptocurrency.

Endpoint: POST /trade/sell

Authentication: Required (x-api-key for live, x-staging-api-key for test)

Fees

Fees are taken from the token you are selling.

Request Parameters

Parameter
Type
Required
Description

amount

string

Yes

Amount of token you want to sell (must be greater than 0)

token

string

Yes

Token to sell (e.g., btc, eth)

Example Request

curl -X POST https://service.roqqu.com/v1/trade/sell \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "amount=0.00002" \
  -d "token=btc"

Example Response (Success)

{
  "status": "success",
  "message": "buy operation successful",
  "data": null
}

Sell is a ledger operation. It does not emit a webhook. Confirm via balances / history.

Error Responses

Invalid token:

Sells not enabled:

Insufficient balance:

Fee too high:

Below minimum:

Above maximum:

Amount must be positive:

Unable to load token data:

Last updated