Feather Cross Chain Swap API

Hey guys check out my cross chain swap api! Watch out, it's an ALPHA PROTOTYPE. NO GUARANTEES yet. It's never lost money afaik, but try it with small amounts first, and email [email protected] with bugs and suggestions.

POST /trade

Submit your destination address and what chain you are swapping from and to, and we will prep your trade and give you a deposit address. Send funds to the deposit address and you will receive the swapped funds at your destination address within a few minutes. You can send any amount up to the liquidity cap; the trade amount is determined by what you actually send us. Trade addresses are one-time use; sending multiple payments will cause you to lose money. This method expects a JSON POST body with the following fields:

{
  ,

  ,

  ,
}




            

GET /price

Before you trade, you can get the current price for your particular asset pair using this method. input_asset and output_asset are mandatory. You may also supply one of input_amount or output_amount to get the price of a particular amount. The result will include the general price function (price rate, fee, slippage rate, liquidity cap) and your example input and output amounts if you supplied a particular amount.

WARNING: A note on how the liquidity cap works: if you send more than the liquidity cap, we will do a best-effort execution of your trade up to the cap, and you will lose the rest. Always check the price and cap on your trade before sending.





            

GET /status?id=YOURSTATUSUID

Get the status of a particular trade by id.





            

GET /assets

Get a list of supported assets along with their USD prices, spreads, and fees. Asset to asset prices are computed from these values: