Set the calculator's buying-power basis.
PUT
/api/users/me/buying-power-basis
const url = 'https://api.tradr.cloud/api/users/me/buying-power-basis';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"basis":"cash"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.tradr.cloud/api/users/me/buying-power-basis \ --header 'Content-Type: application/json' \ --data '{ "basis": "cash" }'Authed. cash caps position size at what the account can actually deploy; balance caps at total equity, which overstates fundable capital by whatever is already tied up in open positions. Affects only the cap — the risk budget stays riskPercent × balance either way. Changes nothing stored beyond the preference itself.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
basis
required
string
Responses
Section titled “Responses”The stored basis.
Not one of cash | balance.
Authentication required.