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

com.kucoin.sdk.rest.interfaces.retrofit.StopOrderAPIRetrofit Maven / Gradle / Ivy

The newest version!
/**
 * Copyright 2019 Mek Global Limited.
 */
package com.kucoin.sdk.rest.interfaces.retrofit;

import com.kucoin.sdk.rest.request.StopOrderCreateRequest;
import com.kucoin.sdk.rest.response.*;
import retrofit2.Call;
import retrofit2.http.*;

import java.util.List;
import java.util.Map;

public interface StopOrderAPIRetrofit {

    @POST("api/v1/stop-order")
    Call> createStopOrder(@Body StopOrderCreateRequest request);

    @DELETE("api/v1/stop-order/{orderId}")
    Call> cancelStopOrder(@Path("orderId") String orderId);

    @DELETE("api/v1/stop-order/cancel")
    Call> cancelStopOrders(@QueryMap Map params);

    @GET("api/v1/stop-order/{orderId}")
    Call> getStopOrder(@Path("orderId") String orderId);

    @GET("api/v1/stop-order")
    Call>> queryStopOrders(@QueryMap Map params);

    @DELETE("api/v1/stop-order/cancelOrderByClientOid")
    Call> cancelStopOrderByClientOid(@Query("clientOid") String clientOid);

    @GET("api/v1/stop-order/queryOrderByClientOid")
    Call>> getStopOrderByClientOid(@Query("clientOid") String clientOid, @Query("symbol") String symbol);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy