MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / verify

Method verify

plugin/bundles/alpha_vantage/bundle.py:8–20  ·  view source on GitHub ↗
(self, credentials: BundleCredentials)

Source from the content-addressed store, hash-verified

6
7class AlphaVantage(BundleHandler):
8 async def verify(self, credentials: BundleCredentials):
9 symbol: str = "NVDA"
10
11 alpha_vantage_api_key: str = credentials.credentials.get("ALPHA_VANTAGE_API_KEY")
12
13 url = f'https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol={symbol}&interval=5min&apikey={alpha_vantage_api_key}'
14
15 async with ClientSession() as session:
16 async with session.get(url=url, proxy=CONFIG.PROXY) as response:
17 if response.status == 200:
18 pass
19 else:
20 raise_credentials_validation_error()
21
22

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected