LogoLogo
  • GENERAL
    • About Criptan
    • Get started
      • Introduction
      • 1. Activate your account
      • 2. Add funds to your balance
      • 3. Start interacting with the API
    • API
      • Introduction
      • Authentication
        • Auth Transactions and Earn
          • API Reference
        • Auth Business (Criptan Pay)
      • Real-Time API (WebSockets)
        • OHLCV
        • TICKERS
      • Webhooks
        • Transactions and Earn Webhooks
        • Business Webhooks
      • API reference
      • Changelog
    • Developer tools
      • Sandbox
      • Support
      • Feedback
    • Security
  • Transactions
    • General
      • Overview
      • Available exchange
      • Geographic availability
      • Use cases
        • Buy
          • UX example
        • Sell
          • UX example
        • Send crypto
          • UX example
        • Receive crypto
          • UX example
        • Recurring purchases
          • UX example
        • Check history
      • FAQ
    • API Reference
      • Trades
      • Withdrawals
      • Information
  • Earn
    • General
      • Overview
      • Geographic availability
      • Use cases
        • 3, 6, 12 months
          • Make a deposit
            • UX example
          • Set up auto-renew a deposit automatically
            • UX example
        • Flex
          • Make a deposit
            • UX example
          • Make a withdrawal
            • UX example
          • Cancel a withdrawal
            • UX example
          • Set up reinvest or not rewards
            • UX example
        • Flex and 3, 6, 12 months
          • Receiving Rewards
      • FAQ
    • API Reference
  • Business (Criptan Pay)
    • General
      • Business (Criptan Pay)
      • Onboarding
      • Payment Button
      • Charges
      • FAQ
    • API Reference
      • Charge
      • Generate charge receipt
      • Get payment
    • Types CPay definitions
      • BusinessAccount
      • BusinessCharge
Powered by GitBook
On this page
  • Create a request to quote a trade
  • Confirm a previous quote
  1. Transactions
  2. API Reference

Trades

Create a request to quote a trade

POST /transactions/quotes/trades

Request Body

Name
Type
Description

amount*

string

Amount to trade

pair*

string

Trading pair in which to operate

side

BUY | SELL

Whether buying or selling the base currency of the pair in case of a trade operation

currency

string

The base currency you will use being EUR or USDC

{
    "expirationDate": "2022-12-15T16:43:11.238Z",
    "quantity": 0.46805232,
    "fee": 9.69,
    "totalAmount": 7695.57,
    "userId": "9011017",
    "parameters": {
        "variableFeeRate": 0.001,
        "fixedFee": 2,
        "originalAmount": 7695.57,
        "commision": 0
    },
    "pair": "BTC_EUR",
    "amount": 7685.88,
    "paymentMethod": "BALANCE",
    "side": "BUY | SELL",
    "used": false,
    "id": "2IxUAU0qmurrAr34vtdECE9aW25",
    "price": 16420.98
}

Confirm a previous quote

POST /transactions/quotes/trades/:quoteId/confirm

Path Parameters

Name
Type
Description

quoteId*

string

The id of the quote to confirm and perform

{
    "success": true
}
{
    "message": "The account doesn't have enough funds for this operation",
    "code": "insufficient_funds"
}
PreviousAPI ReferenceNextWithdrawals

Last updated 1 year ago