All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bybit.api.client.restApi.BybitApiAsyncTradeRestClient Maven / Gradle / Ivy

Go to download

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;

import com.bybit.api.client.domain.position.request.PositionDataRequest;
import com.bybit.api.client.domain.trade.request.BatchOrderRequest;
import com.bybit.api.client.domain.trade.request.BatchOrderRequest;
import com.bybit.api.client.domain.trade.request.TradeOrderRequest;

import java.io.IOException;
import java.util.Map;

public interface BybitApiAsyncTradeRestClient {
    // Trade
    void getOrderHistory(TradeOrderRequest orderHistoryRequest, BybitApiCallback callback);
    void setDisconnectCancelAllTime(TradeOrderRequest tradeOrderRequest, BybitApiCallback callback);
    void getBorrowQuota(TradeOrderRequest borrowQuotaRequest, BybitApiCallback callback);
    void getOpenOrders(TradeOrderRequest order, BybitApiCallback callback);
    void getTradeHistory(TradeOrderRequest order, BybitApiCallback callback);
    void createOrder(TradeOrderRequest order, BybitApiCallback callback);
    void createOrder(Map order, BybitApiCallback callback);
    void createOrder(String order, BybitApiCallback callback) throws IOException;
    void createBatchOrder(BatchOrderRequest batchOrderRequest, BybitApiCallback callback);
    void createBathOrder(Map payload, BybitApiCallback callback);
    void createBathOrder(String json, BybitApiCallback callback) throws IOException;
    void amendBatchOrder(BatchOrderRequest batchOrderRequest, BybitApiCallback callback);
    void amendBatchOrder(Map payload, BybitApiCallback callback);
    void amendBatchOrder(String json, BybitApiCallback callback) throws IOException;
    void cancelBatchOrder(BatchOrderRequest batchOrderRequest, BybitApiCallback callback);
    void cancelBatchOrder(Map payload, BybitApiCallback callback);
    void cancelBatchOrder(String json, BybitApiCallback callback) throws IOException;
    void cancelOrder(TradeOrderRequest order, BybitApiCallback callback);
    void cancelAllOrder(TradeOrderRequest order, BybitApiCallback callback);
    void amendOrder(TradeOrderRequest order, BybitApiCallback callback);
}