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

com.bybit.api.client.restApi.BybitApiAsyncPositionRestClient 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.BatchMovePositionRequest;
import com.bybit.api.client.domain.position.request.PositionDataRequest;

public interface BybitApiAsyncPositionRestClient {
    // Position endpoints
    void getPositionInfo(PositionDataRequest positionListRequest, BybitApiCallback callback);
    void setPositionLeverage(PositionDataRequest setLeverageRequest, BybitApiCallback callback);
    void swithMarginRequest(PositionDataRequest switchMarginRequest, BybitApiCallback callback);
    void switchPositionMode(PositionDataRequest switchPositionModeRequest, BybitApiCallback callback);
    @Deprecated
    void setTpslMode(PositionDataRequest setTpSlModeRequest, BybitApiCallback callback);
    @Deprecated
    void setRiskLimit(PositionDataRequest setRiskLimitRequest, BybitApiCallback callback);
    void setTradingStop(PositionDataRequest tradingStopRequest, BybitApiCallback callback);
    void setAutoAddMargin(PositionDataRequest setAutoAddMarginRequest, BybitApiCallback callback);
    void modifyPositionMargin(PositionDataRequest modifyMarginRequest, BybitApiCallback callback);
    void getClosePnlList(PositionDataRequest closePnlHistoryRequest, BybitApiCallback callback);
    void getMovePositionHistory(PositionDataRequest movePositionHistoryRequest, BybitApiCallback callback);
    void batchMovePositions(BatchMovePositionRequest batchMovePositionRequest, BybitApiCallback callback);
    void confirmPositionRiskLimit(PositionDataRequest confirmNewRiskLimitRequest, BybitApiCallback callback);
}