nepse-api-helper
Version:
a wrapper to use nepse api easily since they set up weird restrictions
10 lines (9 loc) • 510 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RETRY_DELAY_MS = exports.MAX_RETRIES = exports.REQUEST_TIMEOUT_MS = exports.SECURITY_BRIEF_TTL_MS = exports.TOKEN_TTL_MS = exports.BASE_URL = void 0;
exports.BASE_URL = `https://nepalstock.com.np`;
exports.TOKEN_TTL_MS = 5 * 60 * 1000; // 5 minutes
exports.SECURITY_BRIEF_TTL_MS = 60 * 60 * 1000; // 1 hour
exports.REQUEST_TIMEOUT_MS = 10000; // 10 seconds
exports.MAX_RETRIES = 3;
exports.RETRY_DELAY_MS = 1000; // 1 second