« blib/lib/Finance/Robinhood/Options/Order.pm
↑ Summary
blib/lib/Finance/Robinhood/Options/Instrument/Historicals.pm »
| 1 | package Finance::Robinhood::Options::Chain; | ||
| 2 | 3 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 3 | ▶ | use Date::Tiny; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | has [qw[can_open_position cash_component id symbol trade_value_multiplier]] => ( is => 'ro' ); | |
| 5 | has 'expiration_dates' => ( | ||
| 6 | is => 'ro', | ||
| 7 | coerce => sub { | ||
| 8 | 0 | ▶ | [ map { Date::Tiny->from_string($_) } @{ $_[0] } ]; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 9 | } | ||
| 10 | 3 | ); | |
| 11 | has 'min_ticks' => ( | ||
| 12 | is => 'ro', | ||
| 13 | coerce => sub { | ||
| 14 | |||
| 15 | # TODO | ||
| 16 | 0 | ▶ | $_[0]; # { above_tick => "0.10", below_tick => 0.05, cutoff_price => "3.00" } |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 17 | } | ||
| 18 | 3 | ); | |
| 19 | has 'underlying_instruments' => ( | ||
| 20 | is => 'ro', | ||
| 21 | coerce => sub { | ||
| 22 | 0 | ▶ | $_[0]; # [ |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 23 | |||
| 24 | # TODO | ||
| 25 | # { | ||
| 26 | # id => "600c76b0-87a0-426f-8bd6-6b599cb49781", | ||
| 27 | # instrument => "https://api.robinhood.com/instruments/b13ae284-239a-4808-af3a-564848cf6868/", | ||
| 28 | # quantity => 100, | ||
| 29 | # }, | ||
| 30 | # ], | ||
| 31 | } | ||
| 32 | 3 | ); | |
| 33 | 3 | 1; | |