MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / testProvider

Function testProvider

ui/src/api/openbb.ts:10–17  ·  view source on GitHub ↗
(provider: string, key: string)

Source from the content-addressed store, hash-verified

8
9export const marketDataApi = {
10 async testProvider(provider: string, key: string): Promise<{ ok: boolean; error?: string }> {
11 const res = await fetch('/api/market-data/test-provider', {
12 method: 'POST',
13 headers,
14 body: JSON.stringify({ provider, key }),
15 })
16 return res.json()
17 },
18
19 async hubStatus(baseUrl?: string): Promise<HubStatus> {
20 const qs = baseUrl ? `?baseUrl=${encodeURIComponent(baseUrl)}` : ''

Callers

nothing calls this directly

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected