Conditions | 2 |
Paths | 2 |
Total Lines | 20 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 19 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | 1 | public function manualMapping($result) |
|
22 | { |
||
23 | 1 | foreach ($result as $txId => $position) { |
|
24 | 1 | $this->positions[] = new OpenPositionModel( |
|
25 | 1 | $txId, |
|
26 | 1 | $position["ordertxid"], |
|
27 | 1 | $position["pair"], |
|
28 | 1 | $position["time"], |
|
29 | 1 | $position["type"], |
|
30 | 1 | $position["ordertype"], |
|
31 | 1 | $position["cost"], |
|
32 | 1 | $position["fee"], |
|
33 | 1 | $position["vol"], |
|
34 | 1 | $position["vol_closed"], |
|
35 | 1 | $position["margin"], |
|
36 | 1 | $position["value"], |
|
37 | 1 | $position["net"], |
|
38 | 1 | $position["misc"], |
|
39 | 1 | $position["oflags"], |
|
40 | 1 | $position["viqc"] |
|
41 | 1 | ); |
|
54 |