Class TradesBankApi


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2025-03-21T21:00:09.538922Z[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 | | pending | The Platform is executing the trade | | cancelled | The Platform has cancelled 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 | ## Failure codes | Code | Description | |------|-------------| | non_sufficient_funds | The delivery account does not have enough funds to complete the trade | | unsupported | The trading pair is not supported for this customer | | limit_exceeded | The customer is over the limits that have been set for them for this activity | | expired_quote | The quote expired before it could be executed | | market_volatility | The quote could not be executed due to market volatility | 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,
                                                                          String side,
                                                                          String label,
                                                                          String createdAtGte,
                                                                          String createdAtLt,
                                                                          String updatedAtGte,
                                                                          String updatedAtLt)
                                                                   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.
        side - Comma separated sides to list trades for.
        label - Comma separated labels to list trades for.
        createdAtGte - Created at start date-time inclusive lower bound, ISO8601.
        createdAtLt - Created at end date-time exclusive upper bound, ISO8601.
        updatedAtGte - Updated at start date-time inclusive lower bound, ISO8601.
        updatedAtLt - Updated at end date-time exclusive upper bound, ISO8601.
        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,
                                                                                                                               String side,
                                                                                                                               String label,
                                                                                                                               String createdAtGte,
                                                                                                                               String createdAtLt,
                                                                                                                               String updatedAtGte,
                                                                                                                               String updatedAtLt)
                                                                                                                        throws org.springframework.web.reactive.function.client.WebClientResponseException
        Throws:
        org.springframework.web.reactive.function.client.WebClientResponseException