Spot Cost Price

Published on Aug 29, 2024Updated on Aug 14, 20242 min read

欧易于2024年8月29号0点 UTC 开始上线现货成本价,包括以下两种计算方式

 
Average Cost Price
Cumulative Cost Price
Definition
Average cost price is the average price at which you buy spot
Cumulative cost price is the cumulative price at which you buy and sell spot
Cost Price
(Average cost price before last buy × Amount + Price of last buy × Amount) / Net buying amount
(Cumulative buying value – Cumulative selling value) / Net buying amount
PnL
(Last price – Cost price) × Net buying amount
Net buying amount × Last price – Cumulative buying value + Cumulative selling value
PnL Ratio
(Last price – Cost price) / Cost price
PnL / (Cumulative buying value – Cumulative selling value)
Recommended Use Case
Primarily used to assist in trading decisions, determining when to buy and sell
Primarily used to assist in trading decisions, determining when to sell

假设之前不持有ETH, 第1天买入2个ETH,买入价格为3000,此时最新价为3500

 

平均成本价
净买入数量
最新价
收益
收益率
3000
2
 
3500
1000 = (3500-3000)*2
16.67% = (3500 - 3000)/3000 * 100%
累计成本价
净买入数量
最新价
收益
收益率
3000
2
3500
1000 = 3500 * 2 - 3000 * 2 + 0
16.67% = 1000 / (3000 * 2 - 0)

第2天卖出1个ETH,卖出价格为3500,此时最新价为4000

平均成本价 净买入数量 最新价 收益 收益率
3000 1 4000

1000 

= (4000-3000)*1

33.3% 

= (4000 - 3000)/3000 * 100%

累计成本价 净买入数量 最新价 收益 收益率

2500

= (2*3000 - 1*3500)/1

1 4000

1500 

= 1*4000 - 2*3000 + 1*3500

60% 

= 1500 / (2*3000 - 1*3500) * 100%

第3天买入1个ETH,买入价格为4000,此时最新价为4500

平均成本价 净买入数量 最新价 收益 收益率
3500 = (1*3000 + 1*4000)/ 2 2 4500 1000 = (4500 - 3500) * 1

28.6%

= (4500 - 3500)/3500 * 100%

累计成本价 净买入数量 最新价 收益 收益率
3250= (2*3000+1*4000 - 1*3500)/2 2 4500 2500 = 2*4500 - (2*3000+1*4000) + 1*3500 38.5% = 2500 / (2*3000+1*4000 - 1*3500 ) * 100%

注:

  1. 现货成本价不计算稳定币和法币

  2. 数据范围从2024年8月29号 0点UTC开始,此前持有并未卖出的资产,不会纳入计算范围。