Get Quote for On-chain Trade Transaction

Get a quote for an on-chain trade transaction.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required
Body Params
string
required

Unique ID to ensure idempotency

string
required

Code of asset to sell

string
required
^-?[0-9]+(\.[0-9]+)?$

The total amount to be sold

string
required

Code of asset to buy

Responses

400

Possible reasons:

  • from_amount must be positive
  • unknown from asset_code
  • unknown to asset_code
401

Not authenticated

403

the authority account cannot be used as the account for a transaction

404

Not found

409

user is archived

422

The request body is valid JSON but does not match the expected schema.

500

Possible reasons:

  • failed to get quote
  • failed to get quote amount
  • failed to get vendor asset code
  • failed to resolve from asset_code
  • failed to resolve to asset_code
  • missing ETH vendor asset code
Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json