{
"provider": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"is_open": true,
"next_open": "2023-11-07T05:31:56Z",
"next_close": "2023-11-07T05:31:56Z",
"provider_fields": {}
}{
"message": "<string>",
"domain": "<string>",
"provider": "<string>",
"details": "<unknown>"
}{
"message": "<string>",
"domain": "<string>",
"provider": "<string>",
"details": "<unknown>"
}Alpaca
get_clock
Return the current Alpaca market clock.
GET
/
tools
/
alpaca
/
get_clock
{
"provider": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"is_open": true,
"next_open": "2023-11-07T05:31:56Z",
"next_close": "2023-11-07T05:31:56Z",
"provider_fields": {}
}{
"message": "<string>",
"domain": "<string>",
"provider": "<string>",
"details": "<unknown>"
}{
"message": "<string>",
"domain": "<string>",
"provider": "<string>",
"details": "<unknown>"
}alpaca_get_clock
tools = trading.alpaca(
api_key=os.environ["ALPACA_KEY"],
api_secret=os.environ["ALPACA_SECRET"],
model="openai",
paper=True,
minimal=True,
include=["alpaca_get_clock"],
)
include/exclude: filter which tools are exposed (use full names likealpaca_get_clock).minimal: omitproviderandprovider_fieldswhenTrue.paper: use Alpaca paper trading instead of live trading.
Body
application/json
This is a request to obtain information. Your API keys are required.
Response
Clock (OpenTools trading schema).
Trading provider identifier. Omitted when minimal=True.
Current provider timestamp at the time the clock was queried.
Whether the market is currently open.
Timestamp of the next market open.
Timestamp of the next market close.
Additional provider-specific fields. Omitted when minimal=True.
⌘I