Each account in Dcoin will have a separate "contract asset account". Because Dcoin currently only supports forward perpetual contract transactions based on USDT trading and settlement, traders need to deposit in this account. The following contract asset information can be seen on the "Assets-Contract Assets" page in the platform APP.
Contract account structure description
Wallet balance: transfer in-transfer out + realized profit and loss.
Realized profit and loss: the profit and loss caused by the user's closed position.
Unrealized profit and loss: the profit and loss generated by the user's current position, also called floating profit and loss.
Entrusted margin: the funds that the contract trader needs to freeze when issuing an order.
Maintenance margin: The minimum amount of funds that contract investors need to keep in their account in order to hold a certain contract position.
Available funds: current users can use funds.
Profit and loss calculation
In the positive perpetual contract of Dcoin, we define the current marked price as P0 and the average trader's price as P1. The trader's profit and loss calculation method:
a) If it is a buy/long: profit and loss Pnl = (P0-P1) * contract quantity *1* contract face value-transaction fee.
b) If it is selling/shorting: Pnl = (P0-P1) * contract quantity *-1* contract face value-transaction fee.
List the calculation methods of profit and loss:
a) Suppose a trader buys 1,000 BTC/USDT contracts at an average price of 7,000 USDT. The current contract mark price is 8,000 USDT, and the contract face value is 0.01 BTC/contract. Without factoring in handling fees:
The trader's unrealized profit = (8,000-7,000) * 1,000 * 1 * 0.01 = 10000 USDT
b) Suppose a trader sells 1,000 BTC/USDT forward contracts at an average price of 7,000USDT, and then closes the position when the marked price is 6,000USDT. The face value of the contract is 0.01BTC/contract, excluding the handling fee factor in the case of:
The trader's realized profit = (6,000-7,000) * 1,000 * -1 * 0.01 = 10000 USDT
When calculating unrealized profit and loss, the marked price is used instead of the latest market price. Traders can view real-time realized profit and loss and unrealized profit and loss in the position area at any time.