Skip to content

Commit eea0323

Browse files
committed
Standardize some timestamp property descriptions
1 parent ec3ca48 commit eea0323

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nautilus_trader/model/orders/base.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ cdef class Order:
133133
cdef readonly uint64_t ts_accepted
134134
"""UNIX timestamp (nanoseconds) when the order was accepted or first filled (zero unless accepted or filled).\n\n:returns: `uint64_t`"""
135135
cdef readonly uint64_t ts_closed
136-
"""UNIX timestamp (nanoseconds) when the order closed (lifecycle completed).\n\n:returns: `uint64_t`"""
136+
"""UNIX timestamp (nanoseconds) when the order closed / lifecycle completed (zero unless closed).\n\n:returns: `uint64_t`"""
137137
cdef readonly uint64_t ts_last
138138
"""UNIX timestamp (nanoseconds) when the last order event occurred.\n\n:returns: `uint64_t`"""
139139

nautilus_trader/model/position.pxd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ cdef class Position:
8484
cdef readonly uint64_t ts_last
8585
"""UNIX timestamp (nanoseconds) when the last event occurred.\n\n:returns: `uint64_t`"""
8686
cdef readonly uint64_t ts_closed
87-
"""UNIX timestamp (nanoseconds) when the position was closed.\n\n:returns: `uint64_t`"""
87+
"""UNIX timestamp (nanoseconds) when the position was closed (zero unless closed).\n\n:returns: `uint64_t`"""
8888
cdef readonly uint64_t duration_ns
89-
"""The total open duration (nanoseconds).\n\n:returns: `uint64_t`"""
89+
"""The total open duration in nanoseconds (zero unless closed).\n\n:returns: `uint64_t`"""
9090
cdef readonly double avg_px_open
9191
"""The average open price.\n\n:returns: `double`"""
9292
cdef readonly double avg_px_close

0 commit comments

Comments
 (0)