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

com.kucoin.sdk.rest.interfaces.FillAPI Maven / Gradle / Ivy

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

import com.kucoin.sdk.rest.response.Pagination;
import com.kucoin.sdk.rest.response.TradeResponse;

import java.io.IOException;

/**
 * Created by chenshiwei on 2019/1/9.
 */
public interface FillAPI {

    /**
     * Get a list of recent fills.
     *
     * @param symbol      [optional] Limit list of fills to this orderId
     * @param orderId     [optional] Limit list of fills to this orderId
     * @param side        [optional] buy or sell
     * @param type        [optional] limit, market, limit_stop or market_stop
     * @param startAt     [optional] Start time. unix timestamp calculated in milliseconds, the creation time queried shall posterior to the start time.
     * @param endAt       [optional] End time. unix timestamp calculated in milliseconds, the creation time queried shall prior to the end time.
     * @param pageSize
     * @param currentPage
     * @return Trades.
     */
    Pagination listFills(String symbol, String orderId, String side, String type,
                                        Long startAt, Long endAt, int pageSize, int currentPage) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy