19 lines
380 B
JavaScript
19 lines
380 B
JavaScript
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',
|
|
});
|
|
|
|
// Call the function
|
|
client
|
|
.getP2PUserInfo()
|
|
.then((response) => {
|
|
console.log('Response:', response);
|
|
})
|
|
.catch((error) => {
|
|
console.error('Error:', error);
|
|
});
|