Get Prices
GET http://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
Transaction type is buy
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"
}
],
"...": []
}
}
|