/* 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 AccountTradeStats */ export interface AccountTradeStats { /** * * @type {number} * @memberof AccountTradeStats */ daily_trades_count: number; /** * * @type {number} * @memberof AccountTradeStats */ daily_volume: number; /** * * @type {number} * @memberof AccountTradeStats */ weekly_trades_count: number; /** * * @type {number} * @memberof AccountTradeStats */ weekly_volume: number; /** * * @type {number} * @memberof AccountTradeStats */ monthly_trades_count: number; /** * * @type {number} * @memberof AccountTradeStats */ monthly_volume: number; /** * * @type {number} * @memberof AccountTradeStats */ total_trades_count: number; /** * * @type {number} * @memberof AccountTradeStats */ total_volume: number; } /** * Check if a given object implements the AccountTradeStats interface. */ export function instanceOfAccountTradeStats(value: object): value is AccountTradeStats { if (!('daily_trades_count' in value) || value['daily_trades_count'] === undefined) return false; if (!('daily_volume' in value) || value['daily_volume'] === undefined) return false; if (!('weekly_trades_count' in value) || value['weekly_trades_count'] === undefined) return false; if (!('weekly_volume' in value) || value['weekly_volume'] === undefined) return false; if (!('monthly_trades_count' in value) || value['monthly_trades_count'] === undefined) return false; if (!('monthly_volume' in value) || value['monthly_volume'] === undefined) return false; if (!('total_trades_count' in value) || value['total_trades_count'] === undefined) return false; if (!('total_volume' in value) || value['total_volume'] === undefined) return false; return true; } export function AccountTradeStatsFromJSON(json: any): AccountTradeStats { return AccountTradeStatsFromJSONTyped(json, false); } export function AccountTradeStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountTradeStats { if (json == null) { return json; } return { 'daily_trades_count': json['daily_trades_count'], 'daily_volume': json['daily_volume'], 'weekly_trades_count': json['weekly_trades_count'], 'weekly_volume': json['weekly_volume'], 'monthly_trades_count': json['monthly_trades_count'], 'monthly_volume': json['monthly_volume'], 'total_trades_count': json['total_trades_count'], 'total_volume': json['total_volume'], }; } export function AccountTradeStatsToJSON(value?: AccountTradeStats | null): any { if (value == null) { return value; } return { 'daily_trades_count': value['daily_trades_count'], 'daily_volume': value['daily_volume'], 'weekly_trades_count': value['weekly_trades_count'], 'weekly_volume': value['weekly_volume'], 'monthly_trades_count': value['monthly_trades_count'], 'monthly_volume': value['monthly_volume'], 'total_trades_count': value['total_trades_count'], 'total_volume': value['total_volume'], }; }