diff --git a/app/views/shared/_list.html.erb b/app/views/shared/_list.html.erb
index 7f3f8c1..6207675 100644
--- a/app/views/shared/_list.html.erb
+++ b/app/views/shared/_list.html.erb
@@ -10,7 +10,7 @@
<% url = get_list_url(source_type, ch_remote_params(params, h[:sort])) %>
<%= link_to "#{h[:name]}", url, remote: true, class: "#{params[:sort] == h[:sort] ? 'text-primary' : ''}" %>
<% end %>
- <% if h[:sort].in?(["roi", "margin_ratio"]) %>
+ <% if h[:sort].in?(["roi", "margin_ratio", "average_durations"]) %>
?
<% end %>
diff --git a/app/views/synced_transactions/_list.html.erb b/app/views/synced_transactions/_list.html.erb
index abcce74..1731551 100644
--- a/app/views/synced_transactions/_list.html.erb
+++ b/app/views/synced_transactions/_list.html.erb
@@ -19,10 +19,10 @@
<%= h.event_time.strftime('%Y-%m-%d %H:%M:%S') %> |
<%= h.origin_symbol %> |
<%= h.trade_type == 'buy' ? '买入' : '卖出' %> |
- <%= h.cost_price.round(4) %> <%= h.fee_symbol %> |
+ <%= h.cost_price.round(4) %> <%= h.fee_symbol %> |
<%= h.qty.abs.round(4) %> |
<%= h.total_cost.round(4) %> <%= h.fee_symbol %> |
- <%= h.price.round(4) %> <%= h.fee_symbol %> |
+ <%= h.price.round(4) %> <%= h.fee_symbol %> |
<%= h.amount.abs.round(4) %> <%= h.fee_symbol %> |
<%= h.fee.round(4) %> <%= h.fee_symbol %> |
<%= "#{h.revenue.round(4)} #{h.fee_symbol}" %> |
diff --git a/config/locales/zh-CN.yml b/config/locales/zh-CN.yml
index 821b29a..0371aa6 100644
--- a/config/locales/zh-CN.yml
+++ b/config/locales/zh-CN.yml
@@ -17,6 +17,7 @@ zh-CN:
total_revenue: (买入数量-卖出数量)* 当前价格 + 卖出总价 - 买入成本
total_roi: 总收益 / 总买入成本
margin_ratio: 空单为(当前价 - 最低价)/ 最低价,多单为(最高价 - 当前价)/ 当前价
+ average_durations: 未平仓投入总持仓时间 / 未平仓投入数量
contract_trading:
sell: 多
buy: 空