account APIv1.4.0

TimeDuration

A complex type that specifies a period of time using a specified time-measurement unit.

Types that use TimeDuration

Calls that use TimeDuration

Fields

Field
Type
Description
unit
Required in the TimeDuration container.

A time-measurement unit used to specify a period of time.

Time-measurement units can be years, months, days, hours, minutes, and other time units (see TimeDurationUnitEnum for a complete list of possible units). The unit is applied to the number in the value field to define a span of time. See the containing object for details and call GeteBayDetails in the Trading API to get the allowable values for the specific object you're configuring.
value
Required in the TimeDuration container.

An amount of time, as measured by the time-measurement units specified in the unit field.

Supported values for this field vary according to the object using the time duration. See the containing object for details and call GeteBayDetails in the Trading API to get the allowable values for the specific object you're configuring.