MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / GetOrderType

Function GetOrderType

src/rpc/rpcdex.cpp:110–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108namespace RPC_PARAM {
109
110 OrderType GetOrderType(const Value &jsonValue) {
111 OrderType ret = OrderType::ORDER_TYPE_NULL;
112 if (!kOrderTypeHelper.Parse(jsonValue.get_str(), ret))
113 throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("order_type=%s is invalid",
114 jsonValue.get_str()));
115 return ret;
116 }
117
118 OrderSide GetOrderSide(const Value &jsonValue) {
119 OrderSide ret = OrderSide::ORDER_SIDE_NULL;

Callers 1

gendexoperatorordertxFunction · 0.85

Calls 2

JSONRPCErrorFunction · 0.85
ParseMethod · 0.80

Tested by

no test coverage detected