Skip to main content
POST
/
api
/
trading
/
estimate
/
sell
curl -X POST https://oro-tradebook-devnet.up.railway.app/api/trading/estimate/sell \
  -H "Content-Type: application/json" \
  -H "x-api-key: your-api-key" \
  -d '{
    "goldAmount": 0.5
  }'
{
  "success": true,
  "data": {
    "goldAmount": 0.5,
    "estimatedUsdcAmount": 2543.10,
    "goldPricePerOunce": 5086.2,
    "timestamp": "2024-01-15T10:30:00.000Z"
  }
}

Overview

Provides a quote for how much USDC you’ll receive when selling a specified amount of gold at current prices. Authorization Required: PARTNER_EXECUTIVE_AUTHORITY

Headers

x-api-key
string
required
Your API key for authentication

Request Body

goldAmount
number
required
Amount of gold to estimate sale for (in troy ounces)

Response

success
boolean
Whether the request was successful
data
object
curl -X POST https://oro-tradebook-devnet.up.railway.app/api/trading/estimate/sell \
  -H "Content-Type: application/json" \
  -H "x-api-key: your-api-key" \
  -d '{
    "goldAmount": 0.5
  }'
{
  "success": true,
  "data": {
    "goldAmount": 0.5,
    "estimatedUsdcAmount": 2543.10,
    "goldPricePerOunce": 5086.2,
    "timestamp": "2024-01-15T10:30:00.000Z"
  }
}