Create a brokerage.
POST
/api/brokerages
const url = 'https://api.tradr.cloud/api/brokerages';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"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 POST \ --url https://api.tradr.cloud/api/brokerages \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "notes": "example" }'Authed. Names are unique per user. The new brokerage starts with a zeroed fee schedule; set the rates with a follow-up PUT.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
notes
string
Examplegenerated
{ "name": "example", "notes": "example"}Responses
Section titled “Responses”The created brokerage.
Validation error.
A brokerage with this name already exists.