_limitPricethe price for the limit order.
_stopPricethe price for the stop order.
_stopPricethe price for the stop limit order.
_limitPricethe order must also satisfy the limit conditions in order to be valid
_trailrepresents the absolute value of the trail between the price of the asset and the trigger(stop) price. This will clearly be different for different assets.
_trailPctThis number represents the trail value as a percentage of the asset price (must be between 0 and 1)
_trailis exactly similar to the trailing stop market orders
_gapwill specify the gap between the trailing stop price and the trailing limit price.
_trailPctis exactly similar to the trailing stop market orders
_gapPctwill specify the gap between the trailing stop price and the trailing limit price as a percentage.
order_idis the id of the order you are attempting to change.
_newLimitare functionally similar to the trail and gap parameters discussed above.
_reserveIndexis used by the contract to verify previous prices of assets in order to update trailing prices. The ClearingHouse contract keeps a store of previous prices from ReserveSnapshotted. These prices can be queries using