-
Notifications
You must be signed in to change notification settings - Fork 1
Margin Trading Accumulation
Markus Waas edited this page Jul 8, 2020
·
1 revision
The accumulation contract keeps track of all accumulated SHORT and LONG positions per trading pair a) per pool and b) per trader.
Returns (net, longestLeg, unrealized) in USD for a given trading pair and pool.
-
net
refers to the total sum of all positions for that trading pair evaluated in USD. -
longestLeg
is the maximum sum in one direction (max(netOfLongs, netOfShorts)
). -
unrealized
is the total sum of unrealized for all positions in that trading pair.
Full details can be seen at MarginFlowProtocolAccPositions.getPairPoolSafetyInfo.
Returns total unrealized in USD for a given trading pair, pool and trader.
Full details can be seen at MarginFlowProtocolAccPositions.getPairTraderUnrealized.
Returns total net in USD for a given trading pair, pool and trader.
Full details can be seen at MarginFlowProtocolAccPositions.getPairTraderNet.