When building an API to place trades, there are a number of input fields that are essential, as well as some that are nice to have. Below are a couple great examples of trading APIs that have been successfully used in production for years: https://docs.alpaca.markets/reference/postorder

https://documentation.tradier.com/brokerage-api/trading/place-equity-order

Prerequisite:

Nice to have but not essential:

Request:

Essential Input Parameters: