Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
$totalCost = ($latestLongPositionValue - $longUnrealizedProfitLoss) + ($latestShortPositionValue + $shortUnrealizedProfitLoss);
return $totalCost > 0 ? bcround(bcmul($totalCost, '-0.0000575'), 2) : 0;


$50 Inactivity Fee after 90 days of inactivity (note that it does not charge a fee on an account that has NEVER traded):

No Format
$daysOfInactivity = $mostRecentTradeDate ? dateDiff($mostRecentTradeDate, $date) : 0;
return $daysOfInactivity && $daysOfInactivity % 90 == 0 ? -50 : 0;


$50 Inactivity Fee after 45 days from Activate date :

No Format
$daysOfInactivity = $mostRecentTradeDate ? dateDiff($activationDate, $date) : 0;
return $daysOfInactivity && $daysOfInactivity % 45 == 0 ? -50 : 0;