mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-09 02:42:36 +00:00
order providers
This commit is contained in:
@@ -126,9 +126,11 @@ class RegistryMap:
|
||||
model_field.json_schema_extra = {}
|
||||
|
||||
if p not in model_field.json_schema_extra:
|
||||
model_field.json_schema_extra[p] = set()
|
||||
model_field.json_schema_extra[p] = []
|
||||
|
||||
model_field.json_schema_extra[p].add(provider)
|
||||
providers = model_field.json_schema_extra[p]
|
||||
if provider not in providers:
|
||||
providers.append(provider)
|
||||
|
||||
def _get_models(self, map_: MapType) -> List[str]:
|
||||
"""Get available models."""
|
||||
|
||||
@@ -140,7 +140,7 @@ class ROUTER_crypto_price(Container):
|
||||
},
|
||||
extra_params=kwargs,
|
||||
extra_info={
|
||||
"symbol": {"multiple_items_allowed": {"yfinance", "fmp", "polygon"}}
|
||||
"symbol": {"multiple_items_allowed": ["fmp", "polygon", "yfinance"]}
|
||||
},
|
||||
)
|
||||
)
|
||||
|
||||
@@ -185,12 +185,12 @@ class ROUTER_equity_price(Container):
|
||||
extra_params=kwargs,
|
||||
extra_info={
|
||||
"symbol": {
|
||||
"multiple_items_allowed": {
|
||||
"multiple_items_allowed": [
|
||||
"fmp",
|
||||
"polygon",
|
||||
"yfinance",
|
||||
"tiingo",
|
||||
}
|
||||
"yfinance",
|
||||
]
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user