LogoLogo
  • GENERAL
    • Introduction
    • Overview
    • Authentification
    • ENUM description
  • GUIDES
    • General questions
      • What is Calypso Pay?
      • Which blockchains and tokens we support?
    • Calypso UI guides and questions
      • Introduction to Calypso Pay
      • Sandbox mode and limits
      • General
        • How to create new API key
        • How to create an additional account
        • How to add a new asset to account
        • How to add funds to your wallet
        • Protect your withdrawals with additional signatures
        • How to change your top-up address
        • How to use address book
        • How to set up auto currency conversion
        • How to set up payout confirmations
        • How to transfer money within Calypso pay
        • Create a webhook
      • Accept Payments via UI
        • How to create an invoice via UI
        • Accept Payments FAQ
      • Make Payments via UI
        • How to create a single payout via UI
        • How to create mass payout via UI
        • Make Payments FAQ
      • Make Exchanges via UI
        • How to exchange one crypto asset to the other
      • Reports
        • How to get reports
        • Report contents description
    • Integration guides and questions
      • Get started with API
      • Use Customer purse via API
        • How create a customer
        • How to get a purse
        • How to get a transaction data
      • Accept Payments via API
        • How to create a Limited Invoice via API
        • How to create a Limited Fiat Invoice via API
        • How to create an Unlimited Invoice via API
        • How to manage interventions via API
        • How to embed invoice data to your payment page
      • Payment widget
        • How to create a limited fiat payment widget via API
        • How to create unlimited payment widget
        • How to embed a payment widget on a web page
      • Make Exchange via API
        • How to create a exchange
        • Get balance information via API
      • Make Payments via API
        • Get balance information via API
        • How to create a single payout via API
        • How to create a mass payout via API
  • ACQUIRING
    • Customer wallets
    • Invoices
    • Onramp
    • Onramp widget
  • EXCHANGE
    • Crypto exchange
  • PAYOUTS
    • Single Payout
    • Mass Payout
  • WEBHOOKS
    • Overview
    • Types of events
    • Webhook payload
    • Webhook sign check
  • API REFERENCE
    • Report API
    • Settlement Payout API
    • Webhook API
    • Payout API
    • Exchange API
    • Fiat API
    • User API
    • Rate API
    • Settlement Wallet API
    • Fiat withdrawal API
    • Account API
    • Currency API
    • Invoice API
    • Settlement Report API
    • Crypto to fiat API
    • Customer Purse API
    • Fiat deposit API
    • Payment Widget API
    • Models
Powered by GitBook
On this page
Export as PDF
  1. EXCHANGE

Crypto exchange

PreviousEXCHANGENextPAYOUTS

Last updated 19 days ago

Creating exchange via API

  1. Create an exchange by using the method POST | Create exchange;

  2. Get exchange details and state by using the method POST | Get exchange;

Scheme of information process interaction

Below is an example of creating a exchange from a client’s site or application.

Names of requests on the scheme indicate certain payment API methods.

Exchange statuses:

Status
Description

IN_PROGRESS

The exchange order has been created and is awaiting execution.

COMPLETED

The funds have been successfully exchanged on the account.

FAILED

Exchange statuses

Diagram indicate exchange statuses, arrows indicate processes a successful completion of which transfers an exchange from one status to another.

Create an exchange via API with additional functions (optional requests)

  1. If you want to make sure that your account has enough assets for exchange and get available asset balances on the account, then use this function:

    • Check account balance and ensure enough assets for exchange are available by using the method POST | Get the account;

  2. If you want to get a list of available currency pairs for exchanges, use this function:

    • Getting available pairs for exchange by using the method POST | Get currency pairs;

  3. If you want to know the maximum and minimum available limits for currency exchange, use this function:

    • Get upper exchange limits for currencies by using the method POST | Get upper exchange limit by currency;

  4. If you want to get a preliminary calculation of the exchange, then use this function:

    • Get a preliminary calculation of the exchange amounts by using the method POST | Pre-calculate

  5. Create an exchange by using the method POST | Create exchange;

  6. Get exchange details and state by using the method POST | Get exchange;

Scheme of information process interaction

Below is an example of creating a exchange from a client’s site or application.

Names of requests on the scheme indicate certain payment API methods.

An error occurred during the exchange. There may be many reasons for the error. You can follow the steps below to fix it: 1. Wait for a while and create a new exchange. 2. Contact our .

technical support