mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
delete biztoc (#7523)
This commit is contained in:
@@ -55,7 +55,6 @@ openbb-mcp-server = { path = "./extensions/mcp_server", develop = true, markers
|
||||
|
||||
# Community dependencies
|
||||
openbb-alpha-vantage = { path = "./providers/alpha_vantage", optional = true, develop = true }
|
||||
openbb-biztoc = { path = "./providers/biztoc", optional = true, develop = true }
|
||||
openbb-cboe = { path = "./providers/cboe", optional = true, develop = true }
|
||||
openbb-deribit = { path = "./providers/deribit", optional = true, develop = true }
|
||||
openbb-ecb = { path = "./providers/ecb", optional = true, develop = true }
|
||||
|
||||
14
openbb_platform/providers/biztoc/README.md
vendored
14
openbb_platform/providers/biztoc/README.md
vendored
@@ -1,14 +0,0 @@
|
||||
# OpenBB Biztoc Provider
|
||||
|
||||
This extension integrates the Biztoc data provider
|
||||
into the OpenBB Platform.
|
||||
|
||||
## Installation
|
||||
|
||||
To install the extension, run the following command in this folder:
|
||||
|
||||
```bash
|
||||
pip install openbb-biztoc
|
||||
```
|
||||
|
||||
Documentation available [here](https://docs.openbb.co/platform/developer_guide/contributing).
|
||||
@@ -1 +0,0 @@
|
||||
"""Biztoc provider."""
|
||||
@@ -1,25 +0,0 @@
|
||||
"""Biztoc provider module."""
|
||||
|
||||
from openbb_biztoc.models.world_news import BiztocWorldNewsFetcher
|
||||
from openbb_core.provider.abstract.provider import Provider
|
||||
|
||||
biztoc_provider = Provider(
|
||||
name="biztoc",
|
||||
website="https://api.biztoc.com",
|
||||
description="""BizToc uses Rapid API for its REST API.
|
||||
You may sign up for your free account at https://rapidapi.com/thma/api/biztoc.
|
||||
|
||||
The Base URL for all requests is:
|
||||
|
||||
https://biztoc.p.rapidapi.com/
|
||||
|
||||
If you're not a developer but would still like to use Biztoc outside of the main website,
|
||||
we've partnered with OpenBB, allowing you to pull in BizToc's news stream in their Terminal.""",
|
||||
credentials=["api_key"],
|
||||
fetcher_dict={
|
||||
"WorldNews": BiztocWorldNewsFetcher,
|
||||
},
|
||||
repr_name="BizToc",
|
||||
deprecated_credentials={"API_BIZTOC_TOKEN": "biztoc_api_key"},
|
||||
instructions="The BizToc API is hosted on RapidAPI. To set up, go to: https://rapidapi.com/thma/api/biztoc.\n\n\n\nIn the top right, select 'Sign Up'. After answering some questions, you will be prompted to select one of their plans.\n\n\n\nAfter signing up, navigate back to https://rapidapi.com/thma/api/biztoc. If you are logged in, you will see a header called X-RapidAPI-Key.\n\n", # noqa: E501 pylint: disable=line-too-long
|
||||
)
|
||||
@@ -1 +0,0 @@
|
||||
"""Biztoc Provider models."""
|
||||
@@ -1,158 +0,0 @@
|
||||
"""Biztoc World News Model."""
|
||||
|
||||
# pylint: disable=unused-argument
|
||||
|
||||
from typing import Any
|
||||
from warnings import warn
|
||||
|
||||
from openbb_core.app.model.abstract.error import OpenBBError
|
||||
from openbb_core.provider.abstract.fetcher import Fetcher
|
||||
from openbb_core.provider.standard_models.world_news import (
|
||||
WorldNewsData,
|
||||
WorldNewsQueryParams,
|
||||
)
|
||||
from openbb_core.provider.utils.errors import UnauthorizedError
|
||||
from pydantic import Field, field_validator
|
||||
|
||||
|
||||
class BiztocWorldNewsQueryParams(WorldNewsQueryParams):
|
||||
"""Biztoc World News Query."""
|
||||
|
||||
term: str | None = Field(
|
||||
description="Search term to filter articles by. This overrides all other filters.",
|
||||
default=None,
|
||||
)
|
||||
source: str | None = Field(
|
||||
description="Filter by a specific publisher. Only valid when filter is set to source.",
|
||||
default=None,
|
||||
)
|
||||
|
||||
|
||||
class BiztocWorldNewsData(WorldNewsData):
|
||||
"""Biztoc World News Data."""
|
||||
|
||||
__alias_dict__ = {
|
||||
"date": "published",
|
||||
"text": "body",
|
||||
"images": "img",
|
||||
}
|
||||
|
||||
images: list[dict[str, str]] | None = Field(
|
||||
description="Images for the article.", default=None
|
||||
)
|
||||
tags: list[str] | None = Field(description="Tags for the article.", default=None)
|
||||
score: float | None = Field(
|
||||
description="Search relevance score for the article.", default=None
|
||||
)
|
||||
|
||||
@field_validator("date", "updated", mode="before", check_fields=False)
|
||||
@classmethod
|
||||
def date_validate(cls, v):
|
||||
"""Return formatted datetime."""
|
||||
# pylint: disable=import-outside-toplevel
|
||||
from pandas import to_datetime
|
||||
|
||||
return (
|
||||
to_datetime(v, utc=True)
|
||||
.tz_convert("America/New_York")
|
||||
.strftime("%Y-%m-%d %H:%M:%S%z")
|
||||
)
|
||||
|
||||
@field_validator("title")
|
||||
@classmethod
|
||||
def title_validate(cls, v):
|
||||
"""Strip empty title text."""
|
||||
return v.strip() if v else None
|
||||
|
||||
|
||||
class BiztocWorldNewsFetcher(
|
||||
Fetcher[
|
||||
BiztocWorldNewsQueryParams,
|
||||
list[BiztocWorldNewsData],
|
||||
]
|
||||
):
|
||||
"""Transform the query, extract and transform the data from the Biztoc endpoints."""
|
||||
|
||||
@staticmethod
|
||||
def transform_query(params: dict[str, Any]) -> BiztocWorldNewsQueryParams:
|
||||
"""Transform the query."""
|
||||
if params.get("start_date") or params.get("end_date"):
|
||||
warn("start_date and end_date are not supported for this endpoint.")
|
||||
return BiztocWorldNewsQueryParams(**params)
|
||||
|
||||
@staticmethod
|
||||
async def aextract_data(
|
||||
query: BiztocWorldNewsQueryParams,
|
||||
credentials: dict[str, str] | None,
|
||||
**kwargs: Any,
|
||||
) -> list[dict]:
|
||||
"""Extract the data from the Biztoc endpoint."""
|
||||
# pylint: disable=import-outside-toplevel
|
||||
from openbb_core.provider.utils.helpers import amake_request, make_request
|
||||
|
||||
async def response_callback(response, _):
|
||||
res = await response.json()
|
||||
if isinstance(res, dict) and "message" in res:
|
||||
if "subscribed" in res["message"].lower():
|
||||
raise UnauthorizedError(
|
||||
f"Unauthorized Biztoc request -> {res['message']}"
|
||||
)
|
||||
raise OpenBBError(res["message"])
|
||||
|
||||
return await response.json()
|
||||
|
||||
api_key = credentials.get("biztoc_api_key") if credentials else ""
|
||||
headers = {
|
||||
"X-RapidAPI-Key": f"{api_key}",
|
||||
"X-RapidAPI-Host": "biztoc.p.rapidapi.com",
|
||||
"Accept": "application/json",
|
||||
"Accept-Encoding": "gzip",
|
||||
}
|
||||
base_url = "https://biztoc.p.rapidapi.com/"
|
||||
url = ""
|
||||
response: list | dict = []
|
||||
if query.term:
|
||||
query.term = query.term.replace(" ", "%20")
|
||||
url = base_url + f"search?q={query.term}"
|
||||
response = await amake_request(
|
||||
url, headers=headers, response_callback=response_callback
|
||||
)
|
||||
elif query.source is not None:
|
||||
sources_response = make_request(
|
||||
"https://biztoc.p.rapidapi.com/sources",
|
||||
headers=headers,
|
||||
).json()
|
||||
sources = [source["id"] for source in sources_response]
|
||||
if query.source.lower() not in sources:
|
||||
raise OpenBBError(
|
||||
f"{query.source} not a valid source. Valid sources: {sources}"
|
||||
)
|
||||
url = base_url + f"news/source/{query.source.lower()}"
|
||||
response = await amake_request(
|
||||
url, headers=headers, response_callback=response_callback
|
||||
)
|
||||
else:
|
||||
url1 = base_url + "news/latest"
|
||||
response = await amake_request(
|
||||
url1, headers=headers, response_callback=response_callback
|
||||
)
|
||||
|
||||
return response # type: ignore
|
||||
|
||||
@staticmethod
|
||||
def transform_data(
|
||||
query: BiztocWorldNewsQueryParams, data: list[dict], **kwargs: Any
|
||||
) -> list[BiztocWorldNewsData]:
|
||||
"""Transform the data to the standard format."""
|
||||
results: list[BiztocWorldNewsData] = []
|
||||
for item in data:
|
||||
item.pop("id", None)
|
||||
item.pop("uid", None)
|
||||
item.pop("body_preview", None)
|
||||
item.pop("site", None)
|
||||
item.pop("domain", None)
|
||||
images = item.pop("img", [])
|
||||
if images:
|
||||
item["images"] = images if isinstance(images, list) else [images]
|
||||
results.append(BiztocWorldNewsData.model_validate(item))
|
||||
return results
|
||||
@@ -1 +0,0 @@
|
||||
"""Biztoc utils."""
|
||||
1959
openbb_platform/providers/biztoc/poetry.lock
generated
vendored
1959
openbb_platform/providers/biztoc/poetry.lock
generated
vendored
File diff suppressed because it is too large
Load Diff
19
openbb_platform/providers/biztoc/pyproject.toml
vendored
19
openbb_platform/providers/biztoc/pyproject.toml
vendored
@@ -1,19 +0,0 @@
|
||||
[tool.poetry]
|
||||
name = "openbb-biztoc"
|
||||
version = "1.6.1"
|
||||
description = "Biztoc Provider for OpenBB Platform"
|
||||
authors = ["OpenBB Team <hello@openbb.co>"]
|
||||
license = "AGPL-3.0-only"
|
||||
readme = "README.md"
|
||||
packages = [{ include = "openbb_biztoc" }]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = ">=3.10,<4"
|
||||
openbb-core = "^1.6.10"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
|
||||
[tool.poetry.plugins."openbb_provider_extension"]
|
||||
biztoc = "openbb_biztoc:biztoc_provider"
|
||||
@@ -1 +0,0 @@
|
||||
"""Biztoc Provider tests."""
|
||||
@@ -1,299 +0,0 @@
|
||||
interactions:
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip
|
||||
Connection:
|
||||
- keep-alive
|
||||
X-RapidAPI-Host:
|
||||
- biztoc.p.rapidapi.com
|
||||
X-RapidAPI-Key:
|
||||
- MOCK_API_KEY
|
||||
method: GET
|
||||
uri: https://biztoc.p.rapidapi.com/sources
|
||||
response:
|
||||
body:
|
||||
string: '[{"id":"tfswallst","title":"24/7 Wall Street","web":"https://247wallst.com/"},{"id":"abc","title":"ABC
|
||||
News","web":"https://abcnews.go.com"},{"id":"aol","title":"AOL Finance","web":"https://www.aol.com/finance/"},{"id":"apnews","title":"AP
|
||||
News","web":"https://apnews.com"},{"id":"abnormalreturns","title":"Abnormal
|
||||
Returns","web":"https://abnormalreturns.com/"},{"id":"asiafinancial","title":"Asia
|
||||
Financial","web":"https://www.asiafinancial.com"},{"id":"axios","title":"Axios","web":"https://www.axios.com"},{"id":"bbc","title":"BBC","web":"https://www.bbc.com"},{"id":"barchart","title":"Barchart","web":"https://www.barchart.com/"},{"id":"barrons","title":"Barrons","web":"https://www.barrons.com"},{"id":"ritholtz","title":"Barry
|
||||
Ritholtz","web":"https://ritholtz.com/"},{"id":"benzinga","title":"Benzinga","web":"https://www.benzinga.com/"},{"id":"blockworks","title":"Blockworks","web":"https://blockworks.co"},{"id":"bloomberg","title":"Bloomberg","web":"https://www.bloomberg.com/"},{"id":"quicktake","title":"Bloomberg
|
||||
Quicktake","web":"https://www.youtube.com/channel/UChirEOpgFCupRAk5etXqPaA"},{"id":"boston","title":"Boston
|
||||
Herald","web":"https://www.bostonherald.com/business/"},{"id":"bizjournals","title":"Business
|
||||
Journals","web":"https://www.bizjournals.com/"},{"id":"cbc","title":"CBC","web":"https://www.cbc.ca/s"},{"id":"cbs","title":"CBS","web":"https://www.cbsnews.com"},{"id":"cnbc","title":"CNBC","web":"https://www.cnbc.com/"},{"id":"cnn","title":"CNN","web":"https://edition.cnn.com/business"},{"id":"chicago","title":"Chicago
|
||||
Tribune","web":"https://www.chicagotribune.com/business/"},{"id":"coindesk","title":"Coindesk","web":"https://www.coindesk.com"},{"id":"dw","title":"DW","web":"https://www.dw.com/en/business/s-1431"},{"id":"dailyupside","title":"Daily
|
||||
Upside","web":"https://www.thedailyupside.com/"},{"id":"dealbreaker","title":"Dealbreaker","web":"https://dealbreaker.com/"},{"id":"entrepreneur","title":"Entrepreneur","web":"https://www.entrepreneur.com/"},{"id":"stocktwits","title":"EurActiv","web":"https://www.euractiv.com/"},{"id":"euronews","title":"Euronews","web":"https://www.euronews.com/"},{"id":"fastcompany","title":"FastCompany","web":"https://www.fastcompany.com"},{"id":"finpost","title":"Financial
|
||||
Post","web":"https://financialpost.com/"},{"id":"ft","title":"Financial Times","web":"https://www.ft.com"},{"id":"forbes","title":"Forbes","web":"https://www.forbes.com"},{"id":"fortune","title":"Fortune","web":"https://fortune.com/"},{"id":"fox","title":"Fox
|
||||
Business","web":"https://www.foxbusiness.com"},{"id":"globeandmail","title":"Globe
|
||||
And Mail","web":"https://www.theglobeandmail.com"},{"id":"google_business","title":"Google
|
||||
Business","web":"https://news.google.com/topics/CAAqJggKIiBDQkFTRWdvSUwyMHZNRGx6TVdZU0FtVnVHZ0pWVXlnQVAB?hl=en-US&gl=US&ceid=US%3Aen"},{"id":"googletrends","title":"Google
|
||||
Trends","web":"https://trends.google.com/trends/?geo=US"},{"id":"inc","title":"Inc.","web":"https://www.inc.com"},{"id":"insider","title":"Insider","web":"https://www.insider.com"},{"id":"instinv","title":"Institutional
|
||||
Investor","web":"https://www.institutionalinvestor.com/"},{"id":"investing","title":"Investing.com","web":"https://www.investing.com"},{"id":"investorplace","title":"InvestorPlace","web":"https://investorplace.com"},{"id":"arabnews","title":"Japan
|
||||
Times","web":"https://www.japantimes.co.jp"},{"id":"latimes","title":"LA Times","web":"https://www.latimes.com"},{"id":"msnbc","title":"MSNBC","web":"https://www.msnbc.com/"},{"id":"marginalrev","title":"Marginal
|
||||
Revolution","web":"https://marginalrevolution.com"},{"id":"marketbeat","title":"MarketBeat","web":"https://www.marketbeat.com/headlines"},{"id":"marketplace","title":"Marketplace","web":"https://www.marketplace.org"},{"id":"marketwatch","title":"Marketwatch","web":"https://www.marketwatch.com"},{"id":"mises","title":"Mises
|
||||
Institute","web":"https://mises.org"},{"id":"morningbrew","title":"Morning
|
||||
Brew","web":"https://www.morningbrew.com"},{"id":"nbc","title":"NBC","web":"https://www.nbcnews.com/"},{"id":"npr","title":"NPR","web":"https://www.npr.org"},{"id":"nyt","title":"NYT
|
||||
Business","web":"https://www.nytimes.com/section/business"},{"id":"nakedcapitalism","title":"Naked
|
||||
Capitalism","web":"https://www.nakedcapitalism.com"},{"id":"newsweek","title":"Newsweek","web":"https://www.newsweek.com"},{"id":"nikkei","title":"Nikkei
|
||||
Asia","web":"https://asia.nikkei.com/"},{"id":"observer","title":"Observer","web":"https://observer.com/"},{"id":"pbs_newshour","title":"PBS
|
||||
Newshour","web":"https://www.pbs.org/"},{"id":"pymnts","title":"PYMNTS","web":"https://www.pymnts.com/"},{"id":"podcasts","title":"Podcasts","web":""},{"id":"politico","title":"Politico","web":"https://www.politico.com"},{"id":"rcm","title":"RCM","web":""},{"id":"reason","title":"Reason","web":"https://reason.com/"},{"id":"reddit","title":"Reddit","web":"https://www.reddit.com"},{"id":"reuters","title":"Reuters","web":"https://reuters.com"},{"id":"scmp","title":"SCMP","web":"https://www.scmp.com/"},{"id":"sec","title":"SEC
|
||||
/ FED","web":"https://www.sec.gov/"},{"id":"seattle","title":"Seattle Times","web":"https://www.seattletimes.com/business/"},{"id":"seekingalpha","title":"Seeking
|
||||
Alpha","web":"https://seekingalpha.com"},{"id":"semafor","title":"Semafor","web":"https://www.semafor.com/"},{"id":"siliconrepublic","title":"Silicon
|
||||
Republic","web":"https://www.siliconrepublic.com/"},{"id":"siliconvalley","title":"Silicon
|
||||
Valley","web":"https://www.siliconvalley.com/"},{"id":"statista","title":"Statista","web":"https://www.statista.com/"},{"id":"ted","title":"TED","web":"https://www.ted.com/"},{"id":"techco","title":"Tech
|
||||
Co","web":"https://tech.co/"},{"id":"techcrunch","title":"Techcrunch","web":"https://techcrunch.com/"},{"id":"techmeme","title":"Techmeme","web":"https://www.techmeme.com/"},{"id":"theblock","title":"The
|
||||
Block","web":"https://www.theblock.co/"},{"id":"economist","title":"The Economist","web":"https://www.economist.com"},{"id":"guardian","title":"The
|
||||
Guardian","web":"https://www.theguardian.com/"},{"id":"thehill","title":"The
|
||||
Hill","web":"https://thehill.com/business/"},{"id":"hustle","title":"The Hustle","web":"https://thehustle.co/"},{"id":"theregister","title":"The
|
||||
Register","web":"https://www.theregister.com/"},{"id":"thestreet","title":"The
|
||||
Street","web":"https://www.thestreet.com/"},{"id":"thetrade","title":"The
|
||||
Trade","web":"https://www.thetradenews.com/"},{"id":"theweek","title":"The
|
||||
Week","web":"https://theweek.com/"},{"id":"tipranks","title":"Tipranks","web":"https://www.tipranks.com/"},{"id":"vox","title":"Vox","web":"https://www.vox.com"},{"id":"wsj","title":"Wall
|
||||
Street Journal","web":"https://www.wsj.com/"},{"id":"wapo","title":"Washington
|
||||
Post","web":"https://www.washingtonpost.com"},{"id":"wolfstreet","title":"Wolf
|
||||
Street","web":"https://wolfstreet.com"},{"id":"yahoo_finance","title":"Yahoo
|
||||
Finance","web":"https://finance.yahoo.com/news/"},{"id":"yougov","title":"YouGov","web":"https://today.yougov.com"},{"id":"youtube_networks","title":"Youtube","web":"https://www.youtube.com"},{"id":"zerohedge","title":"ZeroHedge","web":"https://www.zerohedge.com/"},{"id":"investors","title":"investors.com","web":"https://www.investors.com/"}]
|
||||
|
||||
'
|
||||
headers:
|
||||
CF-Cache-Status:
|
||||
- DYNAMIC
|
||||
CF-RAY:
|
||||
- 8d46253b4f35c990-IAD
|
||||
Cache-Control:
|
||||
- no-store, no-cache, must-revalidate, max-age=0
|
||||
Connection:
|
||||
- keep-alive
|
||||
Content-Encoding:
|
||||
- gzip
|
||||
Content-Type:
|
||||
- application/json
|
||||
Date:
|
||||
- Fri, 18 Oct 2024 05:32:01 GMT
|
||||
NEL:
|
||||
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
||||
Report-To:
|
||||
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=6AJ37sdn9g018QqveznvFOUcc06J0MlsSB7CDEFKhN7XOhnexO7oUWGOx9%2BTeTH%2BUfbmxCFfUB9dRstLZUvq6koiunLgudzqseaUyrLMRwcL9G4TTGHbblRtT88%3D"}],"group":"cf-nel","max_age":604800}'
|
||||
Server:
|
||||
- RapidAPI-1.2.8
|
||||
Strict-Transport-Security:
|
||||
- max-age=31556926; includeSubDomains
|
||||
Transfer-Encoding:
|
||||
- chunked
|
||||
Vary:
|
||||
- Accept-Encoding, Cookie
|
||||
X-RapidAPI-Region:
|
||||
- AWS - us-east-1
|
||||
X-RapidAPI-Request-Id:
|
||||
- bb52b953b619ebdbae3d20f65f30c5041993d53bfcb4bd646a484856e7ad1bad
|
||||
X-RapidAPI-Version:
|
||||
- 1.2.8
|
||||
X-RateLimit-Requests-Limit:
|
||||
- '2000'
|
||||
X-RateLimit-Requests-Remaining:
|
||||
- '1914'
|
||||
X-RateLimit-Requests-Reset:
|
||||
- '1620568'
|
||||
X-RateLimit-rapid-free-plans-hard-limit-Limit:
|
||||
- '500000'
|
||||
X-RateLimit-rapid-free-plans-hard-limit-Remaining:
|
||||
- '499961'
|
||||
X-RateLimit-rapid-free-plans-hard-limit-Reset:
|
||||
- '1620568'
|
||||
alt-svc:
|
||||
- h3=":443"; ma=86400
|
||||
permissions-policy:
|
||||
- browsing-topics=()
|
||||
referrer-policy:
|
||||
- strict-origin-when-cross-origin
|
||||
rndr-id:
|
||||
- 96769602-78bc-4d9d
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-render-origin-server:
|
||||
- gunicorn
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
Accept-Encoding:
|
||||
- gzip
|
||||
X-RapidAPI-Host:
|
||||
- biztoc.p.rapidapi.com
|
||||
X-RapidAPI-Key:
|
||||
- MOCK_API_KEY
|
||||
method: GET
|
||||
uri: https://biztoc.p.rapidapi.com/news/source/bloomberg
|
||||
response:
|
||||
body:
|
||||
string: !!binary |
|
||||
H4sIAAAAAAAAA6xcbW/cOJL+fr+CMBa4L+ZEry2pgcMhduwkO3GcSzvrm707LCix1OK2RGpIyp2e
|
||||
xf73Q5HqTsbKLuRtfQmSjqsfmaV6f4r/87eLUvHDX3oNTwL2F+uLi8sL0W0v1n+7MBfri8ba3qxf
|
||||
vaq4/KkUv1lV/VSp7lUdhMVqVfFixTLG8uov5qc9lP3F5YX59SVSv3qxv19e9EPZCtMAv1hf3Gpx
|
||||
ScKc3FeWREGUkCBdh/k6isjbu4eLywsrbAsX64vrRkj2v0MUhIUh/zWAsaRWmlwz05APwLghVpFP
|
||||
LZPu4wf2VcgtsQ2Qz6JqLi4vBt1+97D7/f6nslWqK0Fv3fNK2Bv3Rw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0T8qhZf5YSHGNsrNus4uxAudrjWih1zfCh51jeLdfizvIqZBleZsR4PPdK1YnU
|
||||
CwJBuo6TaSDAe0bwpR7nz28xiZfYLCA3Xd+qAziCxqdWuQbSz7iai1LCit9AnhkJKo99ZONtT9gU
|
||||
Rmx8z/tWubvBdriai1Iee7E8NYoqgKDM6yJi2ewLqSZSL3jv86n3wYsvjrOFeuzo3TFO7tjXsYen
|
||||
9Pjxn1VXCqwakEV36M14rwC5RaPwxbbn55+jHXdrxjhwqGnHOO3YV6o0/c2hU3ZCpzVO/32t7bn5
|
||||
E83837/9PwAAAP//AwCUFTALXFsAAA==
|
||||
headers:
|
||||
CF-Cache-Status:
|
||||
- DYNAMIC
|
||||
CF-RAY:
|
||||
- 8d46253e7fd558ba-IAD
|
||||
Cache-Control:
|
||||
- no-store, no-cache, must-revalidate, max-age=0
|
||||
Connection:
|
||||
- keep-alive
|
||||
Content-Encoding:
|
||||
- gzip
|
||||
Content-Type:
|
||||
- application/json
|
||||
Date:
|
||||
- Fri, 18 Oct 2024 05:32:01 GMT
|
||||
NEL:
|
||||
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
||||
Report-To:
|
||||
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=1jncDmrg1XfuP0IcLzSdFqxnDMUXcq%2FYLEq7Y47JCzrfHGKMIYKTdVDqO5wAJ1CDVG8lCorUMgO5Aw5pGQ4cBY8eGoB%2FI0iTPcN%2FHHf9%2Bz3zMUu9I%2FdQYPbfHmI%3D"}],"group":"cf-nel","max_age":604800}'
|
||||
Server:
|
||||
- RapidAPI-1.2.8
|
||||
Strict-Transport-Security:
|
||||
- max-age=31556926; includeSubDomains
|
||||
Transfer-Encoding:
|
||||
- chunked
|
||||
Vary:
|
||||
- Accept-Encoding, Cookie
|
||||
X-RapidAPI-Region:
|
||||
- AWS - us-east-1
|
||||
X-RapidAPI-Request-Id:
|
||||
- c9f0a6fb613c5c0a2361b3f48bba6dcc7bc83feaa827675cb22eb492b1669872
|
||||
X-RapidAPI-Version:
|
||||
- 1.2.8
|
||||
X-RateLimit-Requests-Limit:
|
||||
- '2000'
|
||||
X-RateLimit-Requests-Remaining:
|
||||
- '1913'
|
||||
X-RateLimit-Requests-Reset:
|
||||
- '1620568'
|
||||
X-RateLimit-rapid-free-plans-hard-limit-Limit:
|
||||
- '500000'
|
||||
X-RateLimit-rapid-free-plans-hard-limit-Remaining:
|
||||
- '499960'
|
||||
X-RateLimit-rapid-free-plans-hard-limit-Reset:
|
||||
- '1620568'
|
||||
alt-svc:
|
||||
- h3=":443"; ma=86400
|
||||
permissions-policy:
|
||||
- browsing-topics=()
|
||||
referrer-policy:
|
||||
- strict-origin-when-cross-origin
|
||||
rndr-id:
|
||||
- 8911030f-1e15-4bb9
|
||||
x-content-type-options:
|
||||
- nosniff
|
||||
x-render-origin-server:
|
||||
- gunicorn
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
version: 1
|
||||
@@ -1,33 +0,0 @@
|
||||
"""Tests for the Biztoc fetchers."""
|
||||
|
||||
import pytest
|
||||
from openbb_biztoc.models.world_news import BiztocWorldNewsFetcher
|
||||
from openbb_core.app.service.user_service import UserService
|
||||
|
||||
test_credentials = UserService().default_user_settings.credentials.model_dump(
|
||||
mode="json"
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def vcr_config():
|
||||
"""VCR configuration."""
|
||||
return {
|
||||
"filter_headers": [
|
||||
("X-RapidAPI-Key", "MOCK_API_KEY"),
|
||||
("User-Agent", None),
|
||||
],
|
||||
"filter_query_parameters": [
|
||||
("apikey", "MOCK_API_KEY"),
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
@pytest.mark.record_http
|
||||
def test_biztoc_world_news_fetcher(credentials=test_credentials):
|
||||
"""Test the Biztoc World News fetcher."""
|
||||
params = {"source": "bloomberg"}
|
||||
|
||||
fetcher = BiztocWorldNewsFetcher()
|
||||
result = fetcher.test(params, credentials)
|
||||
assert result is None
|
||||
3
openbb_platform/pyproject.toml
vendored
3
openbb_platform/pyproject.toml
vendored
@@ -45,7 +45,6 @@ openbb-regulators = "^1.6.2"
|
||||
|
||||
# Community dependencies
|
||||
openbb-alpha-vantage = { version = "^1.6.0", optional = true }
|
||||
openbb-biztoc = { version = "^1.6.0", optional = true }
|
||||
openbb-cboe = { version = "^1.6.0", optional = true }
|
||||
openbb-deribit = { version = "^1.2.0", optional = true }
|
||||
openbb-ecb = { version = "^1.6.0", optional = true }
|
||||
@@ -66,7 +65,6 @@ openbb-mcp-server = { version = "^1.4.1", optional = true }
|
||||
|
||||
[tool.poetry.extras]
|
||||
alpha_vantage = ["openbb-alpha-vantage"]
|
||||
biztoc = ["openbb-biztoc"]
|
||||
cboe = ["openbb-cboe"]
|
||||
charting = ["openbb-charting"]
|
||||
deribit = ["openbb-deribit"]
|
||||
@@ -88,7 +86,6 @@ wsj = ["openbb-wsj"]
|
||||
|
||||
all = [
|
||||
"openbb-alpha-vantage",
|
||||
"openbb-biztoc",
|
||||
"openbb-cboe",
|
||||
"openbb-charting",
|
||||
"openbb-deribit",
|
||||
|
||||
Reference in New Issue
Block a user