Skip to main content
POST
/
trades
/
sell
/
mock-trade
curl --request POST \
  --url https://api.breet.io/v1/trades/sell/mock-trade \
  --header 'Content-Type: application/json' \
  --header 'X-Breet-Env: <api-key>' \
  --header 'x-app-id: <api-key>' \
  --header 'x-app-secret: <api-key>' \
  --data '
{
  "walletAddress": "TV8dNYYBgL3xLbQcJLMBNavY4gYNqPF8Jv",
  "asset": "TRX_TEST",
  "amountInUSD": 50,
  "cryptoReceived": 500,
  "reference": "mock-ref-550e8400-e29b-41d4-a716-446655440000",
  "txHash": "0xmock550e8400e29b41d4a716446655440000"
}
'
{
  "message": "mock trade initiated",
  "success": true,
  "data": {},
  "meta": {},
  "summary": {},
  "stats": {}
}

Authorizations

x-app-id
string
header
required

Your application ID from the Breet dashboard

x-app-secret
string
header
required

Your application secret from the Breet dashboard

X-Breet-Env
string
header
required

Environment selector: development or production

Body

application/json
walletAddress
string
required

The deposit wallet address (from Generate Wallet Address or Fetch Wallet Addresses). Must belong to your integration and match the asset.

asset
string
required

Asset identifier (e.g. TRX_TEST, USDC_TEST3). Must match the wallet's asset. Use GET /trades/assets for the list.

amountInUSD
number
required

Amount in USD (must be greater than zero).

Required range: x > 0
cryptoReceived
number
required

Crypto amount received (must be greater than zero).

Required range: x > 0
reference
string
required

Unique reference for this mock transaction (e.g. UUID or test ref).

txHash
string
required

Mock transaction hash for the deposit.

sourceAddress
string

Optional sender/source address for the mock deposit.

confirmations
integer

Optional number of confirmations to simulate (positive integer).

Required range: x >= 1

Response

Mock trade initiated successfully; the trade will be processed asynchronously.