Get the authenticated user's trade-data consent flag.
GET
/api/advisor/trade-data-consent
const url = 'https://api.tradr.cloud/api/advisor/trade-data-consent';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.tradr.cloud/api/advisor/trade-data-consentReturns whether the user has consented to the advisor reading their stored trade data (REQ-9.1). Defaults to false for a user who has never set it. Response: { consent: boolean }.
Responses
Section titled “Responses”{ consent: boolean }.