For the complete documentation index, see llms.txt. This page is also available as Markdown.

📈Quote

If you want to get the conversion rate of an amount in BRL (Brazilian Real) to the destination currency or token, you can use the quote endpoint before creating the transaction.

This conversion is designed to:

  • Retrieve the current conversion rate for the selected currency/token;

  • Return the final amount already converted into cryptocurrency;

Using the /transaction/price_conversion endpoint, you can get the quote for the requested amount in BRL/REAL converted to the current value in the chosen cryptocurrency.

Payload example

{
  "amount": "50.10",
  "currency_from_symbol": "BRL",
  "convert": "USDT"
}

Performs the currency/token conversion.

POST https://api.4p.finance/v1/transaction/price_conversion

Returns a JSON with the total requested amount converted into the chosen currency/token.

Headers

Name
Type
Description

x-api-key*

String

Your API key.

Request Body

Name
Type
Description

amount*

String

Amount to be converted. Example: 35.99.

convert*

String

Symbol of the currency/token the amount will be converted to. Example: USDT.

currency_from_symbol*

String

Symbol of the source currency/token. Example: BRL.