INNER CODE UNIT · Python

ExecuteTradeBody

YichengYang-Ethan/oracle3 · oracle3/blinks/server.py:61

    class ExecuteTradeBody(BaseModel):
        """Request body for the execute_trade endpoint (Solana Actions spec)."""
        account: str = Field(
            ...,
            description='Wallet public key of the user initiating the trade',
        )

    app = FastAPI(
        title='Oracle3 Blinks',
        description='Solana Actions server for prediction market trading',
        version='1.0.0',
    )

    app.add_middleware(
        CORSMiddleware,
        allow_origins=['*'],
        allow_methods=['GET', 'POST', 'OPTIONS'],
        allow_headers=['*'],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…