"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.MarketStoreSchema=exports.MarketUpdateSchema=exports.baseMarketSchema=exports.marketSchema=void 0;const schema_1=require("@b/utils/schema"),id=(0,schema_1.baseStringSchema)("ID of the market"),currency=(0,schema_1.baseStringSchema)("Trading currency of the market",191),pair=(0,schema_1.baseStringSchema)("Trading pair of the market",191),isTrending={...(0,schema_1.baseBooleanSchema)("Indicates if the market is currently trending"),nullable:!0},isHot={...(0,schema_1.baseBooleanSchema)("Indicates if the market is considered 'hot'"),nullable:!0},metadata={type:"object",nullable:!0,properties:{precision:{type:"object",properties:{amount:(0,schema_1.baseNumberSchema)("Amount precision"),price:(0,schema_1.baseNumberSchema)("Price precision")}},limits:{type:"object",properties:{amount:{type:"object",properties:{min:(0,schema_1.baseNumberSchema)("Minimum amount"),max:(0,schema_1.baseNumberSchema)("Maximum amount",!0)}},price:{type:"object",properties:{min:(0,schema_1.baseNumberSchema)("Minimum price",!0),max:(0,schema_1.baseNumberSchema)("Maximum price",!0)}},cost:{type:"object",properties:{min:(0,schema_1.baseNumberSchema)("Minimum cost"),max:(0,schema_1.baseNumberSchema)("Maximum cost")}},leverage:{type:"object",properties:{type:(0,schema_1.baseStringSchema)("Leverage type",50,0,!0),value:(0,schema_1.baseNumberSchema)("Leverage value",!0)}}}},taker:(0,schema_1.baseNumberSchema)("Taker fee"),maker:(0,schema_1.baseNumberSchema)("Maker fee")}},status=(0,schema_1.baseBooleanSchema)("Operational status of the market");exports.marketSchema={id:id,currency:currency,pair:pair,isTrending:isTrending,isHot:isHot,metadata:metadata,status:status};exports.baseMarketSchema={id:id,currency:currency,pair:pair,isTrending:isTrending,isHot:isHot,metadata:metadata,status:status};exports.MarketUpdateSchema={type:"object",properties:{currency:currency,pair:pair,isTrending:isTrending,isHot:isHot,metadata:metadata}};exports.MarketStoreSchema={description:"Market created or updated successfully",content:{"application/json":{schema:{type:"object",properties:exports.baseMarketSchema}}}};