Reduce encode/decode juggling of trading