« blib/lib/Finance/Robinhood/Account/InstantEligibility.pm
↑ Summary
blib/lib/Finance/Robinhood/Equity/Instrument.pm »
| 1 | package Finance::Robinhood::Account::MarginBalances; | ||||||||||||
| 2 | 3 | ▶ | use Moo; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | 3 | ▶ | use DateTime::Tiny; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 3 | has [ | |||||||||||
| 5 | qw[cash | ||||||||||||
| 6 | cash_available_for_withdrawal cash_held_for_options_collateral cash_held_for_orders | ||||||||||||
| 7 | day_trade_buying_power day_trade_buying_power_held_for_orders day_trade_ratio | ||||||||||||
| 8 | gold_equity_requirement margin_limit marked_pattern_day_trader_date outstanding_interest | ||||||||||||
| 9 | overnight_buying_power overnight_buying_power_held_for_orders overnight_ratio | ||||||||||||
| 10 | start_of_day_dtbp start_of_day_overnight_buying_power | ||||||||||||
| 11 | unallocated_margin_cash uncleared_deposits | ||||||||||||
| 12 | unsettled_debit unsettled_funds | ||||||||||||
| 13 | ] | ||||||||||||
| 14 | ] => ( is => 'ro' ); | ||||||||||||
| 15 | has [qw[created_at updated_at]] => ( | ||||||||||||
| 16 | is => 'ro', | ||||||||||||
| 17 | coerce => sub { | ||||||||||||
| 18 | 0 | ▶ | $_[0] // return; | ||||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Condition0%0/2
$_[0] // (return)
MC/DC0%0/1
$_[0] // (return)
$_[0]
Truth table0%0/2
A
A= $_[0]
| |||||||||||||
| 19 | 0 | $_[0] =~ s'Z$''; | |||||||||||
| 20 | |||||||||||||
| 21 | # BUG: DateTime::Tiny cannot handle sub-second values. | ||||||||||||
| 22 | 0 | $_[0] =~ s'\..+$''; | |||||||||||
| 23 | 0 | DateTime::Tiny->from_string( $_[0] ); | |||||||||||
| 24 | } | ||||||||||||
| 25 | 3 | ); | |||||||||||
| 26 | 3 | 1; | |||||||||||