| 157 | } |
| 158 | |
| 159 | OpenMode GetOrderOpenMode(const Value &jsonValue) { |
| 160 | OpenMode ret = OpenMode::PRIVATE; |
| 161 | if (!kOpenModeHelper.Parse(jsonValue.get_str(), ret)) |
| 162 | throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("order_open_mode=%s is invalid", |
| 163 | jsonValue.get_str())); |
| 164 | return ret; |
| 165 | } |
| 166 | |
| 167 | OpenMode GetOrderOpenMode(const Array ¶ms, const size_t index) { |
| 168 |
no test coverage detected