 fetch(`${API_URL}/bet`, {
                method: 'POST',
                headers: {
                    'Content-Type': 'application/json',
                    'Authorization': `Key ${apiKey}`
                },
                body: JSON.stringify({ contractId, outcome, amount })
            });
            const result = await response.json();
            if (!response.ok) {
                throw new Error(result.message || 'Failed to place bet');
            }
            return result;
        }

    