at present, we use excel calcperiod functions for currency pairs to calculate tenors (date start and date end). We are currently building a tool that will use websocket api. How can we download such data via api? we need date start and end date for tenors for different currency pairs.