Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function testSuccessEndpoint() |
||
16 | { |
||
17 | $bybitApi = (new BybitAPI()) |
||
18 | ->setCredentials('https://api-testnet.bybit.com', 'fL02oi5qo8i2jDxlum', 'Ne1EE35XTprIWrId9vGEAc1ZYJTmodA4qFzZ'); |
||
19 | |||
20 | /** @var IResponseInterface $endpointResponse */ |
||
21 | $endpointResponse = $bybitApi->privateEndpoint(PlaceOrder::class, |
||
22 | (new PlaceOrderRequest()) |
||
23 | ->setSymbol('BTCUSDT') |
||
24 | ->setOrderType(EnumOrderType::LIMIT) |
||
25 | ->setSide(EnumSide::BUY) |
||
26 | ->setQty('0.01') |
||
27 | ->setPrice(68100) |
||
28 | )->execute(); |
||
29 | |||
30 | echo "Return code: {$endpointResponse->getReturnCode()} \n"; |
||
31 | echo "Return message: {$endpointResponse->getReturnMessage()} \n"; |
||
32 | |||
33 | /** @var PlaceOrderResponse $orderInfo */ |
||
34 | $orderInfo = $endpointResponse->getResult(); |
||
35 | echo "Order ID: {$orderInfo->getOrderId()}\n"; |
||
36 | echo "Order Link ID: {$orderInfo->getOrderLinkId()}\n"; |
||
37 | |||
45 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths