Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions check_connection.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import os
from clients import get_authenticated_client # adjust if the helper name differs


def main() -> None:
"""
Simple helper that verifies we can reach the Kalshi API
using the current environment configuration.
"""
client = get_authenticated_client()
try:
status = client.get_exchange_status()
except Exception as exc: # pragma: no cover - helper script
print("Failed to reach Kalshi API:")
print(repr(exc))
raise SystemExit(1)

print("Kalshi exchange status response:")
print(status)


if __name__ == "__main__":
main()