Instant exchange API
Available Currencies List
GET:
https://api.pegasusswap.com/api/private/get-all-coins
This API endpoint provides a paginated list of all available currencies.
Parameters:
Name | Type | Required or optional | Description |
---|---|---|---|
page | number | optional | Current page |
limit | number | optional | Limit per page |
search | string | optional | Search by currency name |
method | number | optional | Method 1 we get an array with coins for deposit. Method 2 we get an array with coins for output |
depositCoin | string | optional | Deposit coin |
receiveCoin | string | optional | Receive coin |
depositNetwork | string | optional | Deposit network |
receiveNetwork | string | optional | Receive network |
Successful response fields:
Name | Type | Description |
---|---|---|
pagination: | object | Pagination |
pageCount | number | Page count |
totalCount | number | Total items |
depositCoins / withdrawCoins | array | List with coins |
image | string | Сoin image |
subName | string | Сoin sub name |
name | string | Coin name |
networks | object | Coin networks |
deposits / withdraws | array | Deposits or withdraws networks |
subName | string | Network name |
memoNeeded | boolean | Network has extra ID |
Example request:
GET:
https://api.pegasusswap.com/api/private/get-all-coins?page=1&limit=5&method=1
Example response:
{
"pagination": {
"pageCount": 52,
"totalCount": 260
},
"depositCoins": [
{
"image": "example/USDT.png",
"subName": "USDT",
"name": "TetherUS",
"networks": {
"deposits": [
{
"subName": "TRX",
"memoNeeded": true
}
]
}
}
]
}