@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $bidList = $this->bid; |
92 | 92 | |
93 | 93 | if (!empty($bids)) { |
94 | - array_map(function ($bid) use ($bidList) { |
|
94 | + array_map(function($bid) use ($bidList) { |
|
95 | 95 | $bidList->push(ResponseDtoBuilder::make(OrderBookPriceItemResponse::class, $bid)); |
96 | 96 | }, $bids); |
97 | 97 | } |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $askList = $this->ask; |
113 | 113 | |
114 | 114 | if (!empty($asks)) { |
115 | - array_map(function ($ask) use ($askList) { |
|
115 | + array_map(function($ask) use ($askList) { |
|
116 | 116 | $askList->push(ResponseDtoBuilder::make(OrderBookPriceItemResponse::class, $ask)); |
117 | 117 | }, $asks); |
118 | 118 | } |
@@ -98,7 +98,7 @@ |
||
98 | 98 | */ |
99 | 99 | public function setInterval(string $interval): self |
100 | 100 | { |
101 | - $this->interval = StringHelper::clearInterval($interval) . "min"; |
|
101 | + $this->interval = StringHelper::clearInterval($interval)."min"; |
|
102 | 102 | return $this; |
103 | 103 | } |
104 | 104 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | $list = new EntityCollection(); |
21 | 21 | |
22 | 22 | if (!empty($data['list'])) { |
23 | - array_map(function ($item) use ($list) { |
|
23 | + array_map(function($item) use ($list) { |
|
24 | 24 | $list->push(ResponseDtoBuilder::make(GetTradingFeeRateResponseItem::class, $item)); |
25 | 25 | }, $data['list']); |
26 | 26 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | $list = new EntityCollection(); |
20 | 20 | |
21 | 21 | if (!empty($data['list'])) { |
22 | - array_map(function ($item) use ($list) { |
|
22 | + array_map(function($item) use ($list) { |
|
23 | 23 | $list->push(ResponseDtoBuilder::make(WalletBalanceResponseItem::class, $item)); |
24 | 24 | }, $data['list']); |
25 | 25 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | public function testSuccessEndpoint() |
13 | 13 | { |
14 | - $bybit = (new BybitAPI())->setCredentials('https://api-testnet.bybit.com','fL02oi5qo8i2jDxlum', 'Ne1EE35XTprIWrId9vGEAc1ZYJTmodA4qFzZ'); |
|
14 | + $bybit = (new BybitAPI())->setCredentials('https://api-testnet.bybit.com', 'fL02oi5qo8i2jDxlum', 'Ne1EE35XTprIWrId9vGEAc1ZYJTmodA4qFzZ'); |
|
15 | 15 | |
16 | 16 | $response = $bybit->privateEndpoint(WalletBalance::class, (new WalletBalanceRequest()))->execute(); |
17 | 17 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | $list = new EntityCollection(); |
20 | 20 | |
21 | 21 | if (!empty($data['list'])) { |
22 | - array_map(function ($item) use ($list) { |
|
22 | + array_map(function($item) use ($list) { |
|
23 | 23 | $list->push(ResponseDtoBuilder::make(CancelAllOrderResponseItem::class, $item)); |
24 | 24 | }, $data['list']); |
25 | 25 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | public function testSuccessEndpoint() |
15 | 15 | { |
16 | - $bybit = (new BybitAPI())->setCredentials('https://api-testnet.bybit.com','fL02oi5qo8i2jDxlum', 'Ne1EE35XTprIWrId9vGEAc1ZYJTmodA4qFzZ'); |
|
16 | + $bybit = (new BybitAPI())->setCredentials('https://api-testnet.bybit.com', 'fL02oi5qo8i2jDxlum', 'Ne1EE35XTprIWrId9vGEAc1ZYJTmodA4qFzZ'); |
|
17 | 17 | |
18 | 18 | $response = $bybit->privateEndpoint(CancelAllOrder::class, (new CancelAllOrderRequest())->setSymbol('BTCUSDT'))->execute(); |
19 | 19 |
@@ -244,8 +244,8 @@ |
||
244 | 244 | ->setLastPriceOnCreated($data['lastPriceOnCreated']) |
245 | 245 | ->setCloseOnTrigger($data['closeOnTrigger']) |
246 | 246 | ->setTpslMode($data['tpslMode']) |
247 | - ->setTpLimitPrice((float)$data['tpLimitPrice']) |
|
248 | - ->setSlLimitPrice((float)$data['slLimitPrice']) |
|
247 | + ->setTpLimitPrice((float) $data['tpLimitPrice']) |
|
248 | + ->setSlLimitPrice((float) $data['slLimitPrice']) |
|
249 | 249 | ->setSmpType($data['smpType']) |
250 | 250 | ->setSmpGroup($data['smpGroup']) |
251 | 251 | ->setSmpOrderId($data['smpOrderId']); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $list = new EntityCollection(); |
35 | 35 | |
36 | 36 | if (!empty($data['list'])) { |
37 | - array_map(function ($item) use ($list) { |
|
37 | + array_map(function($item) use ($list) { |
|
38 | 38 | $list->push(ResponseDtoBuilder::make(GetOpenOrdersResponseItem::class, $item)); |
39 | 39 | }, $data['list']); |
40 | 40 | } |