kalshi2 / app.py
milaidy's picture
Update app.py
170f47d verified
raw
history blame contribute delete
356 Bytes
import os
import gradio as gr
gr.load_openapi(
openapi_spec="https://raw.githubusercontent.com/boshjerns/kalshimcp/main/kalshi-openapi.json",
base_url="https://api.elections.kalshi.com/trade-api/v2/",
paths=None,
methods=['GET', 'POST', 'PUT', 'DELETE'],
auth_token=os.getenv("OPENAPI_AUTH_TOKEN")
).launch(mcp_server=True, share=True)