banking.v1.BookService
Place an order for the caller. Limit orders carry a `price` on the policy's tick; market orders leave it empty and are priced by the hub from the best opposite quote ± the policy's slippage, then run as an IOC limit at that price (an empty opposite side is FAILED_PRECONDITION). `size` is on the policy's lot.
Changed onRefusals: book_open = false, or the caller below invest — FAILED_PRECONDITION; a post-only (alo) order that would cross, or one that would trade against the caller's own resting order — INVALID_ARGUMENT, nothing recorded; an insufficient available balance or holding — INVALID_ARGUMENT.
Idempotent by client_order_id, unique per caller: a retry of a timed-out call returns the order the id already names. The same id for a DIFFERENT order is ALREADY_EXISTS.
post/banking.v1.BookService/PlaceOrder
Request
- The document declares no server URL.
- Auth: none required
Headers
Connect-Protocol-Version1 required
Define the version of the Connect protocol
Connect-Timeout-Msnumber
Define the timeout, in ms
Request body
Response
Success
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking