json_encode_timedelta#
API documentation for tradeexecutor.utils.timestamp.json_encode_timedelta Python function.
- json_encode_timedelta(val)[source]#
Encode timestamp objects as number of seconds passed
- Parameters:
val (datetime.timedelta | None) –
- Return type:
float | None