Interface ExchangesApi
-
- All Implemented Interfaces:
public interface ExchangesApiInterface representing an API for interacting with TBDex exchanges and related entities.
-
-
Method Summary
Modifier and Type Method Description abstract List<Message>getExchange(String id, String requesterDid)Retrieves the exchange with the specified ID. abstract List<List<Message>>getExchanges(GetExchangesFilter filter)Retrieves a list of exchanges based on the provided filter. abstract RfqgetRfq(String exchangeId)Retrieves the Request for Quote (RFQ) for the specified exchange ID. abstract QuotegetQuote(String exchangeId)Retrieves the Quote for the specified exchange ID. abstract OrdergetOrder(String exchangeId)Retrieves the Order for the specified exchange ID. abstract List<OrderStatus>getOrderStatuses(String exchangeId)Retrieves the list of Order Statuses for the specified exchange ID. abstract ClosegetClose(String exchangeId)Retrieves the Close information for the specified exchange ID. -
-
Method Detail
-
getExchange
abstract List<Message> getExchange(String id, String requesterDid)
Retrieves the exchange with the specified ID.
- Parameters:
id- The ID of the exchange to retrieve.requesterDid- The DID of the requester.- Returns:
A list of Message representing the exchange with the specified ID.
-
getExchanges
abstract List<List<Message>> getExchanges(GetExchangesFilter filter)
Retrieves a list of exchanges based on the provided filter.
- Parameters:
filter- The filter criteria for retrieving exchanges.- Returns:
A list of lists of Message representing exchanges based on the filter.
-
getRfq
abstract Rfq getRfq(String exchangeId)
Retrieves the Request for Quote (RFQ) for the specified exchange ID.
- Parameters:
exchangeId- The ID of the exchange to retrieve the RFQ for.- Returns:
The Rfq object representing the RFQ for the specified exchange.
-
getQuote
abstract Quote getQuote(String exchangeId)
Retrieves the Quote for the specified exchange ID.
- Parameters:
exchangeId- The ID of the exchange to retrieve the Quote for.- Returns:
The Quote object representing the Quote for the specified exchange.
-
getOrder
abstract Order getOrder(String exchangeId)
Retrieves the Order for the specified exchange ID.
- Parameters:
exchangeId- The ID of the exchange to retrieve the Order for.- Returns:
The Order object representing the Order for the specified exchange.
-
getOrderStatuses
abstract List<OrderStatus> getOrderStatuses(String exchangeId)
Retrieves the list of Order Statuses for the specified exchange ID.
- Parameters:
exchangeId- The ID of the exchange to retrieve Order Statuses for.- Returns:
A list of OrderStatus objects representing the Order Statuses for the specified exchange, or an empty list if none are found.
-
-
-
-