WatchedValue object is returned by some [[Trading Terminal]] methods. Using this object you can get/set value and be notified when the value is changed.
Returns current value.
Sets new value.
callback
is a function to be called when the value is changedoptions
is an object with the following properties:once
- if it is true the callback will be executed only oncecallWithLast
- if it is true the callback will be executed with the previous value (if available)
Use the same function which you used in subscribe
function to unsubscribe from the updates.