Get Trade History
GET
https://api.kucoin.com/api/v3/hf/margin/fills
domain:Spot
api-channel:Private
api-permission:General
api-rate-limit-pool:Spot
sdk-service:Margin
sdk-sub-service:Order
sdk-method-name:getTradeHistory
api-rate-limit-weight:5
Description
The returned data is sorted in descending order according to the latest update time of the order.
Tips
Request
Query Params
symbol
string
required
Example:
BTC-USDT
tradeType
enum<string>
required
Allowed values:
MARGIN_TRADEMARGIN_ISOLATED_TRADE
Example:
MARGIN_TRADE
orderId
string
optional
(If orderId is specified, please ignore the other query parameters)
side
enum<string>
optional
Allowed values:
buysell
type
enum<string>
optional
Allowed values:
limitmarket
lastId
integer <int64>
optional
lastId is used to filter data and paginate. If lastId is not entered, the default is a maximum of 100 returned data items. The return results include lastId, which can be used as a query parameter to look up new data from the next page.
Example:
254062248624417
limit
integer
optional
>= 1<= 100
Default:
20
Example:
100
startAt
integer <int64>
optional
Example:
1728663338000
endAt
integer <int64>
optional
Example:
1728692138000
Request samples
Responses
Modified at 15 days ago