Edit a brokerage or its fee schedule.
PUT
/api/brokerages/{id}
const url = 'https://api.tradr.cloud/api/brokerages/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"feeSchedule":{"optionsMaxPerFill":"example","optionsMinPerFill":"example","optionsPerContractCommission":"example","optionsPerContractExchangeFee":"example","stockMaxPerFill":"example","stockMinPerFill":"example","stockPerShareCommission":"example"},"name":"example","notes":"example"}'};
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/brokerages/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --data '{ "feeSchedule": { "optionsMaxPerFill": "example", "optionsMinPerFill": "example", "optionsPerContractCommission": "example", "optionsPerContractExchangeFee": "example", "stockMaxPerFill": "example", "stockMinPerFill": "example", "stockPerShareCommission": "example" }, "name": "example", "notes": "example" }'Authed. Every field is optional; feeSchedule is merged, so you can send a single rate. Fee values are non-negative decimal strings. System brokerages are read-only.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
feeSchedule
Any subset of the fee fields. Each is a non-negative decimal string.
object
optionsMaxPerFill
string
optionsMinPerFill
string
optionsPerContractCommission
string
optionsPerContractExchangeFee
string
stockMaxPerFill
string
stockMinPerFill
string
stockPerShareCommission
string
name
string
notes
string
Examplegenerated
{ "feeSchedule": { "optionsMaxPerFill": "example", "optionsMinPerFill": "example", "optionsPerContractCommission": "example", "optionsPerContractExchangeFee": "example", "stockMaxPerFill": "example", "stockMinPerFill": "example", "stockPerShareCommission": "example" }, "name": "example", "notes": "example"}Responses
Section titled “Responses”The updated brokerage.
Validation error.
System brokerages cannot be modified.
No such brokerage for this user.
A brokerage with this name already exists.