BTCBTC
BTC
ETH
USDT
TRX
USDC
ARB
ALICE
AURORA
ADX
AVAX
XMRXMR
BTC
ETH
USDT
TRX
USDC
ARB
ALICE
AURORA
ADX
AVAX
Optional Settings

Floating Rate

Rate adjusts with market changes, you may get slightly more or less crypto than shown.

Fixed Rate

Lock the rate now and receive exactly the amount displayed.

PegasusSwap

Pegasus Swap API Doc Update

PegasusSwap

30 Jan 2025

5 min



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

Our publications

interested to write on our blog?

Join our contributor network and help traders swap faster and safer. Tutorials, explainers, and partner spotlights are welcome. Share your angle and portfolio to get started.