Pular para o conteúdo

Liquidations

Use these operations to retrieve liquidations from the Smart Liquidation service.

OperationMethodDescription
Get liquidationsGETList all liquidations by date range.
Get liquidation by Liquidation IdGETGets a liquidation by Id.
Get liquidation by RippleNet Payment IdGETGets a liquidation by ripplenet_payment_id.

Note: To configure liquidation, contact your RippleNet liaison.

Creates a new operator triggered liquidation

Requisição

Segurança
Bearer
Cabeçalhos
X-CORRELATION-IDstring
Corpoapplication/jsonobrigatório
unique_reference_idstringobrigatório
ripplenet_payment_idstring, (uuid)obrigatório
destination_amountnumber, (decimal)obrigatório
expires_atstring, (date-time)
Exemplo:"2018-04-06T20:33:35Z"
curl -i -X POST \
  https://docs.ripple.com/_mock/pt-br/products/payments-odl/api-docs/smart_liquidation/smart_liquidation/liquidations/operator \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -H 'X-CORRELATION-ID: string' \
  -d '{
    "unique_reference_id": "string",
    "ripplenet_payment_id": "7bb2080a-9fd7-4f64-af96-119671501c9c",
    "destination_amount": 0,
    "expires_at": "2018-04-06T20:33:35Z"
  }'

Respostas

Returns the liquidation created

Corpoapplication/json
idstring, (uuid)obrigatório

Unique liquidation identifier

account_idstringobrigatório

The identifier of the account requesting the liquidation

created_atstring, (date-time)obrigatório

Date specified in ISO-8601 format, for example 2018-04-06T20:33:35Z

Exemplo:"2018-04-06T20:33:35Z"
modified_atstring, (date-time)obrigatório

Date specified in ISO-8601 format, for example 2018-04-06T20:33:35Z

Exemplo:"2018-04-06T20:33:35Z"
unique_reference_idstringobrigatório

The unique 32-character string representing the liquidation

ripplenet_payment_idstring, (uuid)

Unique identifier for a RippleNet payment

ripplenet_payment_created_atstring, (date-time)

Timestamp when the RippleNet payment was created

ripplenet_sender_addressstring

RippleNet address of the sender

Exemplo:"sf_gbp@rn.us.ca.san_francisco"
ripplenet_receiver_addressstring

RippleNet address of the receiver

Exemplo:"sf_gbp@rn.us.ca.san_francisco"
destination_amountnumber, (decimal)obrigatório

The total amount available for withdrawal after all fees have been collected

Exemplo:10000
destination_currencystringobrigatório

The 3-letter currency code of the destination currency

Exemplo:"usd"
destination_venuestringobrigatório

The name of the exchange where XRP is liquidated into fiat currency

Exemplo:"bitso"
bridge_currency_codestringobrigatório

Bridge crypto currency to liquidate into destination currency. Will be required in future versions.

crypto_deposit_amountnumber, (decimal)

The deposit amount of the crypto currency bridge asset (XRP)

crypto_deposit_venue_idstring

The venue ID for the crypto currency bridge asset (XRP) deposit transaction

estimate_typestring
Enum:"firm""indicative"
expires_atstring, (date-time)

The expiration time of the liquidation

Exemplo:"2018-04-06T20:33:35Z"
liquidation_sourcestringobrigatório
Enum:"xrrn""operator"
statusstringobrigatório
Enum:"COMPLETED""CREATED""FAILED""PARTIALLY_COMPLETED""QUEUED""STARTED"
trade_requestsArray of objectsobrigatório

An array of trade objects representing the trades of the liquidation

execution_strategyobject

The trade execution strategy

execution_summaryobjectobrigatório

The trade execution summary

trading_summaryobject

The trading summary

Resposta
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "account_id": "string", "created_at": "2018-04-06T20:33:35Z", "modified_at": "2018-04-06T20:33:35Z", "unique_reference_id": "string", "ripplenet_payment_id": "7bb2080a-9fd7-4f64-af96-119671501c9c", "ripplenet_payment_created_at": "2019-08-24T14:15:22Z", "ripplenet_sender_address": "sf_gbp@rn.us.ca.san_francisco", "ripplenet_receiver_address": "sf_gbp@rn.us.ca.san_francisco", "destination_amount": 10000, "destination_currency": "usd", "destination_venue": "bitso", "bridge_currency_code": "string", "crypto_deposit_amount": 0, "crypto_deposit_venue_id": "string", "estimate_type": "firm", "expires_at": "2018-04-06T20:33:35Z", "liquidation_source": "xrrn", "status": "CREATED", "trade_requests": [ { … } ], "execution_strategy": { "maxAmountPerTrade": 0, "minimumTradeInterval": 0 }, "execution_summary": { "total_xrp": 0, "total_fiat": 0, "total_slippage": 0, "total_sender_fees": 0, "total_receiver_fees": 0, "total_trades": 0, "fx_rate": 0, "incentive_type": "string" }, "trading_summary": { "total_fiat_executed": 0, "total_fiat_in_flight": 0, "total_fiat_non_deliverable": 0, "total_fiat_remaining_deliverable": 0 } }

