Approval Required

Exchange rates can fluctuate and this may result in potentially undesirable settlement values by the time the trade begins. When you create your exchange you will provide a Minimum Sell Rate value which dictates the threshold for triggering an approval process. If approval is required and you provided a URL for this event then we will send a postback to your URL.

Outputs

Variable Description
Type type Indicates the specific postback case.
Data data Contains variables unique to this postback.
Timestamp timestamp The current date/time UTC.
Reference Id reference_id The Reference Id of the exchange which requires approval.
Amount amount The amount of cryptocurrency we will be trading.
Exchange Rate exchange_rate The current exchange rate we can provide for the chosen currency.
Settlement Value settlement_value The expected return of the exchange.

Example Output

{
    "type": "approval_required",
    "data": {
        "reference_id": "2aa3b74c3c2e048e928d4f7fba6c12d3",
        "amount": 0.99999,
        "exchange_rate": 3967.1628672,
        "settlement_value": 3967.1231955713283
    },
    "timestamp": "2018-12-21 17:22:07"
}