OTC Trades FOP

Get FOP OTC trades

get

Retrieve a list of Free of Payment Over the Counter 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, amount

Responses
chevron-right
200

Successfully retrieved a list of items.

application/json
get
/otc-trades-fop
200

Successfully retrieved a list of items.

Initiate FOP OTC trade

post

Initiate a Free-of-Payment Over-The-Counter trade, between two accounts

Body
initiatorAccountAddressstring · xrp-addressRequired

Initiator account address

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

Initiator sending asset id

Example: 035f9fd0-e88c-47ea-8250-a526f75e3b03
amountinteger · int64Required

Initiator sending asset amount in units

Example: 200
acceptorAccountAddressstring · xrp-addressRequired

Accepter account address

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

Reason for the trade

Possible values:
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-fop
201

Initiated FOP OTC trade

Get FOP OTC trade

get

Get Free of Payment Over the Counter trade by its unique identifier

Path parameters
otcTradeFopIdstring · uuidRequired

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

Example: aa70f8b7-38d5-41d2-864b-d281ab6cfec2
Responses
chevron-right
200

Retrieve full information about a single Free of Payment Over the Counter Trade

application/json
createdAtstring · date-timeRequired

Created date

updatedAtstring · date-timeRequired

Updated date

idstring · uuidRequired

UUIDv4 of OTC FOP Trade

Example: 9b34abf5-e655-40de-a98e-0bd1976294a3
statusstring · enumRequired

Status of the trade

Possible values:
assetIdstring · uuidRequired

Initiator asset id

Example: 75e53a88-676a-4e53-bd3f-3b937a370075
amountinteger · int64Required

Initiator amount to send

Example: 200
initiatorAccountAddressstring · xrp-addressRequired

Initiator account address

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

Initiator broker id

Example: abe4fba9-f445-4190-ad6e-0971b14be4aa
acceptorAccountAddressstring · xrp-addressRequired

Acceptor account address

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

Acceptor broker id

Example: 62168fde-45f7-48ef-a67a-35b15cfd34a1
reasonstring · enumRequired

Reason for the trade

Possible values:
tradedAtstring · date-timeRequired

Trade date

get
/otc-trades-fop/{otcTradeFopId}
200

Retrieve full information about a single Free of Payment Over the Counter Trade

Change FOP OTC trade

patch

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

Path parameters
otcTradeFopIdstring · uuidRequired

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

Example: aa70f8b7-38d5-41d2-864b-d281ab6cfec2
Body
statusstring · enumRequired

Status of the trade

Possible values:
Responses
chevron-right
200

Changed FOP OTC trade

application/json
createdAtstring · date-timeRequired

Created date

updatedAtstring · date-timeRequired

Updated date

idstring · uuidRequired

UUIDv4 of OTC FOP Trade

Example: 9b34abf5-e655-40de-a98e-0bd1976294a3
statusstring · enumRequired

Status of the trade

Possible values:
assetIdstring · uuidRequired

Initiator asset id

Example: 75e53a88-676a-4e53-bd3f-3b937a370075
amountinteger · int64Required

Initiator amount to send

Example: 200
initiatorAccountAddressstring · xrp-addressRequired

Initiator account address

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

Initiator broker id

Example: abe4fba9-f445-4190-ad6e-0971b14be4aa
acceptorAccountAddressstring · xrp-addressRequired

Acceptor account address

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

Acceptor broker id

Example: 62168fde-45f7-48ef-a67a-35b15cfd34a1
reasonstring · enumRequired

Reason for the trade

Possible values:
tradedAtstring · date-timeRequired

Trade date

patch
/otc-trades-fop/{otcTradeFopId}
200

Changed FOP OTC trade

Last updated