com.bybit.api.client.restApi.BybitApiCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bybit-java-api Show documentation
Show all versions of bybit-java-api Show documentation
The Official Java API connector for Bybit's HTTP and WebSocket APIs.
Dive into a plethora of functionalities:
- Market Data Retrieval
- Trade Execution
- Position Management
- Account and Asset Info Retrieval
- User and Upgrade Management
— Public Websocket Streaming
- Private Websocket Streaming
- Lending Institution and Client
- Broker Earning Data
The newest version!
package com.bybit.api.client.restApi;
/**
* BybitApiCallback is a functional interface used together with the BybitApiAsyncClient to provide a non-blocking REST client.
*
* @param the return type from the callback
*/
public interface BybitApiCallback {
/**
* Called whenever a response comes back from the Bybit API.
*
* @param response the expected response object
*/
void onResponse(T response);
/**
* Called whenever an error occurs.
*
* @param cause the cause of the failure
*/
default void onFailure(Throwable cause) {}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy