OTC Trades DVP

Get OTC DVP Trades

get

Retrieve a list of OTC DVP Trades

Query parameters
modestring · enumOptional

Strategy applied when filtering/searching on multiple fields

Possible values:
orderanyOptional

Array of fields and directions to order. Supported fields: createdAt, status, initiatorSendAmount, acceptorSendAmount

Responses
200

Successfully retrieved a list of items.

application/json
get
/otc-trades-dvp
200

Successfully retrieved a list of items.

Initiate DVP OTC trade

post

Initiate a Delivery-Versus-Payment Over-The-Counter trade, between two accounts

Body
initiatorAccountAddressstring · xrp-addressRequired

Initiator account address

Example: rHb9CJAWyB4rj91VRWn96DkukG4bwdtyThPattern: r[0-9a-zA-Z]{24,34}
initiatorSendAssetIdstring · uuidRequired

Initiator sending asset id

Example: e1445aa4-0d26-49ce-9807-c490027672dd
initiatorSendAmountinteger · int64Required

Initiator sending asset amount in units

Example: 200
acceptorAccountAddressstring · xrp-addressRequired

Accepter account address

Example: rHb9CJAWyB4rj91VRWn96DkukG4bwdtyThPattern: r[0-9a-zA-Z]{24,34}
acceptorSendAssetIdstring · uuidRequired

Acceptor sending asset id

Example: d7b0e2fa-f0fe-4d7f-930f-2c5278b95e8b
acceptorSendAmountinteger · int64Required

Accepter sending asset amount in units

Example: 100
tradedAtstring · date-timeRequired

Trade day in ISO 8601 format YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss.SSSZ

Example: 2037-10-01
Responses
post
/otc-trades-dvp
201

Initiated DVP OTC trade

Get OTC DVP Trade

get

Get OTC DVP Trade by its unique identifier

Path parameters
otcTradeDvpIdstring · uuidRequired

OTC DVP Trade UUID identifier, unique in scope of this node

Example: ce534269-0fac-4ac0-b3ec-a89bc8b9048d
Responses
200

Retrieve full information about a single OTC Trade DVP

application/json
get
/otc-trades-dvp/{otcTradeDvpId}
200

Retrieve full information about a single OTC Trade DVP

Change DVP OTC trade

patch

Accept/Cancel/Reject a Free-Of-Payment Over-The-Counter trade

Path parameters
otcTradeDvpIdstring · uuidRequired

OTC DVP Trade UUID identifier, unique in scope of this node

Example: ce534269-0fac-4ac0-b3ec-a89bc8b9048d
Body
statusall ofRequired

Update OTC DVP trade status:

  • completed - (destination investor agent) complete OTC DVP trade
  • cancelled - (source investor agent) cancel OTC DVP trade
  • rejected - (destination investor agent) reject OTC DVP trade
Example: completed
string · enumOptional

Status of the trade

Possible values:
Responses
200

Changed DVP OTC trade

application/json
patch
/otc-trades-dvp/{otcTradeDvpId}
200

Changed DVP OTC trade

Last updated