Trade
The Nexus DEX provides three trading interfaces to accommodate different usage scenarios:
1. Two-Step Trading Process
For scenarios requiring quote confirmation before execution:
Step 1: Get Quote - Use /taker/api/swap/quote to obtain a price quote for your desired trading pair. This endpoint returns a quote_id along with detailed information about the exchange rate and amounts.
Apifox/1.0.0 (https://apifox.com)application/json*/*127.0.0.1:8942keep-aliveE.g.: runes-THIRD•THIRD•TEST•TEO/btc-BTC, the latter is the quote currency
buy/sell, if runes is at the front, it means buy runes or sell runes
Quantity
Whether to use channel payment
Step 2: Submit Trade - Use /taker/api/swap/submit with the quote_id from step 1 to execute the trade. This allows you to review the quote before committing to the transaction.
Apifox/1.0.0 (https://apifox.com)application/json*/*127.0.0.1:8942keep-alive2. Quick Trading
For streamlined trading without separate quote generation:
Quick Trade - Use /taker/api/swap/quick to get a quote and submit the trade in a single request. This endpoint combines both steps for faster execution when immediate trading is desired.
Apifox/1.0.0 (https://apifox.com)application/json*/*127.0.0.1:8942keep-aliveE.g.: runes-THIRD•THIRD•TEST•TEO/btc-BTC, the latter is the quote currency
buy/sell, if runes is at the front, it means buy runes or sell runes
Quantity
Whether to use channel payment
Last updated