Skip to main content
POST
/
quotes
Create a quote
curl --request POST \
  --url https://api.conduit.financial/quotes \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --header 'X-API-Secret: <api-key>' \
  --data '{
  "source": {
    "amount": "1400.00",
    "asset": "USD"
  },
  "target": {
    "asset": "USDT",
    "network": "tron"
  },
  "pricing": {
    "overrides": {
      "customer": {
        "pricingModel": "spread_on_rate",
        "spreadBps": 5
      }
    }
  }
}'
{
  "id": "quote_2fvietuCNSu8unMNLsEGBrDTVFn",
  "source": {
    "amount": "1400.00",
    "asset": "USD"
  },
  "target": {
    "amount": "1400.120000",
    "asset": "USDT",
    "network": "tron"
  },
  "createdAt": "2024-10-27T00:00:00.000Z",
  "expiresAt": "2024-10-27T00:03:00.000Z",
  "pricing": {
    "client": {
      "pricingModel": "conduitFee",
      "spreadBps": 0,
      "effectiveRate": 0,
      "calculatedAmount": {
        "asset": "USD",
        "amount": "0",
        "networkId": "fiat"
      }
    },
    "customer": {
      "pricingModel": "spread_on_rate",
      "spreadBps": 5,
      "effectiveRate": 0.997321994052,
      "calculatedAmount": {
        "asset": "BRL",
        "amount": "996809.035227",
        "networkId": "fiat"
      },
      "calculatedRevenue": {
        "asset": "USD",
        "amount": "10.0",
        "networkId": "fiat"
      }
    }
  }
}

Authorizations

X-API-Key
string
header
required

Includes an API key in the HTTP headers to authenticate the client.

X-API-Secret
string
header
required

Includes an API secret in the HTTP headers to authenticate the client.

Body

application/json
  • Source-Based Quote Request
  • Target-Based Quote Request
source
object
required
target
object
required
pricing
object

Response

The created object

id
string
required

A valid Quote ID

Example:

"quote_2ofTABULiy4F9kO7JrrZJWpcO65"

source
object
required
target
object
required
createdAt
string<date-time>
required
expiresAt
string<date-time>
required
pricing
object
required