I looked in the Docs and Google searched but I could find no results for how to do this. I need to know because I sometimes get "Invalid" orders when I din't have enough equity.

Also is there a way to send a MarketOrder by percent of equity or total price rather than number of shares to buy? I have also looked for this but haven't found anything, so is it impossible or just not documented?