Skip to main content

lbma_fixing

Daily LBMA Fixing Prices in USD/EUR/GBP.

Example​

from openbb import obb
obb.commodity.lbma_fixing(asset="gold")

Parameters​

NameTypeDescriptionDefaultOptional
assetLiteral['gold', 'silver']The metal to get price fixing rates for.goldTrue
start_dateUnion[str, date]Start date of the data, in YYYY-MM-DD format.NoneTrue
end_dateUnion[str, date]Start date of the data, in YYYY-MM-DD format.NoneTrue
transformLiteral['diff', 'rdiff', 'cumul', 'normalize']Transform the data as difference, percent change, cumulative, or normalize.NoneTrue
collapseLiteral['daily', 'weekly', 'monthly', 'quarterly', 'annual']Collapse the frequency of the time series.NoneTrue
providerLiteral['nasdaq']The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'nasdaq' if there is no default.nasdaqTrue

Returns​

OBBject
results : List[LbmaFixing]
Serializable results.

provider : Optional[Literal['nasdaq']]
Provider name.

warnings : Optional[List[Warning_]]
List of warnings.

chart : Optional[Chart]
Chart object.

extra : Dict[str, Any]
Extra info.

Data​

NameTypeDescription
datedateThe date of the data.
usd_amfloatAM fixing price in USD.
usd_pmfloatPM fixing price in USD.
gbp_amfloatAM fixing price in GBP.
gbp_pmfloatPM fixing price in GBP.
euro_amfloatAM fixing price in EUR.
euro_pmfloatPM fixing price in EUR.
usdfloatDaily fixing price in USD.
gbpfloatDaily fixing price in GBP.
eurfloatDaily fixing price in EUR.