Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

call new_raw_fsa instead of new_fsa

  • Loading branch information...
commit dd4f0df471b918924b477ee67e1ad0c99ead4235 1 parent f9b8580
@hcchien hcchien authored clkao committed
Showing with 7 additions and 2 deletions.
  1. +7 −2 xt/smoke/DBO.pm
View
9 xt/smoke/DBO.pm
@@ -65,8 +65,9 @@ method run {
method initial_stp { 0.02 }
-method mk_order($dir) {
+method mk_order($dir, $type) {
local $self->{direction} = $dir;
+ $type ||= 'stp';
my $evl = 22;
my $bb = $self->ne_bb;
@@ -75,7 +76,11 @@ method mk_order($dir) {
my $stp_price = $bb->current_value * ( 1 - $self->initial_stp * $dir);
my $qty = 1;
- my $fsa = $self->new_fsa($dir, $bb->current_value, $qty, $stp_price);
+ my $order = { dir => $dir,
+ price => $bb->current_value,
+ type => $type,
+ qty => $qty };
+ my $fsa = $self->new_raw_fsa($order, $stp_price);
$fsa->start;
push @{$self->fsa}, $fsa;
}
Please sign in to comment.
Something went wrong with that request. Please try again.