Skip to content

Commit

Permalink
chore(): update event-driven ws api example
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagosiebler committed Jan 22, 2025
1 parent 82611aa commit cd37a1b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions examples/ws-api-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,12 @@ const logger = {
const key = process.env.API_KEY;
const secret = process.env.API_SECRET;

const testnetCreds = {
key: 'KdClhWyRVjDsnER6RW',
secret: 'rLeppmdAMZsHpdgeyFsJDjhd5mnIul3ZMet2',
testnet: true,
};

const wsClient = new WebsocketClient(
{
key: key,
secret: secret,
// testnet: true, // Whether to use the testnet environment: https://testnet.bybit.com/app/user/api-management
// demoTrading: false, // note: As of Jan 2025, demo trading does NOT support the WS API
...testnetCreds,
},
logger, // Optional: inject a custom logger
);
Expand Down

0 comments on commit cd37a1b

Please sign in to comment.