Function build_post
pub fn build_post(
account: &str,
req: &PlaceStopOrderRequest,
lots: i64,
) -> Result<PostStopOrderRequest, Error>Expand description
Builds the PostStopOrder request for account from a domain request. lots is the quantity in
lots (the request is in units, the caller converts with the lot size of the instrument).
The cid goes to order_id, the idempotency key. The request is checked with validate
first, so nothing invalid is built.
§Errors
[Error::Rejected] with code invalid_price, missing_limit_price or
unsupported_expiry, as validate lists.