Tags

BTCBTC
BTC
ETH
USDT
TRX
USDC
XMRXMR
BTC
ETH
USDT
TRX
USDC
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

2 min

We have made updates to three API endpoints. Here's what changed and what the updated responses look like.


1. Update to the get-all-coins Endpoint


We have updated the response structure for the get-all-coins endpoint.


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


Added:

  • name (string) -- contains the coin name
  • networks (object) -- contains information about the coin's networks
  • deposits/withdraws (array) -- contains an array of networks for deposits or withdrawals
  • subName (string) -- the name of the network
  • memoNeeded (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


Removed: The networkFee field has been removed from the response.


Added: maxAmount (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 Endpoint


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


Removed: The receiveAmount field has been removed from the request body.


Full API documentation is available at pegasusswap.com/api-docs. If you have questions, reach out via the Support.

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.