UNPKG

@ledgerhq/live-common

Version:
27 lines 875 B
import { z } from "zod"; export var FearAndGreedTags; (function (FearAndGreedTags) { FearAndGreedTags["Latest"] = "FearAndGreedLatest"; })(FearAndGreedTags || (FearAndGreedTags = {})); const FearAndGreedDataSchema = z.object({ value: z.number().min(0).max(100), value_classification: z.string(), update_time: z.string(), }); const FearAndGreedStatusSchema = z.object({ timestamp: z.string(), error_code: z.union([z.number(), z.string()]), error_message: z.string(), elapsed: z.number(), credit_count: z.number(), notice: z.string().optional(), }); export const FearAndGreedResponseSchema = z.object({ data: FearAndGreedDataSchema, status: FearAndGreedStatusSchema, }); export const FearAndGreedIndexSchema = z.object({ value: z.number().min(0).max(100), classification: z.string(), }); //# sourceMappingURL=types.js.map