Conversions#Create

Instantiate a Conversion Object

Conversion Example Request

curl https://{{v1_base_url}}/conversions
-X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-type: application/json" \
-d '{
    "conversion": {
        "input_currency": "usdc",
        "input_amount": 1000,
        "output_currency": "eur",
        "output_amount": null,
        "mode": "sending",
    }
}'

Endpoint Information

Create Conversion

POST https://{{v1_base_url}}/conversions

Request Body

{
    "conversion": {
        "exchange_rate": { 'usd_eur' => 0.914386 },
        "fees": 8.687,
        "input_currency": "usdc",
        "output_currency": "eur",
        "input_amount": 1000.0,
        "output_amount": 906,
        "mode": "sending"
        }
}

Last updated