Serialization API¶
JSON serialization and file operations.
Serialization API¶
JSON serialization and file operations.
Generic Serialization¶
to_dict¶
from_dict¶
JSON Operations¶
to_json¶
to_json ¶
Serialize a supported qlcore object (position/portfolio) to a JSON string.
from_json¶
from_json ¶
Deserialize a JSON string produced by to_json back into the requested type.
File Operations¶
save_to_file¶
save_to_file ¶
Serialize object to JSON and write it to disk.
load_from_file¶
load_from_file ¶
Load JSON from disk and deserialize into the requested type.
Domain Objects¶
encode_domain_object¶
encode_domain_object ¶
Encode domain object to JSON-serializable dict.
decode_domain_object¶
decode_domain_object ¶
Decode domain object from JSON-serializable dict.