Economic Calendar (economic_calendar)

Specify a currency to receive a list of events related to that specific currency. For example, specifying USD will return a list of USD-related events. If the currency is omitted, you will receive a list for all currencies.

economic_calendar(currency: Optional[str] = None, end_date: Optional[int] = None, start_date: Optional[int] = None, passthrough: Optional[Any] = None, req_id: Optional[int] = None) → int
Parameters:
  • currency (Optional[str]) – [Optional] Currency symbol.
  • end_date (Optional[int]) – [Optional] End date.
  • start_date (Optional[int]) – [Optional] Start date.
  • 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.economic_calendar(
    currency='USD'
    end_date=1561196696
    start_date=1561096696
)