function mapOrdersToCsvLine(order) {
    return `${format(order.date, "yyyy-MM-dd HH:mm:ss.SSS")},${order.orderNumber},${order.pair.toUpperCase()},${order.type.toUpperCase()},${order.orderPrice},${order.orderAmount},${order.avgTradingPrice},${order.filled},${order.total},${order.status}`
}
@param {{
date: string,
market: string,
type: string,
price: number,
amount: number,
total: number,
fee: number,
feeCoin: string,
}} trades 
@returns {string}