Added

Convert between your balances with the Conversions API

Convert funds between your balances straight from the API. Request a quote, check the rate and fee, then confirm or cancel it. Start with the Conversions overview.

How it works

  1. Get a quote. Create a conversion with the ledger_account_id to convert from, the quote_currency_id to convert to and the base_amount. You get back the amount you'll receive, the conversion fee and an expires_at time.
  2. Confirm it. Confirm the conversion before expires_at to move the funds. To drop it instead, cancel it.
curl -X POST https://api.coingate.com/v2/ledger/conversions \
  -H "Authorization: Token YOUR_API_KEY" \
  -d ledger_account_id=123 \
  -d quote_currency_id=2 \
  -d base_amount=0.01
📘

Quotes expire quickly

A quote holds its rate for about a minute. If it expires before you confirm, create a new one.

Endpoints

EndpointDescription
POST /v2/ledger/conversionsCreate a conversion quote
PATCH /v2/ledger/conversions/{id}/confirmConfirm a quote
PATCH /v2/ledger/conversions/{id}/cancelCancel a quote
GET /v2/ledger/conversionsList your conversions
GET /v2/ledger/conversions/{id}Get a conversion
GET /v2/ledger/conversions/ratesCurrent conversion rates, no API key needed

See Conversion statuses for what each status means.