Paytrie Developer Documentation

Price Quotes

Get real-time stablecoin conversion rates

Fetch current conversion rates between CAD and supported stablecoins. Use price quotes to display accurate rates to users before they initiate a transaction.

Supported tokens

TokenNetwork
USDC-ETHEthereum
USDC-POLYPolygon
USDC-ARBArbitrum
USDC-OPOptimism
USDC-BASEBase
USDC-AVAXAvalanche
USDC-BSCBNB Smart Chain
USDC-CELOCelo
USDC-SOLSolana
USDC-SXSX Network
TokenNetwork
CADC-ETHEthereum
CADC-POLYPolygon
CADC-ARBArbitrum
CADC-BASEBase

Quick start

Buying stablecoins (CAD to USDC)

curl "https://api.paytrie.com/priceQuote?leftSideLabel=CAD&leftSideValue=1000&rightSideLabel=USDC-ETH"

Selling stablecoins (USDC to CAD)

curl "https://api.paytrie.com/priceQuote?leftSideLabel=USDC-ETH&leftSideValue=500&rightSideLabel=CAD"

Example response

{
  "quoteId": 337362,
  "cadusd": 1.4015,
  "leftSideLabel": "CAD",
  "leftSideValue": "1000",
  "rightSideLabel": "USDC-ETH",
  "rightSideValue": "708.98",
  "fee": 5.00,
  "ethGasFee": 0.375,
  "gasId": 186324
}

API Reference: Get Price Quote

View complete request parameters and response schema

Using quotes in transactions

When creating a transaction, include the quoteId and gasId to lock in the quoted rate:

curl -X POST "https://api.paytrie.com/transaction" \
  -H "x-api-key: your-api-key" \
  -H "Authorization: Bearer user-jwt-token" \
  -H "Content-Type: application/json" \
  -d '{
    "leftSideLabel": "CAD",
    "leftSideValue": 1000,
    "rightSideLabel": "USDC-ETH",
    "wallet": "0x742d35Cc6634C0532925a3b844Bc9e7595f8bC3a",
    "quoteId": 337362,
    "gasId": 186324
  }'

Quote rates are time-sensitive. If too much time passes between getting a quote and creating a transaction, the rate may change.

On this page