openapi: 3.1.0 info: title: GateGPT Live API version: 1.0.0 servers: - url: https://luguog--gate4.hf.space paths: /balance: get: operationId: getBalance summary: Get live balance from Gate.io responses: '200': description: Balance response content: application/json: schema: type: object properties: balance: type: number /performance: get: operationId: getPerformance summary: Get trading PnL summary responses: '200': description: PnL summary content: application/json: schema: type: object properties: summary: type: string /log_trade: post: operationId: logTrade summary: Log a trade requestBody: required: true content: application/json: schema: type: object required: - action - contract - size - price - pnl_estimate - reason properties: action: { type: string } contract: { type: string } size: { type: number } price: { type: number } pnl_estimate: { type: number } reason: { type: string } responses: '200': description: Trade logged