post
https://b2b.getorbital.io/conversions
Execute a currency conversion between two of your accounts.
Two execution modes:
-
With Quote ID (recommended):
- First obtain a quote using
POST /conversions/quotes - Execute using the
quoteIdto lock in the quoted rate
- First obtain a quote using
-
Without Quote ID:
- Provide
fromAccount,toAccount, andamountdirectly - A quote will be created and executed immediately at the current market rate
- Provide
Quote-based execution is recommended for predictable rates, especially for large amounts.
Instruction Type:
Use instructionType to control whether the amount represents the source or destination side:
sell(default): Theamountis the source amount you are sellingbuy: Theamountis the destination amount you want to buy