Fix predict proxy schema and error messages

This commit is contained in:
Marko Djordjevic 2026-02-18 23:38:17 +01:00
parent 508d267078
commit 328476a581
2 changed files with 18 additions and 4 deletions

View file

@ -14,8 +14,8 @@ const CandleSchema = z.object({
});
const PredictRequestSchema = z.object({
pair: z.string().min(1),
timeframe: z.string().min(1),
pair: z.string().min(1).optional(),
timeframe: z.string().min(1).optional(),
candles: z.array(CandleSchema),
});