Skip to main content

Calendar And Clock

alpaca-trade::Client::calendar() and alpaca-trade::Client::clock() expose market-session timing data.

Implemented Methods

  • calendar: list, list_v3
  • clock: get, get_v3

Typical Request

use alpaca_trade::{Client, calendar};

let client = Client::from_env()?;
let days = client
.calendar()
.list(calendar::ListRequest {
start: Some("2026-04-01".into()),
end: Some("2026-04-30".into()),
..calendar::ListRequest::default()
})
.await?;
# let _ = days;
# Ok::<(), alpaca_trade::Error>(())

Notes

  • both current adopted v2 and v3 routes are documented in the coverage manifest
  • timestamp and time-like fields stay in their official string forms in the public model layer

Not Implemented Here

  • market-holiday forecasting beyond official responses
  • websocket time updates