MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / __from_json__

Method __from_json__

projects/Python/proto/proto.py:477–487  ·  view source on GitHub ↗
(fields)

Source from the content-addressed store, hash-verified

475
476 @staticmethod
477 def __from_json__(fields):
478 if fields is None:
479 return None
480 return Order(
481 None if "id" not in fields else fields["id"],
482 None if "symbol" not in fields else fields["symbol"],
483 None if "side" not in fields else OrderSide.__from_json__(fields["side"]),
484 None if "type" not in fields else OrderType.__from_json__(fields["type"]),
485 None if "price" not in fields else fields["price"],
486 None if "volume" not in fields else fields["volume"],
487 )
488
489 # Get the FBE type
490 @property

Callers

nothing calls this directly

Calls 2

OrderClass · 0.70
__from_json__Method · 0.45

Tested by

no test coverage detected