Interface BybitApiCallback<T>

  • Type Parameters:
    T - the return type from the callback

    public interface BybitApiCallback<T>
    BybitApiCallback is a functional interface used together with the BybitApiAsyncClient to provide a non-blocking REST client.
    • Method Detail

      • onResponse

        void onResponse​(T response)
        Called whenever a response comes back from the Bybit API.
        Parameters:
        response - the expected response object
      • onFailure

        default void onFailure​(Throwable cause)
        Called whenever an error occurs.
        Parameters:
        cause - the cause of the failure