Kraken Embed

Request Quote

Request a price quote for an asset that may be used to execute a trade later on. The quote will be valid for a limited time as specified in the response.

post/v1/kraken_embed/quotes

Request

  • Base URL
    https://api.privy.io
  • URL
    https://api.privy.io/v1/kraken_embed/quotes
  • Auth
    HTTP basic

Headers

privy-app-idstring required

ID of your Privy app.

Request body

user_idstring required
type'receive' | 'spend' required

Whether the quote amount refers to the asset being received or spent.

fee_bpsstring required
spread_bpsstring required
quote_currencystring nullable

Example request

{
  "user_id": "did:privy:clabcd1234",
  "type": "spend",
  "amount": {
    "asset_class": "currency",
    "asset": "USD",
    "amount": "100.00"
  },
  "quote": {
    "asset": "BTC"
  },
  "fee_bps": "100",
  "spread_bps": "50"
}

Response

Quote request successful. Returns quote details including pricing and expiration.

Example response

{
  "data": {
    "result": {
      "quote_id": "QTE-12345-ABCDE",
      "type": "spend",
      "status": "new",
      "expires": "2024-04-15T12:30:00Z",
      "spend": {
        "asset": "USD",
        "asset_class": "currency",
        "total": "100.00",
        "fee": "1.00",
        "subtotal": "99.00"
      },
      "receive": {
        "asset": "BTC",
        "asset_class": "currency",
        "total": "0.00150000",
        "fee": "0.00000150",
        "subtotal": "0.00149850"
      },
      "unit_price": {
        "asset": "BTC",
        "asset_class": "currency",
        "unit_price": "66000.00",
        "denomination_asset": "USD",
        "denomination_asset_class": "currency"
      },
      "quoted_spend": null,
      "quoted_receive": null,
      "quoted_unit_price": null
    }
  }
}

Changes

No recorded changes to this operation across all 60 revisions of this API.