Pair A/B
A is called base currency/token; B is called quote currency/token. Currently quote currency for contracts is USD.
Contracts are traded by base currency/token. Equity, Unrealized P/L, Realized P/L, etc. are quoted by base currency/token.

Open Price

[Base contract]

For the positions opened on day

Open price = (Contract volume of filled price 1 + Contract volume of filled price 2 +…...) / (Contract volume of filled price 1/ Filled price 1 + Contract volume of filled price 2/ Filled price 2 + ……)

For the positions opened on previous day

Open price = Settled price on yesterday

For the positions opened on day and previous day

Open price = (Contract volume of yesterday’s position + Contract volume of filled price 1 + Contract volume of filled price 2 +…...) / (Contract volume of yesterday’s position / Settled price on yesterday + Contract volume of filled price 1/ Filled price 1 + Contract volume of filled price 2/ Filled price 2 + ……)

[Quote Contract]
For the positions opened on day

Open price = (Filled price 1 * Contract volume of filled price 1 +(Filled price 2 * Contract volume of filled price 2 +…...) / (Contract volume of filled price 1 + Contract volume of filled price 2 + ……)

For the positions opened on previous day

Open price = Settled price on yesterday

For the positions opened on day and previous day

Open price = (Settled price on yesterday * Contract volume of yesterday’s position + Filled price 1 * Contract volume of filled price 1 + Filled price 2 * Contract volume of filled price 2 +…...) / (Contract volume of yesterday’s position + Contract volume of filled price 1 + Contract volume of filled price 2 + ……)

Frozen
The assets occupied by open orders.

Available
Assets can be used to open contracts in contract account
Available = Equity – Margin – Frozen – Unrealized P/L – realized P/L

Max Open
Maximum contracts that can be opened using available.
Max Open = Available * Leverage Ratio / ((Contract Multiplier / Order Price) * (1+Taker Fee))
Tips: It calculates according to order price entered by customer; if not entered, order price is replaced by last price.

Open Value

During trading time, Open Value = Open Interest * Contract Multiplier / Last Price.

During settlement, Open Value = Open Interest * Contract Multiplier / Last Settlement Price

Total
Filled contract value quoted by base currency/token. Total = Vol * Contract Multiplier / Fill Price

Equity
Equity = Account Balance + Unrealized P/L
Account Equity = Account Equity Previous Day + Net Deposit + Realized P&L + Unrealized P&L –Fees on day Initial Account Equity = Initial Deposit

Account Balance
Total assets in contract account. Realized P/L will be added to account balance after closing.
Unrealized P/L will be added to account balance after settlement/delivery.

Realized P/L
P/L of closed positions before settlement/delivery. Realized P/L is total realized P/L of all contracts with different expirations.

For the based contract, the computation of realized P/L is:

Long positionsRealized P/L = (1/ Open price - 1 / Close price) * Number of Contracts Closed * Contract Multiplier

Short positionsRealized P/L = (1 / Close price - 1/ Open price) * Number of Contracts Closed * Contract Multiplier

For example
a user holds 100 conts of BTC seasonal long contract (cont value is 100 USD), open price is 5000 USD/BTC. if the close price is 4000 USD/BTC, the realized profit and loss of these long position is (1/5000 - 1/4000) *100*100 = -0.5BTC

Realized P&L will be added to the account balance directly when positions are closed.

For quoted contract, the computation of realized P/L is:

Long positionsRealized P/L = (Close price - Open price) * Number of Contracts Closed*Contract multiplier
Short positionsRealized P/L = (Open price - Close price) * Number of Contracts Closed* Contract multiplier

For example:

a user holds 100 conts of BNB seasonal long contract (cont value is 1BNB), open price is 30 BNB/USD. if the close price is 40 BNB/USD, the realized profit and loss of these long position is (40 -30) *100 = 1000.

Realized P&L will be added to the account balance directly when positions are closed.


Unrealized P/L
the profit and loss that happened when user has positions. the price of unrealized profit and loss moving with the latest price.

For the based contract, the computation of unrealized P/L is:

Long positionsUnrealized P/L = (1/Open Price - 1/Last Price)*Long Positions*Contract Multiplier

Short positions: Unrealized P/L = (1/Last Price - 1/Open Price)*Short Positions*Contract Multiplier

For example:
A user holds 100 conts of seasonal long contract (cont value is 100 USD), open price is 5000 USD/BTC. if the close price is 8000 USD/BTC, the unrealized profit and loss of these long position is (1/5000 - 1/8000) *100*100 = 0.75BTC

For the quoted contract, the computation of unrealized P/L is:

Long positions:Unrealized P/L = (Last Price - Open Price) *Long Positions* Contract multiplier

Short positions: Unrealized P/L = (Open Price - Last Price) *Short Positions* Contract multiplier

For example:
A user holds 100 conts of BNB seasonal long contract, open price is 30 BNB/USD. The close price is 40 BNB/USD, the realized profit and loss of these long position is (40 - 30) *100 = 1000.