public class FillAPIAdapter extends AuthRetrofitAPIImpl<FillAPIRetrofit> implements FillAPI
apiKey, apiKeyVersion, baseUrl, passPhrase, secret| 构造器和说明 |
|---|
FillAPIAdapter(String baseUrl,
String apiKey,
String secret,
String passPhrase,
Integer apiKeyVersion) |
| 限定符和类型 | 方法和说明 |
|---|---|
Pagination<TradeResponse> |
listFills(String symbol,
String orderId,
String side,
String type,
String tradeType,
Long start,
Long end,
int pageSize,
int currentPage)
Get a list of recent fills.
|
HFTradeResponse |
queryHFTrades(String symbol,
String orderId,
String side,
String type,
Long startAt,
Long endAt,
Long lastId,
Integer limit)
This endpoint can be used to obtain a list of the latest HF transaction details.
|
List<TradeResponse> |
queryLimitFillsList()
Request via this endpoint to get a list of 1000 fills in the last 24 hours.
|
Pagination<TradeResponse> |
queryLimitFillsPageList(int pageSize,
int currentPage)
Request via this endpoint to get a list of 1000 fills in the last 24 hours.
|
getAPIImplexecuteSync, getApiKey, getBaseUrl, getErrorResponse, getPassPhrase, getSecret, setApiKey, setBaseUrl, setPassPhrase, setSecretpublic Pagination<TradeResponse> listFills(String symbol, String orderId, String side, String type, String tradeType, Long start, Long end, int pageSize, int currentPage) throws IOException
FillAPIlistFills 在接口中 FillAPIsymbol - [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_stoptradeType - TRADE, MARGIN_TRADEstart - [optional] Start time. unix timestamp calculated in milliseconds, the creation time queried shall posterior to the start time.end - [optional] End time. unix timestamp calculated in milliseconds, the creation time queried shall prior to the end time.IOExceptionpublic Pagination<TradeResponse> queryLimitFillsPageList(int pageSize, int currentPage) throws IOException
FillAPIqueryLimitFillsPageList 在接口中 FillAPIIOExceptionpublic List<TradeResponse> queryLimitFillsList() throws IOException
FillAPIqueryLimitFillsList 在接口中 FillAPIIOExceptionpublic HFTradeResponse queryHFTrades(String symbol, String orderId, String side, String type, Long startAt, Long endAt, Long lastId, Integer limit) throws IOException
FillAPIqueryHFTrades 在接口中 FillAPIsymbol - Only returns order information for the specified trading pairorderId - [optional] Look up the transaction details pertaining to the order id(IforderId is specified,please ignore the other query parameters)side - [optional] buy(Buy) or sell(Sell)type - [optional] Order type: limit(limit order), market(market order)startAt - [optional] Start time(ms),puts a restriction on the transaction(creation) time for the transaction recordsendAt - [optional] End time(ms),puts a restriction on the transaction(creation) time of the transaction recordslastId - [optional] The id of the last data item from the previous batch, defaults to obtaining the latest datalimit - [optional] Default100,maximum 200IOExceptionCopyright © 2023. All rights reserved.