mirror of
https://github.com/multipleof4/KalBot.git
synced 2026-03-17 14:01:02 +00:00
Fix: make Kalshi API base configurable
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import crypto from 'crypto';
|
import crypto from 'crypto';
|
||||||
|
|
||||||
const KALSHI_API_BASE = 'https://api.elections.kalshi.com';
|
const DEFAULT_KALSHI_API_BASE = 'https://api.elections.kalshi.com';
|
||||||
|
const KALSHI_API_BASE = (process.env.KALSHI_API_BASE || DEFAULT_KALSHI_API_BASE).trim().replace(/\/+$/, '');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Signs a Kalshi API request using RSA-PSS with SHA-256.
|
* Signs a Kalshi API request using RSA-PSS with SHA-256.
|
||||||
|
|||||||
Reference in New Issue
Block a user