Versions Compared

Key

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

...

$0.50 / 1000, $1 minimum per ticket (Per Execution or Per Order)

No Format
max(1, $quantity * 0.0005);

$0.50 / 1000, $10 maximum per ticket (Per Execution or Per Order)

No Format
min(10, $quantity * 0.0005);

$0.50 / 1000, $1 minimum, $10 maximum per ticket (Per Execution or Per Order)

No Format
max(1, min(10, $quantity * 0.0005));

$1 per execution (Per Execution or Per Order)

No Format
return 1;

$2.95 per ticket (Per Execution or Per Order)

No Format
return 2.95;

$0.50 / 1000 Equities, 1.65 / contract options (Per Execution or Per Order)

No Format
$instrumentType = getInstrumentType($symbol);
if($instrumentType == INSTRUMENT_TYPE_OPTION) {
   return $quantity * 1.65;
} else {
   return $quantity * 0.0005;
}

Different rate for symbols that have Exchange code of OBB or PNK (Per Execution type or Per Order)

No Format
if($listingExchange == 'OBB' || $listingExchange == 'PNK') {
 $fee = bcmul(bcmul($quantity, $price), '0.001'); // This is charging 10 basis pts of gross value
}
else $fee = bcmul($quantity, '0.001') ; // This is the per share rate for non-OBB/PNK activity
return $fee;

Different rate for Select Symbols (Per Execution type or Per Order)

No Format
if(in_array($symbol, array('AA','BAC','C','MSFT','QQQ'))) {
   return bcmul($quantity, '0.001');
   } else return bcmul($quantity, '0.0015');

...