action_to_call

Function action_to_call 

Source
pub fn action_to_call(
    action: &Action,
    market: &Market,
    trade_account_id: &str,
    accounts_registry_id: Option<&[u8; 32]>,
) -> Result<(CallArg, Value), O2Error>
Expand description

Convert a high-level Action to a low-level CallArg and JSON representation.

This is the typed counterpart to building calls manually. It handles price/quantity scaling internally using the Market.