Creates a new operator triggered liquidation

Requisição

Segurança
Bearer
Cabeçalhos
X-CORRELATION-IDstring
Corpoapplication/jsonobrigatório
unique_reference_idstringobrigatório
ripplenet_payment_idstring, (uuid)obrigatório
destination_amountnumber, (decimal)obrigatório
expires_atstring, (date-time)
Exemplo:"2018-04-06T20:33:35Z"
curl -i -X POST \
  https://docs.ripple.com/_mock/pt-br/products/payments-odl/api-docs/smart_liquidation/smart_liquidation/liquidations/operator \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -H 'X-CORRELATION-ID: string' \
  -d '{
    "unique_reference_id": "string",
    "ripplenet_payment_id": "7bb2080a-9fd7-4f64-af96-119671501c9c",
    "destination_amount": 0,
    "expires_at": "2018-04-06T20:33:35Z"
  }'

Respostas

Returns the liquidation created

Corpoapplication/json
idstring, (uuid)obrigatório

Unique liquidation identifier

account_idstringobrigatório

The identifier of the account requesting the liquidation

created_atstring, (date-time)obrigatório

Date specified in ISO-8601 format, for example 2018-04-06T20:33:35Z

Exemplo:"2018-04-06T20:33:35Z"
modified_atstring, (date-time)obrigatório

Date specified in ISO-8601 format, for example 2018-04-06T20:33:35Z

Exemplo:"2018-04-06T20:33:35Z"
unique_reference_idstringobrigatório

The unique 32-character string representing the liquidation

ripplenet_payment_idstring, (uuid)

Unique identifier for a RippleNet payment

ripplenet_payment_created_atstring, (date-time)

Timestamp when the RippleNet payment was created

ripplenet_sender_addressstring

RippleNet address of the sender

Exemplo:"sf_gbp@rn.us.ca.san_francisco"
ripplenet_receiver_addressstring

RippleNet address of the receiver

Exemplo:"sf_gbp@rn.us.ca.san_francisco"
destination_amountnumber, (decimal)obrigatório

The total amount available for withdrawal after all fees have been collected

Exemplo:10000
destination_currencystringobrigatório

The 3-letter currency code of the destination currency

Exemplo:"usd"
destination_venuestringobrigatório

The name of the exchange where XRP is liquidated into fiat currency

Exemplo:"bitso"
bridge_currency_codestringobrigatório

Bridge crypto currency to liquidate into destination currency. Will be required in future versions.

crypto_deposit_amountnumber, (decimal)

The deposit amount of the crypto currency bridge asset (XRP)

crypto_deposit_venue_idstring

The venue ID for the crypto currency bridge asset (XRP) deposit transaction

estimate_typestring
Enum:"firm""indicative"
expires_atstring, (date-time)

The expiration time of the liquidation

Exemplo:"2018-04-06T20:33:35Z"
liquidation_sourcestringobrigatório
Enum:"xrrn""operator"
statusstringobrigatório
Enum:"COMPLETED""CREATED""FAILED""PARTIALLY_COMPLETED""QUEUED""STARTED"
trade_requestsArray of objectsobrigatório

An array of trade objects representing the trades of the liquidation

execution_strategyobject

The trade execution strategy

execution_summaryobjectobrigatório

The trade execution summary

trading_summaryobject

The trading summary

Resposta
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "account_id": "string", "created_at": "2018-04-06T20:33:35Z", "modified_at": "2018-04-06T20:33:35Z", "unique_reference_id": "string", "ripplenet_payment_id": "7bb2080a-9fd7-4f64-af96-119671501c9c", "ripplenet_payment_created_at": "2019-08-24T14:15:22Z", "ripplenet_sender_address": "sf_gbp@rn.us.ca.san_francisco", "ripplenet_receiver_address": "sf_gbp@rn.us.ca.san_francisco", "destination_amount": 10000, "destination_currency": "usd", "destination_venue": "bitso", "bridge_currency_code": "string", "crypto_deposit_amount": 0, "crypto_deposit_venue_id": "string", "estimate_type": "firm", "expires_at": "2018-04-06T20:33:35Z", "liquidation_source": "xrrn", "status": "CREATED", "trade_requests": [ { … } ], "execution_strategy": { "maxAmountPerTrade": 0, "minimumTradeInterval": 0 }, "execution_summary": { "total_xrp": 0, "total_fiat": 0, "total_slippage": 0, "total_sender_fees": 0, "total_receiver_fees": 0, "total_trades": 0, "fx_rate": 0, "incentive_type": "string" }, "trading_summary": { "total_fiat_executed": 0, "total_fiat_in_flight": 0, "total_fiat_non_deliverable": 0, "total_fiat_remaining_deliverable": 0 } }