Skip to main content
This example shows you how to sell cryptocurrency (USDT, BTC, ETH, etc.) for fiat currency (NGN, KES) using Busha’s API.

Use Cases

  • Cash out crypto to local bank account
  • Pay vendors in local currency from crypto balance
  • Sell stablecoins for local currency to cover expenses

Example: Sell Crypto for Fiat

Sell 0.01 ETH for NGN

1

Get a Quote

Create a quote to see the exchange rate and how much fiat you’ll receive:
        curl -X POST https://api.sandbox.busha.so/v1/quotes \
          -H "Authorization: Bearer YOUR_SECRET_KEY" \
          -H "Content-Type: application/json" \
          -d '{
            "source_currency": "ETH",
            "target_currency": "NGN",
            "source_amount": "0.01"
          }'
{
  "status": "success",
  "message": "Created quote successfully",
  "data": {
    "id": "QUO_KnHEixq4aUwH",
    "profile_id": "BUS_9rDAqqREdmMQcQj3zsRlL",
    "source_currency": "ETH",
    "target_currency": "NGN",
    "source_amount": "0.01",
    "target_amount": "57642.22",
    "rate": {
      "product": "ETHNGN",
      "rate": "5764222.24",
      "side": "sell",
      "type": "FIXED",
      "source_currency": "ETH",
      "target_currency": "NGN"
    },
    "fees": [],
    "reference": "QUO_KnHEixq4aUwH",
    "status": "pending",
    "expires_at": "2025-10-30T09:43:54.906019648Z",
    "created_at": "2025-10-30T09:13:54.905993939Z"
  }
}
2

Execute the Sale

Use the quote ID to finalize the sale:
        curl -X POST https://api.sandbox.busha.so/v1/transfers \
          -H "Authorization: Bearer YOUR_SECRET_KEY" \
          -H "Content-Type: application/json" \
          -d '{
            "quote_id": "QUO_KnHEixq4aUwH"
          }'
{
  "status": "success",
  "message": "Created transfer successfully",
  "data": {
    "id": "TRF_91QAkVrRaXDZ",
    "profile_id": "BUS_9rDAqqREdmMQcQj3zsRlL",
    "quote_id": "QUO_KnHEixq4aUwH",
    "description": "Sold ETH",
    "sub_description": "For NGN",
    "source_currency": "ETH",
    "target_currency": "NGN",
    "source_amount": "0.01",
    "target_amount": "57642.22",
    "trade": "sell",
    "rate": {
      "product": "ETHNGN",
      "rate": "5764222.24",
      "side": "sell",
      "type": "FIXED"
    },
    "fees": [],
    "status": "pending",
    "created_at": "2025-10-30T09:14:06.134616492Z"
  }
}
3

Check Transfer Status

Monitor the transfer to confirm the sale completed successfully:
        curl -X GET https://api.sandbox.busha.so/v1/transfers/TRF_91QAkVrRaXDZ \
          -H "Authorization: Bearer YOUR_SECRET_KEY"
{
  "status": "success",
  "message": "Fetched transfer successfully",
  "data": {
    "id": "TRF_91QAkVrRaXDZ",
    "description": "Sold ETH",
    "sub_description": "for NGN",
    "source_currency": "ETH",
    "target_currency": "NGN",
    "source_amount": "0.01",
    "target_amount": "57642.22",
    "status": "funds_converted",
    "timeline": {
      "total_steps": 2,
      "current_step": 2,
      "transfer_status": "funds_converted",
      "events": [
        {
          "step": 1,
          "done": true,
          "status": "funds_received",
          "title": "Crypto Received"
        },
        {
          "step": 2,
          "done": true,
          "status": "funds_converted",
          "title": "Funds Converted"
        }
      ]
    }
  }
}

Other Currency Combinations

Sell BTC for NGN
curl -X POST https://api.sandbox.busha.so/v1/quotes \
  -H "Authorization: Bearer YOUR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "source_currency": "BTC",
    "target_currency": "NGN",
    "source_amount": "0.001"
  }'
Sell ETH for KES
curl -X POST https://api.sandbox.busha.so/v1/quotes \
  -H "Authorization: Bearer YOUR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "source_currency": "ETH",
    "target_currency": "KES",
    "source_amount": "0.01"
  }'

Learn More