UNPKG

@ledgerhq/live-common

Version:
43 lines 1.66 kB
import { z } from "zod"; export declare enum FearAndGreedTags { Latest = "FearAndGreedLatest" } declare const FearAndGreedDataSchema: z.ZodObject<{ value: z.ZodNumber; value_classification: z.ZodString; update_time: z.ZodString; }, z.core.$strip>; declare const FearAndGreedStatusSchema: z.ZodObject<{ timestamp: z.ZodString; error_code: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>; error_message: z.ZodString; elapsed: z.ZodNumber; credit_count: z.ZodNumber; notice: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export declare const FearAndGreedResponseSchema: z.ZodObject<{ data: z.ZodObject<{ value: z.ZodNumber; value_classification: z.ZodString; update_time: z.ZodString; }, z.core.$strip>; status: z.ZodObject<{ timestamp: z.ZodString; error_code: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>; error_message: z.ZodString; elapsed: z.ZodNumber; credit_count: z.ZodNumber; notice: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>; export declare const FearAndGreedIndexSchema: z.ZodObject<{ value: z.ZodNumber; classification: z.ZodString; }, z.core.$strip>; export type FearAndGreedData = z.infer<typeof FearAndGreedDataSchema>; export type FearAndGreedStatus = z.infer<typeof FearAndGreedStatusSchema>; export type FearAndGreedResponse = z.infer<typeof FearAndGreedResponseSchema>; export type FearAndGreedIndex = z.infer<typeof FearAndGreedIndexSchema>; export type FearAndGreedLevel = "fear" | "cautious" | "neutral" | "optimistic" | "greedy"; export {}; //# sourceMappingURL=types.d.ts.map