SwapCoinVest
Public REST API documentation for market data endpoints and PDF reports.
Base URL: https://swapcoinvest.com/api/v1
Market: JSON
Reports: PDF download
Auth: None (public)
GET
https://swapcoinvest.com/api/v1/tickerTicker
Returns current ticker data for all available trading pairs.
Access
Public
Auth
Not required
Format
JSON
Response
JSON body
Query Parameters
No query parameters
Request Examples
cURL
curl -X GET "https://swapcoinvest.com/api/v1/ticker"Fetch
const res = await fetch("https://swapcoinvest.com/api/v1/ticker");
const data = await res.json();
console.log(data);Response Example
JSON
{
"success": true,
"data": [
{
"symbol": "BTC_USDT",
"lastPrice": "68452.10",
"change24h": "2.45",
"volume24h": "1254.43"
},
{
"symbol": "ETH_USDT",
"lastPrice": "3524.18",
"change24h": "1.17",
"volume24h": "845.91"
}
]
}GET
https://swapcoinvest.com/api/v1/orderbook?symbol=BTC_USDTOrder Book
Returns the current order book for a selected trading pair.
Access
Public
Auth
Not required
Format
JSON
Response
JSON body
Query Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| symbol | string | Yes | Trading pair symbol | BTC_USDT |
Request Examples
cURL
curl -X GET "https://swapcoinvest.com/api/v1/orderbook?symbol=BTC_USDT"Fetch
const res = await fetch("https://swapcoinvest.com/api/v1/orderbook?symbol=BTC_USDT");
const data = await res.json();
console.log(data);Response Example
JSON
{
"success": true,
"symbol": "BTC_USDT",
"data": {
"bids": [
["68450.10", "0.52"],
["68449.95", "1.03"]
],
"asks": [
["68452.45", "0.40"],
["68453.00", "0.87"]
]
}
}GET
https://swapcoinvest.com/api/v1/trades?symbol=BTC_USDTTrades
Returns recent market trades for a selected trading pair.
Access
Public
Auth
Not required
Format
JSON
Response
JSON body
Query Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| symbol | string | Yes | Trading pair symbol | BTC_USDT |
Request Examples
cURL
curl -X GET "https://swapcoinvest.com/api/v1/trades?symbol=BTC_USDT"Fetch
const res = await fetch("https://swapcoinvest.com/api/v1/trades?symbol=BTC_USDT");
const data = await res.json();
console.log(data);Response Example
JSON
{
"success": true,
"symbol": "BTC_USDT",
"data": [
{
"price": "68451.20",
"amount": "0.12",
"side": "buy",
"timestamp": "2026-04-06T16:12:15Z"
},
{
"price": "68450.90",
"amount": "0.08",
"side": "sell",
"timestamp": "2026-04-06T16:11:58Z"
}
]
}GET
https://swapcoinvest.com/api/v1/pairsPairs
Returns the list of available trading pairs.
Access
Public
Auth
Not required
Format
JSON
Response
JSON body
Query Parameters
No query parameters
Request Examples
cURL
curl -X GET "https://swapcoinvest.com/api/v1/pairs"Fetch
const res = await fetch("https://swapcoinvest.com/api/v1/pairs");
const data = await res.json();
console.log(data);Response Example
JSON
{
"success": true,
"data": [
"BTC_USDT",
"ETH_USDT",
"SOL_USDT",
"BNB_USDT"
]
}GET
https://swapcoinvest.com/api/v1/report?period=monthReport PDF
Downloads a PDF report for the selected period.
Access
Public
Auth
Not required
Format
PDF
Response
File download
Query Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| period | string | Yes | Report period | day | week | month | quarter | halfyear | year |
Download report
Choose a period and download the report as PDF.
URL
https://swapcoinvest.com/api/v1/report?period=monthRequest Examples
cURL
curl -L "https://swapcoinvest.com/api/v1/report?period=month" --output trading-report-month.pdfFetch
const res = await fetch("https://swapcoinvest.com/api/v1/report?period=month");
const blob = await res.blob();
const url = window.URL.createObjectURL(blob);
const a = document.createElement("a");
a.href = url;
a.download = "trading-report-month.pdf";
a.click();
window.URL.revokeObjectURL(url);Response
This endpoint returns a PDF file download, not JSON.
