Pegasus Swap API Doc Update



We have some important updates that we want to tell you about!

1. Update to the get-all-coins Endpoint

We have made changes to the response structure for the get-all-coins endpoint. The main updates include:

Removed:

The fields minAmount and memo have been removed from the response.

Added:

Field name (type: string) – contains the coin name.
Field networks (type: object) – contains information about the coin's networks.
Field deposits/withdraws (type: array) – contains an array of networks for deposits or withdrawals.
Field subName (type: string) – the name of the network.
Field memoNeeded (type: boolean) – indicates whether an additional ID is required for the network.

Example of the updated response:

{
"pagination": {
"pageCount": 52,
"totalCount": 260
},
"depositCoins": [
{
"image": "example/USDT.png",
"subName": "USDT",
"name": "TetherUS",
"networks": {
"deposits": [
{
"subName": "TRX",
"memoNeeded": true
}
]
}
}
]
}

2. Update to the exchange-coin Endpoint

We have also made changes to the exchange-coin endpoint:

Removed:

The networkFee field has been removed from the response.

Added:

Field maxAmount (type: number) – indicates the maximum exchange amount.

Example of the updated response:

{
"pair": "ETH_USDT",
"amount": "10",
"exchangeRate": 2462.1076313215262,
"receive": 24008.541206617498,
"minAmount": 0.03,
"maxAmount": 2100
}


3. Update to the create-transaction

We have simplified the request structure for the create-transaction endpoint:

Removed:

The receiveAmount field has been removed from the request body.


Exchange Monero (XMR) and 1000+ other cryptocurrencies quickly, securely, and with full privacy on Pegasus Swap – your trusted platform for seamless crypto swaps.

Recommended articles

View all

Our Forums