curl --location --request GET 'https://api.kucoin.com/api/ua/v1/position/history?symbol=XBTUSDTM&startAt&endAt&lastId&pageSize'{
"code": "200000",
"data": {
"items": [
{
"symbol": "XBTUSDTM",
"closeId": "556",
"marginMode": "CROSS",
"side": "LONG",
"entryPrice": "66895.7",
"closePrice": "62889.8",
"maxSize": "5",
"avgClosePrice": "62889.8",
"leverage": "25",
"realizedPnL": "-20.27523235",
"fee": "0.3893565",
"tax": "0",
"fundingFee": "0.14362415",
"closingTime": 1771940011060000000,
"creationTime": 1771495960604000000
}
],
"lastId": 502
}
}