Skip to main content
POST
/
crypto
/
execute
Execute crypto purchase
curl --request POST \
  --url http://api.contabull.com/crypto/execute \
  --header 'Content-Type: application/json' \
  --data '{
  "quoteId": "<string>",
  "cost": 123,
  "quantity": 123,
  "accountId": "<string>",
  "walletId": "<string>"
}'
{
  "cryptoTransactionId": "<string>",
  "quantity": 123,
  "cost": 123,
  "price": 123,
  "network": "ethereum",
  "symbol": "usdt",
  "currency": "<string>",
  "walletId": "<string>",
  "walletAddress": "<string>",
  "walletName": "<string>",
  "settlementSchedule": "instant",
  "settlementDate": "2023-11-07T05:31:56Z"
}

Body

application/json
quoteId
string
required

Unique identifier from a previous quote request

accountId
string
required

ID of the account to debit funds from

walletId
string
required

ID of the destination crypto wallet

cost
number

Total cost in BRL - mutually exclusive with quantity

quantity
number

Amount of crypto to purchase - mutually exclusive with cost

Response

default - application/json
cryptoTransactionId
string
required

Unique identifier for the crypto transaction

quantity
number
required

Actual crypto amount purchased

cost
number
required

Total cost in BRL

price
number
required

Execution price per unit

network
enum<string>
required

Blockchain network (ethereum, tron, polygon, binance, solana)

Available options:
ethereum,
tron,
polygon,
binance,
solana
symbol
enum<string>
required

Cryptocurrency symbol

Available options:
usdt,
usdc,
trx,
eth
currency
string
required

Fiat currency used for the transaction

walletId
string
required

Destination wallet ID

walletAddress
string
required

Destination wallet address

walletName
string
required

Destination wallet name

settlementSchedule
enum<string>
required

Settlement timing schedule

Available options:
instant,
d0d0,
d1d1,
d2d2
settlementDate
string<date-time> | null
required

Expected settlement date and time