5 use autotrade
::MarketTools
;
8 use autotrade
::RateHistory
;
10 my $db = autotrade
::SQL
::db_connect
();
11 my $rh = autotrade
::RateHistory
->new(dbh
=> $db);
16 my ($t, $buy, $amount) = split(/,/);
17 $t - $lt > 20 or next;
19 $buy = str_curr
($buy);
20 print "$t $buy ($amount)\n";
21 $rh->record($t, $buy, $buy);