Swap
Swap between balance currencies
Your API key (obtain from dashboard)
Swap rates retrieved successfully
Indicates if the request was successful
trueResponse message
SuccessGET /api/v1/swap/rates HTTP/1.1
Host: api.coincircuit.io
x-api-key: YOUR_API_KEY
Accept: */*
Swap rates retrieved successfully
{
"success": true,
"message": "Success",
"data": [
{
"fromCurrency": "USDT",
"toCurrency": "NGN",
"rate": "1490.00000000",
"timestamp": "2026-07-27T10:30:00.000Z"
}
]
}Your API key (obtain from dashboard)
Currency to swap from
USDTPossible values: Currency to swap to
NGNPossible values: Amount to swap
100.00Swap estimation retrieved successfully
Indicates if the request was successful
trueResponse message
SuccessInvalid currency pair or amount
GET /api/v1/swap/estimate?fromCurrency=USDT&toCurrency=NGN&amount=100.00 HTTP/1.1
Host: api.coincircuit.io
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"message": "Success",
"data": {
"fromCurrency": "NGN",
"toCurrency": "NGN",
"sourceAmount": "100.00",
"targetAmount": "149000.00",
"rate": "1490.00000000"
}
}Creates a swap quotation that locks the rate for 30 seconds. Execute the quotation before it expires.
Your API key (obtain from dashboard)
Currency to swap from
USDTPossible values: Currency to swap to
NGNPossible values: Amount to swap
100.00Quotation created successfully
Indicates if the request was successful
trueResponse message
SuccessInvalid currency pair or amount
POST /api/v1/swap/quotation HTTP/1.1
Host: api.coincircuit.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 60
{
"fromCurrency": "USDT",
"toCurrency": "NGN",
"amount": "100.00"
}{
"success": true,
"message": "Success",
"data": {
"id": "b1a2c3d4-e5f6-7890-1234-56789abcdef0",
"fromCurrency": "NGN",
"toCurrency": "NGN",
"sourceAmount": "100.00",
"targetAmount": "149000.00",
"rate": "1490.00000000",
"executed": true,
"expiresAt": "2024-05-12T10:00:15.000Z",
"createdAt": "2024-05-12T10:00:00.000Z"
}
}Your API key (obtain from dashboard)
Quotation retrieved successfully
Indicates if the request was successful
trueResponse message
SuccessQuotation not found
GET /api/v1/swap/quotation/{quotationId} HTTP/1.1
Host: api.coincircuit.io
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"message": "Success",
"data": {
"id": "b1a2c3d4-e5f6-7890-1234-56789abcdef0",
"fromCurrency": "NGN",
"toCurrency": "NGN",
"sourceAmount": "100.00",
"targetAmount": "149000.00",
"rate": "1490.00000000",
"executed": true,
"expiresAt": "2024-05-12T10:00:15.000Z",
"createdAt": "2024-05-12T10:00:00.000Z"
}
}Your API key (obtain from dashboard)
Optional URL to receive webhook notifications for this swap (must be HTTPS). Overrides your dashboard webhook URL for this swap only.
https://example.com/webhooksSwap completed successfully
Indicates if the request was successful
trueResponse message
SuccessQuotation expired or already used
Quotation not found
POST /api/v1/swap/execute/{quotationId} HTTP/1.1
Host: api.coincircuit.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"webhookUrl": "https://example.com/webhooks"
}{
"success": true,
"message": "Success",
"data": {
"id": "b1a2c3d4-e5f6-7890-1234-56789abcdef0",
"fromCurrency": "NGN",
"toCurrency": "NGN",
"sourceAmount": "100.00",
"targetAmount": "149000.00",
"rate": "1490.00000000",
"status": "completed",
"quotation": {
"id": "b1a2c3d4-e5f6-7890-1234-56789abcdef0",
"fromCurrency": "NGN",
"toCurrency": "NGN",
"sourceAmount": "100.00",
"targetAmount": "149000.00",
"rate": "1490.00000000",
"executed": true,
"expiresAt": "2024-05-12T10:00:15.000Z",
"createdAt": "2024-05-12T10:00:00.000Z"
},
"createdAt": "2024-05-12T10:00:00.000Z",
"completedAt": "2024-05-12T10:00:15.000Z"
}
}Your API key (obtain from dashboard)
Page number (1-based)
1Example: 1Number of items per page
10Example: 10Filter by source currency
USDTPossible values: Filter by target currency
NGNPossible values: Start date for filtering (ISO string)
2024-01-01T00:00:00ZEnd date for filtering (ISO string)
2024-12-31T23:59:59ZSwap history retrieved successfully
Indicates if the request was successful
trueResponse message
SuccessGET /api/v1/swaps HTTP/1.1
Host: api.coincircuit.io
x-api-key: YOUR_API_KEY
Accept: */*
Swap history retrieved successfully
{
"success": true,
"message": "Success",
"data": [
{
"id": "b1a2c3d4-e5f6-7890-1234-56789abcdef0",
"fromCurrency": "NGN",
"toCurrency": "NGN",
"sourceAmount": "100.00",
"targetAmount": "149000.00",
"rate": "1490.00000000",
"status": "completed",
"quotation": {
"id": "b1a2c3d4-e5f6-7890-1234-56789abcdef0",
"fromCurrency": "NGN",
"toCurrency": "NGN",
"sourceAmount": "100.00",
"targetAmount": "149000.00",
"rate": "1490.00000000",
"executed": true,
"expiresAt": "2024-05-12T10:00:15.000Z",
"createdAt": "2024-05-12T10:00:00.000Z"
},
"createdAt": "2024-05-12T10:00:00.000Z",
"completedAt": "2024-05-12T10:00:15.000Z"
}
],
"meta": {
"page": 1,
"size": 10,
"total": 42,
"totalPages": 5
}
}Your API key (obtain from dashboard)
Swap details retrieved successfully
Indicates if the request was successful
trueResponse message
SuccessSwap not found
GET /api/v1/swaps/{id} HTTP/1.1
Host: api.coincircuit.io
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"message": "Success",
"data": {
"id": "b1a2c3d4-e5f6-7890-1234-56789abcdef0",
"fromCurrency": "NGN",
"toCurrency": "NGN",
"sourceAmount": "100.00",
"targetAmount": "149000.00",
"rate": "1490.00000000",
"status": "completed",
"quotation": {
"id": "b1a2c3d4-e5f6-7890-1234-56789abcdef0",
"fromCurrency": "NGN",
"toCurrency": "NGN",
"sourceAmount": "100.00",
"targetAmount": "149000.00",
"rate": "1490.00000000",
"executed": true,
"expiresAt": "2024-05-12T10:00:15.000Z",
"createdAt": "2024-05-12T10:00:00.000Z"
},
"createdAt": "2024-05-12T10:00:00.000Z",
"completedAt": "2024-05-12T10:00:15.000Z"
}
}Last updated
Was this helpful?