Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

loadcnt in init_quote is madatory if history is wanted

  • Loading branch information...
commit dcd272a878cf0fb33705c043400acd1330235db3 1 parent 349c923
@clkao clkao authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/TradeSpring.pm
  2. +1 −1  lib/TradeSpring/Util.pm
View
2  lib/TradeSpring.pm
@@ -464,7 +464,7 @@ sub livespring {
tf => $tf,
bus => $pagm->bus,
pagm => $pagm,
- loadcnt => $loadcnt,
+ loadcnt => $loadcnt || 300,
on_load => sub {
my ($session, $_calc) = @_;
my $end = $session->{session_end};
View
2  lib/TradeSpring/Util.pm
@@ -70,7 +70,7 @@ sub init_quote {
$session = $msg;
if ($args{loadcnt}) {
$pagm->publish({type => 'pagm.history', code => $args{code},
- timeframe => $args{tf}, count => $args{loadcnt} || 300,
+ timeframe => $args{tf}, count => $args{loadcnt},
reply => $myself->name });
}
else {
Please sign in to comment.
Something went wrong with that request. Please try again.