get_bfc_data
| Name | Type | Default | Description |
|---|---|---|---|
symbols | str, optional | -- | Single symbol or list of symbols to query |
timeframe | str | 60m | Timeframe in minutes. Available timeframe are 1m and 30m. Defaults “30m”. |
table | str | candle | SQL table name (default: candle) |
index_col | str | close_datetime | Column to use as index (default: close_datetime) |
engine_name | str | research | Name of the SQL engine (default: research) |
engine | str | None | SQL engine connection string (default: None) |
start | str | None | Start date for data (default: None) |
end | str | None | End date for data (default: None) |
n_records | int | None | Maximum number of records to return (default: None) |
freq | str | None | Resampling frequency. Default is None, which means no resampling. |
kwargs | tp.Kwargs | -- | Additional arguments passed to vbt.SQLData.pull. |
| Type | Description |
|---|---|
ValueError | If timeframe not in [“1m”, “30m”, “60m”] |
RuntimeError | If SQL data fetch fails |
| Type | Description |
|---|---|
vbt.Data | Vectorbt Data object containing the queried data |
ModelBFCSchema
ValidationError][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Ancestors
pydantic.main.BaseModel
Class variables
-
strategy: str: Strategy name. -
type: str: Type of the strategy. -
perc_equity: float: Percentage of equity to use for the strategy. -
slippage: float: Slippage in percentage. -
model_config: The type of the None singleton.
BFCData
Ancestors
vectorbtpro.data.custom.sql.SQLDatavectorbtpro.data.custom.db.DBDatavectorbtpro.data.custom.local.LocalDatavectorbtpro.data.custom.custom.CustomDatavectorbtpro.data.base.Datavectorbtpro.generic.analyzable.Analyzablevectorbtpro.base.wrapping.Wrappingvectorbtpro.utils.config.Configuredvectorbtpro.utils.config.HasSettingsvectorbtpro.utils.caching.Cacheablevectorbtpro.utils.checks.Comparablevectorbtpro.utils.pickling.Pickleablevectorbtpro.utils.formatting.Prettifiedvectorbtpro.utils.chaining.Chainablevectorbtpro.base.wrapping.HasWrappervectorbtpro.base.indexing.ExtPandasIndexervectorbtpro.base.indexing.PandasIndexervectorbtpro.base.indexing.IndexingBasevectorbtpro.utils.params.ItemParamablevectorbtpro.utils.params.Itemablevectorbtpro.utils.params.Paramablevectorbtpro.base.indexes.IndexAppliervectorbtpro.utils.attr_.AttrResolverMixinvectorbtpro.generic.stats_builder.StatsBuilderMixinvectorbtpro.generic.plots_builder.PlotsBuilderMixinvectorbtpro.data.base.OHLCDataMixinvectorbtpro.data.base.BaseDataMixinvectorbtpro.utils.base.Base
Static methods
fetch_symbol
| Name | Type | Default | Description |
|---|---|---|---|
symbols | str | -- | Single symbol to fetch. |
kwargs | tp.Kwargs | -- | Additional arguments passed to vbt.SQLData.pull. |
| Type | Description |
|---|---|
vbt.SQLData | Vectorbt Data object containing the queried data |
pull
| Name | Type | Default | Description |
|---|---|---|---|
symbols | str | -- | Symbol or list of symbols to query. |
kwargs | tp.Kwargs | -- | Additional arguments passed to vbt.SQLData.pull. |
| Type | Description |
|---|---|
vbt.SQLData | Vectorbt Data object containing the queried data |

