s->_rh->_delete($s->{url});
return $res->is_success || Finance::Robinhood::Error->new(%{$res->json});
}
sub _test_delete {
t::Utility::stash('ELEMENT') // skip_all();
todo("Add something
s->_rh,
%{$res->json})
: Finance::Robinhood::Error->new(%{$res->json});
}
sub _test_instrument {
t::Utility::stash('ELEMENT') // skip
%{$res->json})
: Finance::Robinhood::Error->new(
$res->is_server_error ? (details => $res->message) : $res->json);
}
sub _test_watchlist {
t::Ut
%{$res->json}
) if $res->is_success;
Finance::Robinhood::Error->new(
$res->is_server_error ? (details => $res->message) : $res->json);
}
sub _test_pair_ids
%{$res->json})
: Finance::Robinhood::Error->new(
$res->is_server_error ? (details => $res->message) : $res->json);
}
sub _test_account {
t::Util
p;
#ddx $res;
#ddx $res->json;
#die;
if ($res->is_success) {
my $json = $res->json;
$s->_next_page($json->{next});
push @push, map {
}
: $_
: ()
} @{$json->{results}};
}
else { # Trouble! Let's not try another page
$s->_n
x::Order->new(_rh => $s->_rh, %{$res->json})
: Finance::Robinhood::Error->new(
$res->is_server_error ? (details => $res->message) : $res->json);
}
sub _test_submit {
t::Utili
od::User->new(_rh => $s->_rh, %{$res->json})
: Finance::Robinhood::Error->new(
$res->is_server_error ? (details => $res->message) : $res->json);
}
sub _test_user {
t::Utility
od::User->new(_rh => $s->_rh, %{$res->json})
: Finance::Robinhood::Error->new(
$res->is_server_error ? (details => $res->message) : $res->json);
}
sub _test_user {
t::Utility
od::User->new(_rh => $s->_rh, %{$res->json})
: Finance::Robinhood::Error->new(
$res->is_server_error ? (details => $res->message) : $res->json);
}
sub _test_user {
t::Utility
%{$res->json})
: Finance::Robinhood::Error->new(
$res->is_server_error ? (details => $res->message) : $res->json);
}
sub _test_account {
t::Util
e::Robinhood::Error->new(
$res->is_server_error ? (details => $res->message) : $res->json);
}
=head2 C<reload( )>
$order->reload();
Reloads the data for this order from the API ser
x::Order->new(_rh => $s->_rh, %{$res->json})
: Finance::Robinhood::Error->new(
$res->is_server_error ? (details => $res->message) : $res->json);
}
sub _test_reload {
t::Utili
x::Quote->new(_rh => $s->_rh, %{$res->json})
: Finance::Robinhood::Error->new(
$res->is_server_error ? (details => $res->message) : $res->json);
}
sub _test_quote {
t::Utilit
%{$res->json})
: Finance::Robinhood::Error->new(
$res->is_server_error ? (details => $res->message) : $res->json);
}
sub _test_historicals {
t::
%{$res->json})
: Finance::Robinhood::Error->new(
$res->is_server_error ? (details => $res->message) : $res->json);
}
sub _test_additional_info {
%{$res->json})
: Finance::Robinhood::Error->new(
$res->is_server_error ? (details => $res->message) : $res->json);
}
sub _test_basic_info {
t::U
%{$res->json})
: Finance::Robinhood::Error->new(
$res->is_server_error ? (details => $res->message) : $res->json);
}
sub _test_employment {
t::U