cURL
curl --request POST \ --url https://api.copin.io/public/position/statistic/pnl-statistics \ --header 'Content-Type: application/json' \ --data ' { "accounts": [ { "account": "<string>", "protocol": "<string>" } ], "statisticType": "<string>" } '
{ "{account_address}": { "date": [ {} ], "realisedPnl": [ {} ], "unrealisedPnl": [ {} ], "fee": [ {} ] } }
Retrieve pnl position statistics
Authorization {token}
x-api-key {api-key}
Show properties
curl --request POST \ --url "https://api.copin.io/public/position/statistic/pnl-statistics" \ --header 'Content-Type: application/json' \ --header 'x-api-key: u9jpUfrTAukk45QjWVg7DBtQYxdGgy' \ --data '{ "accounts": [ { "account": "0xd649A0876453Fc7626569B28E364262192874E18", "protocol": "KILOEX_BASE" } ], "statisticType": "D15" }'
{ "0xd649A0876453Fc7626569B28E364262192874E18": { "date": [ "2025-04-12T00:00:00.000Z", "2025-04-13T00:00:00.000Z", "2025-04-14T00:00:00.000Z", "2025-04-15T00:00:00.000Z", "2025-04-16T00:00:00.000Z", "2025-04-17T00:00:00.000Z", "2025-04-18T00:00:00.000Z", "2025-04-19T00:00:00.000Z", "2025-04-20T00:00:00.000Z", "2025-04-21T00:00:00.000Z", "2025-04-22T00:00:00.000Z", "2025-04-23T00:00:00.000Z", "2025-04-24T00:00:00.000Z", "2025-04-25T00:00:00.000Z", "2025-04-26T00:00:00.000Z", "2025-04-27T00:00:00.000Z", "2025-04-28T00:00:00.000Z", "2025-04-29T00:00:00.000Z", "2025-04-30T00:00:00.000Z", "2025-05-01T00:00:00.000Z", "2025-05-02T00:00:00.000Z", "2025-05-03T00:00:00.000Z", "2025-05-04T00:00:00.000Z", "2025-05-05T00:00:00.000Z", "2025-05-06T00:00:00.000Z", "2025-05-07T00:00:00.000Z", "2025-05-08T00:00:00.000Z", "2025-05-09T00:00:00.000Z", "2025-05-10T00:00:00.000Z", "2025-05-11T00:00:00.000Z", "2025-05-12T00:00:00.000Z" ], "realisedPnl": [ 0, 0, 3323232.953125, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], "unrealisedPnl": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], "fee": [ 0, 0, 47.00442682206631, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] } }