pub fn request(
order: &OrderAny,
params: Option<&Params>,
shard: u32,
) -> Result<CreateOrderRequest, OrderDeniedReason>Expand description
Builds the V2 limit request the execution client sends for one order.
Prices use at most four decimal places and counts at most two. A GTD expiry must be a future whole Unix second on the realtime clock. The returned request is not sent and does not reserve funds.
ยงErrors
Returns an error if the order type, time in force, quantity mode, instruction combination, expiry, ticker, submission parameter, or exact price or count is unsupported.