const { RestClientV5 } = require('bybit-api'); // Initialize the client with testnet mode const client = new RestClientV5({ testnet: true, key: 'YOUR_API_KEY', secret: 'YOUR_API_SECRET', }); // Example parameters const params = { orderId: '1900004704665923584', // Replace with your order ID }; // Call the function client .getP2POrderDetail(params) .then((response) => { console.log('Response:', response); }) .catch((error) => { console.error('Error:', error); });