@@ 24-26 (lines=3) @@ | ||
21 | */ |
|
22 | public function manualMapping($result) |
|
23 | { |
|
24 | foreach ($result as $txId => $trade) { |
|
25 | $this->trades[] = new Trade($trade["ordertxid"], $trade["pair"], $trade["time"], $trade["type"], $trade["ordertype"], $trade["price"], $trade["cost"], $trade["fee"], $trade["vol"], $trade["margin"], $trade["misc"], $trade["closing"]); |
|
26 | } |
|
27 | } |
|
28 | ||
29 | /** |
@@ 29-31 (lines=3) @@ | ||
26 | public function manualMapping($result) |
|
27 | { |
|
28 | $this->count = $result["count"]; |
|
29 | foreach ($result["trades"] as $trade) { |
|
30 | $this->trades[] = new Trade($trade["ordertxid"], $trade["pair"], $trade["time"], $trade["type"], $trade["ordertype"], $trade["price"], $trade["cost"], $trade["fee"], $trade["vol"], $trade["margin"], $trade["misc"], $trade["closing"]); |
|
31 | } |
|
32 | } |
|
33 | ||
34 | /** |