Convert

Create a conversion

post/convert

Request

  • Base URL: https://api.pinkwallet.com/v1
  • URL: https://api.pinkwallet.com/v1/convert
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

A unique key to make this write safely retryable for 24 hours.

Request body

from_assetstring
to_assetstring
from_amountstring

A decimal amount as a string, e.g. "250.00".

quote_idstring

Example request

{
  "from_amount": "250.00"
}

Response

The executed conversion.

idstring
object'conversion'
status'filled' | 'pending' | 'failed'
from_assetstring
to_assetstring
from_amountstring

A decimal amount as a string, e.g. "250.00".

to_amountstring

A decimal amount as a string, e.g. "250.00".

ratestring
feestring

A decimal amount as a string, e.g. "250.00".

Example response

{
  "from_amount": "250.00",
  "to_amount": "250.00",
  "fee": "250.00"
}

Changes

No recorded changes to this operation across all 1 revision of this API.