Operacion API

Calcula el monto de salida.

Calcular el monto de salida

POST /public/calculate_amount_out

Parameters

Name Description
currency_in Moneda a enviar (verificar monedas disponibles)
amount_in Monto a enviar
currency_out Moneda a recibir (verificar monedas disponibles)
type Tipo de operacion, opciones: cash-in cash-out swap
network_in Red de entrada (REQUERIDO si type = swap)
network_out Red de salida (REQUERIDO si type = swap)

Request

Headers

Content-Type: application/json
Host: example.org
Cookie: 

Route

POST /public/calculate_amount_out

Body

{"currency_in":"usd","amount_in":"100","currency_out":"doc","type":"cash-in","network_out":"rsk"}

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
ETag: W/"bf9353262e87723ff55a07f9936cdf7e"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: ee7dc614-0206-44a7-a53f-f88b0c7f071f
X-Runtime: 0.056843
Vary: Origin
Content-Length: 173

Status

200 OK

Body

{
  "data": {
    "amount_in": "100.0",
    "amount_out": "97.0",
    "costs": "3.0",
    "commissions": {
      "percentage": 1.5,
      "amount": 1.5
    },
    "taxes": {
      "percentage": 1.5,
      "amount": 1.5
    },
    "fee_of_network": "0.0"
  }
}