Update Contract History (contract_update_history)

Request for contract update history.

Auth Scope(s): read

contract_update_history(contract_id: int, limit: Optional[Union[int, float, Decimal]] = None, passthrough: Optional[Any] = None, req_id: Optional[int] = None) → int
Parameters:
  • contract_id (int) – Internal unique contract identifier.
  • limit (Optional[Union[int, float, Decimal]]) – [Optional] Maximum number of historical updates to receive.
  • passthrough (Optional[Any]) – [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.
  • req_id (Optional[int]) – [Optional] Used to map request to response.
Returns:

req_id

Return type:

int

Example

binary.api.contract_update_history(
    contract_id=123
)