| Conditions | 4 |
| Paths | 5 |
| Total Lines | 29 |
| Code Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function manualMapping(array $arr) |
||
| 22 | { |
||
| 23 | foreach ($arr as $assetPair => $data) { |
||
| 24 | $fees = []; |
||
| 25 | foreach ($data["fees"] as $feeData) { |
||
| 26 | $fees[] = new FeeModel($feeData[0], $feeData[1]); |
||
| 27 | } |
||
| 28 | $feesMaker = []; |
||
| 29 | foreach ($data["fees_maker"] as $feeData) { |
||
| 30 | $feesMaker[] = new FeeModel($feeData[0], $feeData[1]); |
||
| 31 | } |
||
| 32 | $this->tradableAssets[] = new AssetPairModel( |
||
| 33 | $assetPair, |
||
| 34 | $data["altname"], |
||
| 35 | $data["aclass_base"], |
||
| 36 | $data["base"], |
||
| 37 | $data["aclass_quote"], |
||
| 38 | $data["quote"], |
||
| 39 | $data["lot"], |
||
| 40 | $data["pair_decimals"], |
||
| 41 | $data["lot_decimals"], |
||
| 42 | $data["lot_multiplier"], |
||
| 43 | $data["leverage_buy"], |
||
| 44 | $data["leverage_sell"], |
||
| 45 | $fees, |
||
|
|
|||
| 46 | $feesMaker, |
||
| 47 | $data["fee_volume_currency"], |
||
| 48 | $data["margin_call"], |
||
| 49 | $data["margin_stop"] |
||
| 50 | ); |
||
| 62 |