Get FX Rate
ashar_get_fx_rateGet a quick FX rate with platform markup for BRL, USDC, or USDT without creating a quote; returns base rate, client rate, and fee.
Instructions
Consult a quick FX rate (with platform markup) without creating a quote.
Args:
from (string): source currency ('BRL', 'USDC', or 'USDT')
to (string): target currency ('BRL', 'USDC', or 'USDT')
request_amount (number): amount in minor units
direction (string, optional): 'payin' (BRL -> crypto) or 'payout' (crypto -> BRL)
currency_type (string, optional): 'sender' or 'receiver'
Returns base_rate (BlindPay) and client_rate (after markup) plus platform_fee.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency | |
| from | Yes | Source currency | |
| direction | No | Operation direction | |
| currency_type | No | Who the rate applies to | |
| request_amount | Yes | Amount in minor units |