post https://spectrocoin.com/api/public/exchanges/calculate
This endpoint calculates the exchange amount for a given currency pair. You can specify either the payAmount
(the amount being paid) or the receiveAmount
(the amount to be received). The system will use the provided value to calculate the corresponding amount for the other currency based on current exchange rates.
- If both
payAmount
andreceiveAmount
are provided, the calculation will prioritize thepayAmount
. - If only
receiveAmount
is provided, the calculation will be based on the desired amount to receive.
At least one of these parameters (payAmount
or receiveAmount
) must be specified.