{
"entityAccountId": "A6U9PbCi6iOu4HLR0p8cB5kJ9lVae1gM",
"sourceId": "Jv2hcymvvqdcnBFDEXhLy7H4tUKGks01",
"timezone":"UTC",
"list": [
{
"datetime": "2024-08-01 15:59:00",
"gainLossID": "123458",
"type": "FUTURE_UNREALIZED",
"asset":"ETHUSDT-PERP1",
"positionSide":"LONG",
"gainLossAsset":"USDT",
"gainLossAmount":700,
"memo":""
},
{
"datetime": "2024-08-01 16:00:00",
"gainLossID": "123458",
"type": "FUTURE_REALIZED",
"asset":"ETHUSDT-PERP1",
"positionSide":"LONG",
"gainLossAsset":"USDT",
"gainLossAmount":800,
"memo":""
}
]
}
curl --location --request POST 'https://openapi.elven.com/open/v3/transaction/gainLoss' \
--header 'ELVEN-API-KEY;' \
--header 'ELVEN-API-TIMESTAMP;' \
--header 'ELVEN-API-SIGN;' \
--header 'Content-Type: application/json' \
--data-raw '{
"entityAccountId": "A6U9PbCi6iOu4HLR0p8cB5kJ9lVae1gM",
"sourceId": "Jv2hcymvvqdcnBFDEXhLy7H4tUKGks01",
"timezone":"UTC",
"list": [
{
"datetime": "2024-08-01 15:59:00",
"gainLossID": "123458",
"type": "FUTURE_UNREALIZED",
"asset":"ETHUSDT-PERP1",
"positionSide":"LONG",
"gainLossAsset":"USDT",
"gainLossAmount":700,
"memo":""
},
{
"datetime": "2024-08-01 16:00:00",
"gainLossID": "123458",
"type": "FUTURE_REALIZED",
"asset":"ETHUSDT-PERP1",
"positionSide":"LONG",
"gainLossAsset":"USDT",
"gainLossAmount":800,
"memo":""
}
]
}'
{
"status": "success",
"data": {
"sourceId": 1008,
"entityId": 371,
"type": "API",
"sourceName": "test-sourcename",
"address": "",
"cardNumber": "",
"exchangeUserId": "",
"apiKey": "",
"apiSecret": "",
"entityFileId": 0,
"passphrase": "",
"purpose": "OPERATING",
"platformId": 14,
"transactionOption": null,
"syncLog": "",
"syncStatus": "WAITING",
"transactionCount": 0,
"dateEndpoint": null,
"updatedAt": "2023-09-27T08:32:32.559Z",
"createdAt": "2023-09-27T08:32:32.559Z",
"timeExceeded": false,
"regeneration": false,
"deletedAt": null,
"entityAccount": null
}
}