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

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

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

import com.kucoin.sdk.rest.request.OrderCreateApiRequest;
import com.kucoin.sdk.rest.response.KucoinResponse;
import com.kucoin.sdk.rest.response.OrderCancelResponse;
import com.kucoin.sdk.rest.response.OrderCreateResponse;
import com.kucoin.sdk.rest.response.OrderResponse;
import com.kucoin.sdk.rest.response.Pagination;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by chenshiwei on 2019/1/10.
 */
public interface OrderAPIRetrofit {

    @POST("api/v1/orders")
    Call> createOrder(@Body OrderCreateApiRequest opsRequest);

    @DELETE("api/v1/orders/{orderId}")
    Call> cancelOrder(@Path("orderId") String orderId);

    @DELETE("api/v1/orders")
    Call> cancelOrders(@Query("symbol") String symbol);

    @GET("api/v1/orders/{orderId}")
    Call> getOrder(@Path("orderId") String orderId);

    @GET("api/v1/orders")
    Call>> queryOrders(@Query("symbol") String symbol,
                                                                @Query("side") String side,
                                                                @Query("type") String type,
                                                                @Query("status") String status,
                                                                @Query("startAt") Long startAt,
                                                                @Query("endAt") Long endAt,
                                                                @Query("pageSize") int pageSize,
                                                                @Query("currentPage") int currentPage);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy