Package org.knowm.xchange.kucoin.service
Interface FillAPI
@Path("/api/v1/fills")
@Produces("application/json")
public interface FillAPI
Based on code by chenshiwei on 2019/1/10.
-
Method Summary
Modifier and TypeMethodDescriptionqueryTrades
(String apiKey, si.mazi.rescu.ParamsDigest signature, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiPassphrase, String symbol, String orderId, String side, String type, Long startAt, Long endAt, Integer pageSize, Integer currentPage) Get a list of recent fills.
-
Method Details
-
queryTrades
@GET KucoinResponse<Pagination<TradeResponse>> queryTrades(@HeaderParam("KC-API-KEY") String apiKey, @HeaderParam("KC-API-SIGN") si.mazi.rescu.ParamsDigest signature, @HeaderParam("KC-API-TIMESTAMP") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @HeaderParam("KC-API-PASSPHRASE") String apiPassphrase, @QueryParam("symbol") String symbol, @QueryParam("orderId") String orderId, @QueryParam("side") String side, @QueryParam("type") String type, @QueryParam("startAt") Long startAt, @QueryParam("endAt") Long endAt, @QueryParam("pageSize") Integer pageSize, @QueryParam("currentPage") Integer currentPage) throws IOException Get a list of recent fills.- Parameters:
symbol
- [optional] Limit list of fills to this orderIdorderId
- [optional] Limit list of fills to this orderIdside
- [optional] buy or selltype
- [optional] limit, market, limit_stop or market_stopstartAt
- [optional] Start time. unix timestamp calculated in milliseconds, the creation time queried shall posterior to the start time.endAt
- [optional] End time. unix timestamp calculated in milliseconds, the creation time queried shall prior to the end time.pageSize
- The page size.currentPage
- The page to select.- Returns:
- Trades.
- Throws:
IOException
-