The endpoint { PUT api/v2/account/accounts/action/setAccountTradeBlock } – Accepts an array of account.id, isDoNotBuySell, isCustodialRestriction. The call to Eclipse will toggle trade block in Eclipse and sync to Orion Connect.
id {INT}– needs to be the Id from the Eclipse account table. Common mistake would be to pass the accountId from Orion Connect but these are not the same.
isDoNotBuySell {BOOL} – true will trade block the account and false will unblock the account
isCustodialRestriction {BOOL} – true indicates that the trades block is due to a custodial restriction. If setting isDoNotBuySell to false then pass false for isCustodialRestriction
Request body:
[
{
"id": 1,
"isDoNotBuySell": true,
"isCustodialRestriction": true
},
{
"id": 2,
"isDoNotBuySell": true,
"isCustodialRestriction": false
}
]