Buy Crypto

Create a buy order

post/buy_orders

Request

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

Headers

Idempotency-Keystring

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

Request body

fiatstring required
assetstring required
fiat_amountstring required

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

quote_idstring

Example request

{
  "fiat_amount": "250.00"
}

Response

The buy order.

idstring
object'buy_order'
status'completed' | 'pending' | 'failed'
fiatstring
fiat_amountstring

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

assetstring
asset_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

{
  "fiat_amount": "250.00",
  "asset_amount": "250.00",
  "fee": "250.00"
}

Changes

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