Get the calculator's buying-power basis.
GET
/api/users/me/buying-power-basis
const url = 'https://api.tradr.cloud/api/users/me/buying-power-basis';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/users/me/buying-power-basisAuthed. Which account figure the position-sizing calculator caps position size against — cash (balance less the cost basis of open positions) or balance (total equity). Never null; the column defaults to cash.
Responses
Section titled “Responses”The stored basis.
Media typeapplication/json
object
basis
string
Example
{ "basis": "cash"}Authentication required.