/* tslint:disable */ /* eslint-disable */ /** * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface ReqGetExchangeMetrics */ export interface ReqGetExchangeMetrics { /** * * @type {string} * @memberof ReqGetExchangeMetrics */ period: ReqGetExchangeMetricsPeriodEnum; /** * * @type {string} * @memberof ReqGetExchangeMetrics */ kind: ReqGetExchangeMetricsKindEnum; /** * * @type {string} * @memberof ReqGetExchangeMetrics */ filter?: ReqGetExchangeMetricsFilterEnum; /** * * @type {string} * @memberof ReqGetExchangeMetrics */ value?: string; } /** * @export */ export const ReqGetExchangeMetricsPeriodEnum = { H: 'h', D: 'd', W: 'w', M: 'm', Q: 'q', Y: 'y', All: 'all' } as const; export type ReqGetExchangeMetricsPeriodEnum = typeof ReqGetExchangeMetricsPeriodEnum[keyof typeof ReqGetExchangeMetricsPeriodEnum]; /** * @export */ export const ReqGetExchangeMetricsKindEnum = { Volume: 'volume', MakerFee: 'maker_fee', TakerFee: 'taker_fee', LiquidationFee: 'liquidation_fee', TradeCount: 'trade_count', LiquidationCount: 'liquidation_count', LiquidationVolume: 'liquidation_volume', Inflow: 'inflow', Outflow: 'outflow', TransferFee: 'transfer_fee', WithdrawFee: 'withdraw_fee', OpenInterest: 'open_interest', AccountCount: 'account_count', ActiveAccountCount: 'active_account_count', Tps: 'tps', Buyback: 'buyback' } as const; export type ReqGetExchangeMetricsKindEnum = typeof ReqGetExchangeMetricsKindEnum[keyof typeof ReqGetExchangeMetricsKindEnum]; /** * @export */ export const ReqGetExchangeMetricsFilterEnum = { ByMarket: 'byMarket' } as const; export type ReqGetExchangeMetricsFilterEnum = typeof ReqGetExchangeMetricsFilterEnum[keyof typeof ReqGetExchangeMetricsFilterEnum]; /** * Check if a given object implements the ReqGetExchangeMetrics interface. */ export function instanceOfReqGetExchangeMetrics(value: object): value is ReqGetExchangeMetrics { if (!('period' in value) || value['period'] === undefined) return false; if (!('kind' in value) || value['kind'] === undefined) return false; return true; } export function ReqGetExchangeMetricsFromJSON(json: any): ReqGetExchangeMetrics { return ReqGetExchangeMetricsFromJSONTyped(json, false); } export function ReqGetExchangeMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetExchangeMetrics { if (json == null) { return json; } return { 'period': json['period'], 'kind': json['kind'], 'filter': json['filter'] == null ? undefined : json['filter'], 'value': json['value'] == null ? undefined : json['value'], }; } export function ReqGetExchangeMetricsToJSON(value?: ReqGetExchangeMetrics | null): any { if (value == null) { return value; } return { 'period': value['period'], 'kind': value['kind'], 'filter': value['filter'], 'value': value['value'], }; }