import apiClient from './client';
import type { PerformanceStats } from '../lib/types';

export interface PerformanceParams {
  qualified_only?: boolean;
}

export function getPerformance(params?: PerformanceParams) {
  return apiClient
    .get<PerformanceStats>('trades/performance', { params })
    .then((r) => r.data);
}
