Skip to content

Get Prices

GEThttp://connect.cabital.com/api/v1/connect/prices

Retrieve a batch of quote information based on transaction type.

Request Path Parameters

Parameter Required Description
account_id Yes Customer account ID provided by Cabital.

Request Query Parameter

Parameter Required Type Description
transaction_type No string Transaction type.
  • CONVERSION: Conversion.
  • BUY: Buy crypto by credit card.

Transaction type is conversion

Parameter Required Type Description
target Yes string Fiat or crypto currency to buy.
source No string Fiat or crypto currency to sell.

Transaction type is buy

Parameter Required Type Description
target Yes string Crypto currency to buy
source No string Fiat currency to sell

Response Parameters

Parameter Type Description
transaction_type string Transaction type
  • CONVERSION: Conversion.
  • BUY: Buy crypto by credit card.
price string Transaction price, the precision will be extend to 4 more decimal point precision.
valid_interval string The absolute valid interval of quote, unit is second.

Example

Request Data

curl "https://connect.cabital.com/api/v1/accounts/6d92e7b4-715c-4ce3-a028-19f1c8c9fa6c/transfers"

Response Data

{
    "target": "USDT",
    "sources": {
    "EUR": [
        {
          "transaction_type": "BUY",
          "valid_interval": 30,
          "price": "0.99"
        },
        {
          "transaction_type": "CONVERSION",
          "valid_interval": 5,
          "price": "0.99"
        }
    ],
    "TWD": [
        {
          "transaction_type": "BUY",
          "valid_interval": 30,
          "price": "29.83"
        }
    ],
    "...": []
    }
}