1007 B
1007 B
An instance of a Trade
/LocalTrade
object is given either a value for leverage
or a value for borrowed
, but not both, on instantiation/update with a short/long.
- If given a value for
leverage
, then theamount
value of theTrade
/Local
object is multiplied by theleverage
value to obtain the new value foramount
. The borrowed value is also calculated from theamount
andleverage
value - If given a value for
borrowed
, then theleverage
value is calculated fromborrowed
andamount
For shorts, the currency which pays the interest fee for the borrowed
currency is purchased at the same time of the closing trade (This means that the amount purchased in short closing trades is greater than the amount sold in short opening trades).
For longs, the currency which pays the interest fee for the borrowed
will already be owned by the user and does not need to be purchased
The interest fee is paid following the closing trade, or simultaneously depending on the exchange