Class TradesBankApi


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2023-07-04T14:17:07.666269Z[Etc/UTC]")
    public class TradesBankApi
    extends Object
    • Constructor Detail

      • TradesBankApi

        public TradesBankApi()
      • TradesBankApi

        @Autowired
        public TradesBankApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • createTrade

        public reactor.core.publisher.Mono<TradeBankModel> createTrade​(PostTradeBankModel postTradeBankModel)
                                                                throws org.springframework.web.reactive.function.client.WebClientResponseException
        Create Trade Creates a trade. ## State | State | Description | |-------|-------------| | storing | The Platform is storing the trade details in our private store | | initiating | The Platform has begun to perform the trade | | pending | The Platform is executing the trade | | settling | The Platform is settling the trade | | completed | The Platform has successfully completed the trade | | failed | The Platform was not able to successfully complete the trade | Required scope: **trades:execute**

        201 - Trade created

        400 - Invalid requests

        401 - Unauthorized - Authentication failed,

        403 - Invalid scope

        409 - Data already exists

        422 - Unable to process request

        Parameters:
        postTradeBankModel - The postTradeBankModel parameter
        Returns:
        TradeBankModel
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
      • createTradeWithHttpInfo

        public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<TradeBankModel>> createTradeWithHttpInfo​(PostTradeBankModel postTradeBankModel)
                                                                                                                     throws org.springframework.web.reactive.function.client.WebClientResponseException
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException
      • getTrade

        public reactor.core.publisher.Mono<TradeBankModel> getTrade​(String tradeGuid)
                                                             throws org.springframework.web.reactive.function.client.WebClientResponseException
        Get Trade Retrieves a trade. Required scope: **trades:read**

        200 - trade found

        401 - Unauthorized - Authentication failed,

        403 - Invalid scope

        404 - trade not found

        Parameters:
        tradeGuid - Identifier for the trade.
        Returns:
        TradeBankModel
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
      • getTradeWithHttpInfo

        public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<TradeBankModel>> getTradeWithHttpInfo​(String tradeGuid)
                                                                                                                  throws org.springframework.web.reactive.function.client.WebClientResponseException
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException
      • listTrades

        public reactor.core.publisher.Mono<TradeListBankModel> listTrades​(BigInteger page,
                                                                          BigInteger perPage,
                                                                          String guid,
                                                                          String bankGuid,
                                                                          String customerGuid,
                                                                          String accountGuid,
                                                                          String state)
                                                                   throws org.springframework.web.reactive.function.client.WebClientResponseException
        Get trades list Retrieves a listing of trades. Required scope: **trades:read**

        200 - get list of trades

        400 - Invalid requests

        401 - Unauthorized - Authentication failed,

        403 - Invalid scope

        Parameters:
        page - The page index to retrieve.
        perPage - The number of entities per page to return.
        guid - Comma separated trade_guids to list trades for.
        bankGuid - Comma separated bank_guids to list trades for.
        customerGuid - Comma separated customer_guids to list trades for.
        accountGuid - Comma separated account_guids to list trades for.
        state - Comma separated states to list trades for.
        Returns:
        TradeListBankModel
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
      • listTradesWithHttpInfo

        public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<TradeListBankModel>> listTradesWithHttpInfo​(BigInteger page,
                                                                                                                               BigInteger perPage,
                                                                                                                               String guid,
                                                                                                                               String bankGuid,
                                                                                                                               String customerGuid,
                                                                                                                               String accountGuid,
                                                                                                                               String state)
                                                                                                                        throws org.springframework.web.reactive.function.client.WebClientResponseException
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException