# HTTPS Agent Configuration ```typescript import https from 'https'; import { StockOptions } from '@binance/stock-options'; const httpsAgent = new https.Agent({ rejectUnauthorized: true, }); const configurationRestAPI = { apiKey: 'your-api-key', apiSecret: 'your-api-secret', httpsAgent, }; const client = new StockOptions({ configurationRestAPI }); client.restAPI .optionExpirations({ underlyingSymbol: 'NVDA' }) .then((res) => res.data()) .then((data) => console.log(data)) .catch((err) => console.error(err)); ``` For proxies that require an HTTPS CONNECT tunnel, see [HTTPS CONNECT tunneling](./proxy.md#https-connect-tunneling).