合约交易中收益如何计算?
多仓收益=面值*开仓张数/开仓价格-面值*开仓张数/平仓价格
空仓收益=面值*开仓张数/平仓价格-面值*开仓张数/开仓价格
敲黑板,一句话总结:
经过结算的收益,收益计算思路为结算前收益+结算后收益。
未经过结算的收益,直接带入公式计算即可。
案例详解:
第一种,持仓没有经过结算:
页面中的开仓均价是0.233,平仓均价是0.2361,开仓数量是1张。
多仓收益=(合约面值/开仓均价-合约面值/平仓均价)*张数=(10/0.233-10/0.2361)*1=0.5635xrp
第二种,持仓经过结算:
经过结算的平仓记录显示的收益是按照结算基准价计算的,页面平仓时间是9月27号15:53:31,查询9月26号16点的结算基准价是0.2447。
账单页面显示的多仓收益=(合约面值/开仓均价-合约面值/平仓均价)*张数=(10/0.2447-10/0.2435)*1=-0.2208
仓位真实的收益=(10/0.237-10/0.2435)*1=1.126331
第三种,持仓经过结算,然后又加仓:
经过结算后平仓页面的收益是以结算基准价为开仓均价来计算收益的。
先通过保证金公式计算出第一笔的保证金。
第一笔固定保证金=合约面值/开仓均价/杠杆*张数=10/0.28/10*1=3.57142857
第二笔固定保证金=10/0.2741/10*1=3.6483035388
两笔保证金相加=7.2197318088544,通过保证金公式计算出开仓均价。
7.2197318088544=10/开仓均价/10*2,开仓均价=0.277
因为第一笔经过了结算,所以第一笔需要以结算基准价0.276来计算
第一笔结算后的保证金-10/0.276/10*1=3.6231884
两笔保证金相加=7.2714919445971
7.2714919445971=10/加仓后结算基准价/10*2,加仓后的结算基准价=0.275
账单页面显示的收益=(合约面值/结算基准价-合约面值/平仓均价)*张数
=(10/0.275-10/0.2567)*2=-5.18468675
持仓真实的收益=(合约面值/开仓均价-合约面值/平仓均价)*张数
=(10/0.277-10/0.2567)*2=-5.709793420798
© 2024 OKX. This article may be reproduced or distributed in its entirety, or excerpts of 100 words or less of this article may be used, provided such use is non-commercial. Any reproduction or distribution of the entire article must also prominently state: “This article is © 2024 OKX and is used with permission.” Permitted excerpts must cite to the name of the article and include attribution, for example “Article Name, [author name if applicable], © 2024 OKX.” No derivative works or other uses of this article are permitted.
Information about: digital currency exchange services is prepared by OKX Australia Pty Ltd (ABN 22 636 269 040); derivatives and margin by OKX Australia Financial Pty Ltd (ABN 14 145 724 509, AFSL 379035) and is only intended for wholesale clients (within the meaning of the Corporations Act 2001 (Cth)); and other products and services by the relevant OKX entities which offer them (see Terms of Service). Information is general in nature and should not be taken as investment advice, personal recommendation or an offer of (or solicitation to) buy any crypto or related products. You should do your own research and obtain professional advice, including to ensure you understand the risks associated with these products, before you make a decision about them. Past performance is not indicative of future performance - never risk more than you are prepared to lose. Read our Terms of ServiceTerms of Serviceand Risk Disclosure Statement for more information.