Get Closed Trades

get
Get all closed trades for a user

https://api.futureswap.gg/prod/api/v1/exchange/0x8fA7490cedB7207281a5ceabee12773046dE664E/closedtrades/USER_ADDRESS
This endpoint allows you to get free cakes.
Request
Response
Request
Path Parameters
USER_ADDRESS
required
string
Specific user address
Response
200: OK
Retreived trades successfully
{
"trades": [
{
"type": "short",
"onChainId": "0xc1122774f719ad780e68cd011ce34d194f6d14c0ad044c0ad6baff3eac0fef01",
"tradeId": "0xc1122774f719ad780e68cd011ce34d194f6d14c0ad044c0ad6baff3eac0fef01",
"isLiquidated": false,
"leverage": "7591316853873752848",
"assetTokenBorrowed": "3723463425658301709",
"tradeValue": "1513525476819102630178",
"openPrice": "483420889163632163851",
"closePrice": "406483239875389408099",
"collateral": "199375879831279832273",
"creationTime": 1603667612,
"totalReturn": "278751759662559664546",
"profitLoss": {
"isProfitable": true,
"value": "79375879831279832273",
"percent": "398121778313660636"
},
"state": {
"status": "mined"
}
},
]
}
404: Not Found
{ "message": "None found"}

‚Äč