curl --location --request POST 'https://tapi-sandbox.trustology-test.com/graphql/' \
--header 'x-api-key: {{tapi-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{"query":"query GetUserProfileAndPortfolio(\n $auth: AuthenticationInput\n $start: String\n $end: String\n $period: TimePeriod\n) {\n # 1. Entry point: The User\n user(authentication: $auth) {\n firstName\n email\n \n # 2. Context: The Organisation (where trustId lives)\n organisation {\n trustId\n name\n }\n\n # 3. The Target: Portfolio\n portfolio(startDate: $start, endDate: $end, timePeriod: $period) {\n items {\n timestamp\n \n # 4. Total Value of the Portfolio at this timestamp\n total {\n value\n currency\n }\n\n # 5. Breakdown by specific assets (BTC, ETH, etc.)\n balances {\n items {\n asset {\n symbol\n name\n \n }\n amount {\n value\n currency\n }\n available {\n value\n }\n }\n }\n }\n nextToken\n }\n }\n}","variables":{"trustId":"123e4567-e89b-12d3-a456-426614174000","start":"2023-01-01T00:00:00.000Z","end":"2023-01-31T23:59:59.000Z","period":"DAILY"}}'