Skip to main content

finance enums

Standard financial enumerations

Build Status codecov License PyPI

Overview

finance-enums is the shared vocabulary layer for the finance-* stack. It exposes string-valued Python enums backed by Rust static data tables, plus structured currency metadata and a small frequency enum used by calendar-aware libraries.

The goal is to make identifiers boring and consistent: country codes, currencies, exchange codes, GICS-like sector taxonomy, security types, instrument types, portfolio labels, lifecycle states, order flags, trade sides, and time-in-force values all come from one package.

Quick start

from finance_enums import (
    CommodityType,
    ContractStyle,
    Currency,
    ExchangeCode,
    FundType,
    OptionExerciseType,
    OptionType,
    SecurityType,
    SettlementStatus,
    SettlementType,
    Sector,
    transaction_intent,
    UnderlyingAssetClass,
    exchange_record,
    exchange_records_by_country,
    build_cfi,
    parse_cfi,
    Frequency,
    to_frequency,
)

str(Currency.USD)                    # "USD"
Currency.USD.currency_name()         # "United States dollar"
Currency.USD.is_iso4217()            # True
Currency("e-CNY")                    # Currency.ECNY

ExchangeCode.XNYS.value              # "XNYS"
ExchangeCode.XNYS.record().region    # "Americas"
exchange_record("XNYS").market_name  # "NEW YORK STOCK EXCHANGE, INC."
len(exchange_records_by_country("US")) > 0

parse_cfi("ESVUFB").equity_type.value   # "Shares"
build_cfi(security_type=SecurityType.Option, option_type=OptionType.Call)  # "OCXXXX"
build_cfi(
    security_type=SecurityType.Option,
    option_type=OptionType.Call,
    option_exercise_type=OptionExerciseType.American,
    underlying_asset_class=UnderlyingAssetClass.Equity,
    settlement_type=SettlementType.Physical,
    contract_style=ContractStyle.Standardized,
)  # "OCASPS"
build_cfi(security_type=SecurityType.Currency)                              # "IFXXXP"
build_cfi(security_type=SecurityType.Commodity, commodity_type=CommodityType.Agriculture)  # "ITAXXX"
build_cfi(category="S", group="F")                                        # "SFXXXX"
transaction_intent("open_short").side.value                               # "Sell"
SettlementStatus.Settled.value                                             # "Settled"

Sector.InformationTechnology.value   # "InformationTechnology"
FundType.ETF is FundType.ExchangeTradedFund     # True
FundType("ETF").value                           # "ExchangeTradedFund"

to_frequency("monthly")             # Frequency.Month
Frequency.Month.periods_per_year     # 12
Frequency.Month.polars_truncate      # "1mo"

Enum families

The public Python API includes:

  • Countries: CountryCodeAlpha2, CountryCodeAlpha3
  • Currencies: Currency, CurrencyRecord, CurrencyAliasRecord, currency_records, currency_alias_records
  • Venues: ExchangeCode, ExchangeRecord, exchange_record, exchange_records, exchange_records_by_country, exchange_records_by_operating_mic, exchange_records_by_parent_mic, exchange_records_by_status, exchange_records_by_region, exchange_records_by_market_category, MarketCategory, VenueRegulatoryFlag, exchange_records_by_market_category_type, exchange_records_by_regulatory_flag
  • Sector taxonomy: Sector, IndustryGroup, Industry, SubIndustry
  • Market structure: VenueType, MarketType, TradingSession, TradingPhase, MarketState, AuctionType, SegmentType, MarketStatusReason
  • Identifier and notation: IdentifierType, Symbology, TickerNamespace, PriceNotation, QuantityUnit, CurrencyRole
  • Instruments: SecurityType, InstrumentType, EquityType, OptionType, OptionExerciseType, BondType, CommodityType, EnergyType, MetalType, AgricultureType, FundType, FundSubType, MutualFundEndedness, FutureAssetClass, SettlementType, UnderlyingAssetClass, ContractStyle, PayoffStyle, ContractUnit, LegRole
  • Fixed income and financing: CouponType, ScheduleFrequency, DayCountConvention, AmortizationType, Seniority, CollateralType, MarginType, BorrowType, RepoType, FinancingType
  • Swaps and structured products: SwapType, SwapLegType, RateIndex, CompoundingMethod, StubType, BarrierType, AveragingMethod, ExoticOptionFeature
  • Post-trade and clearing: SettlementStatus, ClearingModel, ClearingHouse, SettlementFailReason, AllocationMethod, GiveUpType
  • Benchmarks and index administration: BenchmarkType, IndexWeightingMethod, CorporateActionAdjustmentType, CalculationAgentType
  • Portfolio and fund structure: AccountType, BookType, PositionType, InventoryType, StrategyType, NettingType, DistributionPolicy, ShareClassHedging
  • Corporate actions and lifecycle: CorporateActionType, ListingStatus, SecurityStatus, ExerciseEventType, TenderOfferType, DelistingReason
  • CFI helpers: CFIClassification, parse_cfi, build_cfi, build_cfi_from_classification, validate_cfi_classification
  • Versioned enum schema helpers: EnumVariantRecord, EnumFamilySchema, enum_variant_records, enum_family_schemas, enum_schema, enum_schema_json, enum_export_capsule
  • Trading: OrderType, OrderStatus, ExecutionType, ExecutionInstruction, LiquidityFlag, PositionEffect, OrderCapacity, ShortSaleRestriction, Side, OrderFlag, TimeInForce
  • Market data: QuoteCondition, TradeCondition, CrossType, PriceKind, PriceNotation
  • Frequencies: Frequency, to_frequency

Ordinal 0 is the invalid/unknown sentinel

Every Rust-backed enum family reserves ordinal 0 for an invalid/unknown sentinel, so a real, meaningful variant always has a non-zero ordinal. This makes a zero-initialised or default value unambiguously "not set" in every language (C/C++/Rust/Python), and avoids a falsy-zero variant silently passing for a real value.

  • Semantic families get an Invalid member at ordinal 0, injected by the finance_enum! macro in rust/src/data.rs.
  • ISO code families reuse their own standard "no value" code at ordinal 0 instead of a synthetic Invalid: Currency → XXX, CountryCodeAlpha2 → XX, CountryCodeAlpha3 → XXX, ExchangeCode → XXXX. These are declared with the finance_enum_raw! macro (which does not inject Invalid).

Each typed Rust enum provides string conversions: name() / as_str() (to-string) and from_str() plus a std::str::FromStr impl (from-string).

Documentation

See the Enums page for the enum families, metadata conventions, exchange-code relationship with finance-dates, and Rust/Python naming notes. See the API page for a reference and recipes.

Rust crate

The Rust data lives in the finance_enums_core crate (rust/). Releases through 0.7 published it as finance_enums.

[dependencies]
finance_enums_core = "0.8"
use finance_enums_core::data::ExchangeCode_VARIANTS;

The C ABI is a separate crate, finance_enums_capi (rust/capi/), which builds libfinance_enums.

Currency Metadata

Currency data is maintained from a structured Rust source of truth.

  • Each currency row includes a code, display name, and is_iso4217 flag.
  • Python exposes structured access through currency_records() and currency_alias_records().
  • Native consumers can re-extract the same immutable dataset through the versioned finance_enums.currency_export_v1 PyCapsule or the exported finance_enums_currency_export_v1 C ABI symbol.

Exchange Metadata

Exchange coverage is now backed by bundled ISO 10383 MIC records plus a small set of project-defined calendar families.

  • Python exposes structured exchange access through exchange_records() and ExchangeCode.record().
  • Python also exposes direct venue lookups through exchange_record() and indexed filters through exchange_records_by_country(), exchange_records_by_operating_mic(), exchange_records_by_parent_mic(), exchange_records_by_status(), exchange_records_by_region(), exchange_records_by_market_category(), exchange_records_by_market_category_type(), and exchange_records_by_regulatory_flag().
  • Each ExchangeRecord and ExchangeCode can derive a typed MIC market category through .market_category() and standards-backed regulatory flags through .regulatory_flags() / .has_regulatory_flag().
  • Bundled exchange metadata includes market name, legal entity, operating and parent MICs, market category, acronym, ISO country code, city, website, status, region, subregion, segment flag, and official/project provenance.
  • Project-defined non-ISO venue families remain available for downstream calendar consumers: PYPR, SIMU, FOREX, CRYPTO, SIFMA_US, ICE_US, and CFE.

Native C ABI

finance-enums ships a versioned C ABI for immutable metadata and enum-family discovery.

  • rust/capi builds libfinance_enums, which exports finance_enums_currency_export_v1, finance_enums_exchange_export_v1, and finance_enums_enum_export_v1. The enum export is a flat family / variant table that lets C and C++ consumers discover every Rust-backed enum without needing Python.
  • cbindgen generates the public header rust/capi/include/finance_enums.h from the crate; the C++ wrappers (finance_enums.hpp, finance_enums_convert.hpp) and finance_enums_generated.h sit beside it.
  • The Python extension links against libfinance_enums and reads all of its data through the C ABI, so a process that loads both shares one copy of the tables.
  • Wheels ship the library under finance_enums/lib/ and the headers under finance_enums/include/finance_enums/. Native code built against an installed wheel can use finance_enums.get_include(), get_library_dirs(), and get_libraries().
  • Set HATCH_RS_LIBRARY_SOURCE=external to link the extension against an installed libfinance-enums (the conda split build), or direct to link the C ABI crate statically into the extension.
  • Python exposes the same schema as dataclasses through enum_variant_records() and enum_family_schemas(), and as deterministic JSON through enum_schema_json() for Arrow/JSON schema bridges.

Compile-time enum headers

In addition to the runtime ABI, two header-only artifacts give C and C++ consumers zero-overhead access to families known at compile time (no library load required):

  • finance_enums_generated.h — generated typedef enum constants (FE_<Family>_<Variant>) plus FE_<Family>_COUNT and the FE_ENUMS_ORDINAL_VALID(family, ordinal) macro, and matching C++ enum class definitions in namespace fe. Regenerate with python finance_enums/gen_enums_header.py.
  • finance_enums_convert.hpp — constexpr helpers in fe::convert (to_ordinal, from_ordinal_unchecked, try_from_ordinal, checked_from_ordinal) to move between an ordinal and a typed fe::<Family>.

These cover the finance_enum! families declared in rust/src/data.rs. The name-indexed Currency and ExchangeCode families remain runtime-only via the C ABI export, since they are generated from their own data tables.

#include <finance_enums_generated.h>   // compile-time enum class
#include <finance_enums_convert.hpp>   // ordinal <-> enum helpers

auto sec = fe::SecurityType::Equity;                 // enum class, size_t underlying
std::size_t ord = fe::convert::to_ordinal(sec);      // round-trips to Python int()
if (auto s = fe::convert::checked_from_ordinal<fe::SecurityType>(ord, FE_SecurityType_COUNT))
    use(*s);

ABI compatibility

The enum data exposes a semantic ABI version — (major, minor, patch) — so any consumer (Rust, C, C++, or Python) can check at runtime whether the library it loaded is compatible with the version it was built against.

Component Meaning after 1.0 Example change
MAJOR Backwards-incompatible change. A variant or family was reordered, removed, or renamed, or an export struct layout changed. Consumers built against a different major MUST NOT use the library. Reordering Side variants; removing a family
MINOR Backwards-compatible append. New variants added to the end of a family, or entirely new families. Existing ordinals never move. Adding a new Currency at the end
PATCH No effect on the ordinal layout. Docs, display names, metadata, internal refactors. Fixing a label typo

The C ABI remains beta while the package major version is zero. During this period, consumers require an exact major/minor match. Starting with 1.0, a consumer is compatible when the major matches and the library minor is at least the consumer minor.

# Python — straight from the installed wheel
from finance_enums import abi_version, abi_compatible, assert_abi_compatible

abi_version()                 # (0, 7, 0)
abi_compatible(0, 7)          # True
abi_compatible(0, 6)          # False — beta minor mismatch
assert_abi_compatible(0, 7)   # raises RuntimeError if incompatible
// Rust
use finance_enums_core::{abi_compatible, assert_abi_compatible};
use finance_enums_core::{ENUM_ABI_VERSION_MAJOR, ENUM_ABI_VERSION_MINOR};

assert!(abi_compatible(ENUM_ABI_VERSION_MAJOR, ENUM_ABI_VERSION_MINOR));
assert_abi_compatible(ENUM_ABI_VERSION_MAJOR, ENUM_ABI_VERSION_MINOR); // panics if not
/* C — compares the compile-time header version against the loaded library */
#include <finance_enums.h>

if (!finance_enums_abi_header_compatible()) {
    /* refuse to run against an incompatible library */
}
// C++ — RAII loader resolves and checks the version for you
#include <finance_enums.hpp>

fe::EnumLibrary lib("./libfinance_enums.dylib");
lib.assert_abi_compatible();      // throws std::runtime_error on mismatch
auto v = lib.abi_version();       // fe::AbiVersion{major, minor, patch}

The C / C++ paths need the shared library, built with make build-lib (wheels bundle it under finance_enums/lib/).

Package-manager builds

The conda recipe produces two packages from one source tree: libfinance-enums contains the shared C ABI library, headers, CMake config, and pkg-config metadata; finance-enums contains the Python extension and depends on the exact native package build. Build both locally with rattler-build build --recipe conda/recipe.yaml.

The repository also contains a native-only vcpkg overlay port. It intentionally requires a dynamic triplet because the supported ABI boundary is the standalone shared library:

vcpkg install finance-enums --classic --overlay-ports=ports --triplet x64-linux-dynamic

The overlay uses the local checkout while under development. Before registry submission, its portfile must use a tagged release archive and pinned SHA512.

0.7 beta ABI baseline

Version 0.7 establishes ordinal-zero invalid/unknown sentinels across every enum family. Published 0.6 consumers must treat 0.7 as ABI-incompatible: the sentinel insertion changed existing ordinals and several families were renamed or replaced. Runtime compatibility checks therefore reject consumers built against semantic ABI 0.6.

Because the ABI is still beta, 0.7 finalizes the existing V1 export structures in place instead of adding parallel V2 exports. Consumers must pair 0.7 headers with a 0.7 library. At 1.0, existing layouts and ordinals become stable; later layout changes will require a new versioned export.

The checked-in reference_snapshots/abi.json records the complete 0.7 schema digest, family-prefix counts, semantic ABI, C layout, and published 0.6 baseline. Tests require a deliberate version and snapshot update whenever the public ABI changes.

Trading Intent Helpers

Side intentionally remains trade direction only: Buy and Sell. Short-sale and cover semantics are represented by combining Side with PositionEffect and PositionType.

from finance_enums import transaction_intent

transaction_intent("open_long")   # Buy + Open + Long
transaction_intent("close_long")  # Sell + Close + Long
transaction_intent("open_short")  # Sell + Open + Short
transaction_intent("cover_short") # Buy + Close + Short

This follows the FIX-style separation between side/direction and position effect while giving downstream transaction schemas one canonical helper for common intents.

Reference Data Maintenance

The repository includes deterministic local tooling for standards-backed data maintenance.

  • scripts/generate_reference_data.py --check validates that rust/src/exchange_codes.rs remains aligned with the vendored MIC records in rust/src/exchange_records/*.tsv; --write can regenerate the compatibility table.
  • scripts/snapshot_reference_diffs.py --check compares current MIC, currency, country, and future-related snapshots with reference_snapshots/standards.json; --write refreshes the checked-in snapshot after an intentional data update.
  • make develop now performs an editable install with build isolation, and make rebuild-extension rebuilds the local extension in-place after Rust or PyO3 changes.

CFI Helpers

finance-enums now includes a broader ISO 10962 / CFI parser and builder.

  • parse_cfi() maps supported families into the existing enum surface for equities, bonds, funds, options, futures, swaps, financing, spot FX, spot commodities, forwards, spreads, and indices, while preserving the raw category, group, and attribute characters.
  • build_cfi() emits category/group-correct codes for the supported enum-backed families and also accepts raw category, group, and attributes inputs for ISO categories that the library does not model with dedicated enums yet.
  • build_cfi_from_classification() and CFIClassification.to_code() provide a structured round-trip path from typed enum-backed classifications back into ISO 10962 strings.
  • validate_cfi_classification() and CFIClassification.validate() check that the typed fields, raw CFI positions, and stored code all agree before downstream code persists or republishes a classification.
  • Listed options and futures now expose typed derivative attributes for underlier asset class, settlement or delivery semantics, and contract standardization instead of leaving those positions opaque.
  • Non-listed options, forwards, and strategies now support rate, credit, mixed-asset, and other high-value CFI underlier groups through UnderlyingAssetClass.
  • SecurityType.PerpetualFuture is available as a standalone library type and builds through the ISO futures CFI envelope, because ISO 10962 does not encode a dedicated perpetual-future category.
  • Remaining unsupported enum families still raise NotImplementedError during generation rather than guessing invalid codes.

Live Reference Tests

Live standards coverage tests are part of the normal pytest suite and are marked live_source.

  • Default local test runs skip them automatically.
  • Enable them by running FINANCE_ENUMS_RUN_LIVE_TESTS=1 /opt/homebrew/bin/python -m pytest -q finance_enums/tests.

Enum Reference

108 families, 1025 variants

Show all 108 enum families
Family Count Variants
AgricultureType 11 Corn, Wheat, Oats, Soybean, Cocoa, Coffee, Sugar, Cotton, OrangeJuice, Cattle, Hogs
BondType 3 Corporate, Government, Municipal
CommodityType 8 Energy, Metals, Agriculture, Livestock, Softs, Lumber, Freight, Carbon
LivestockType 3 Cattle, Feeder, Hogs
EnergyType 8 Crude, NaturalGas, HeatingOil, Gasoline, Electricity, LiquefiedNaturalGas, Propane, Uranium
EquityType 8 Shares, PreferredShares, ConvertibleShares, PreferredConvertibleShares, DepositoryReceipt, Warrant, Right, Unit
FundSubType 4 Index, Sector, Active, Passive
FundType 7 ExchangeTradedFund, MutualFund, RealEstateInvestmentTrust, UnitTrust, SocieteInvestissementCapitalVariable, OpenEndedInvestmentCompany, LimitedPartnership
VenueType 8 Exchange, AlternativeTradingSystem, MultilateralTradingFacility, OrganizedTradingFacility, DarkPool, ElectronicCommunicationNetwork, Dealer, RequestForQuote
MarketType 10 Equities, FixedIncome, ForeignExchange, Commodities, Derivatives, Options, Futures, Funds, DigitalAssets, OverTheCounter
TradingSession 8 Day, HalfDay, Morning, Afternoon, Evening, PreMarket, AfterHours, Overnight
TradingPhase 14 PreTrading, OpeningAuction, Continuous, IntradayAuction, VolatilityAuction, ClosingAuction, TradingAtLast, PostTrading, Closed, Break, PreCross, Cross, Quiescent, QuotingOnly
MarketState 4 Open, Closed, Halted, Suspended
AuctionType 6 Opening, Closing, Intraday, Volatility, Call, Indicative
SegmentType 7 Primary, Secondary, Segment, Composite, Lit, Dark, Retail
MarketStatusReason 8 ScheduledOpen, ScheduledClose, Halt, CircuitBreaker, Regulatory, Technical, Volatility, Holiday
IdentifierType 12 Ticker, InternationalSecuritiesIdentificationNumber, CommitteeOnUniformSecuritiesIdentificationProcedures, StockExchangeDailyOfficialList, FinancialInstrumentGlobalIdentifier, LegalEntityIdentifier, ReutersInstrumentCode, PrimaryReutersInstrumentCode, BloombergTicker, MarketIdentifierCode, OptionsSymbologyInitiative, Internal
Symbology 12 Ticker, ISIN, CUSIP, SEDOL, FIGI, LEI, RIC, PrimaryRIC, BBGTicker, MIC, OSI, Internal
TickerNamespace 8 Exchange, Composite, Bloomberg, Reuters, Vendor, OverTheCounter, Internal, Synthetic
PriceNotation 12 Decimal, PercentageOfPar, Yield, Spread, BasisPoints, Volatility, IndexPoints, Pips, PerUnit, Percentage, CleanPrice, DirtyPrice
PriceKind 6 Bid, Ask, Mid, Last, Settlement, VolumeWeightedAveragePrice
QuantityUnit 8 Shares, Contracts, Units, Lots, CurrencyAmount, NotionalAmount, FaceValue, Weight
CurrencyRole 6 Base, Quote, Settlement, Margin, ProfitAndLoss, Reporting
MarketCategory 14 NotSpecified, MultilateralTradingFacility, SystematicInternalizer, RegulatedMarket, AlternativeTradingSystem, OrganizedTradingFacility, Other, SwapExecutionFacility, RegulatedMarketOffBookSegment, ApprovedPublicationArrangement, CryptoAssetServiceProvider, DesignatedContractMarket, TradeReportingFacility, InterDealerQuotationSystem
VenueRegulatoryFlag 12 Multilateral, OrganizedTrading, TradeReporting, SwapExecution, Publication, SystematicInternalizer, RegulatedMarket, AlternativeTradingSystem, OffBookSegment, CryptoAssetServiceProvider, DesignatedContractMarket, InterDealerQuotation
ContractStyle 2 Standardized, NonStandardized
ContractUnit 6 Share, Unit, Contract, CurrencyAmount, NotionalAmount, IndexPoint
CouponType 6 Fixed, Floating, Zero, StepUp, InflationLinked, PaymentInKind
ScheduleFrequency 8 Daily, Weekly, Monthly, Quarterly, SemiAnnual, Annual, AtMaturity, AdHoc
DayCountConvention 6 Actual360, Actual365Fixed, ActualActual, Thirty360, Thirty360European, Business252
AmortizationType 6 Bullet, Linear, MortgageStyle, NegativeAmortization, SinkingFund, Accreting
Seniority 6 SeniorSecured, SeniorUnsecured, SeniorSubordinated, Subordinated, JuniorSubordinated, Preferred
CollateralType 6 GeneralCollateral, SpecificCollateral, CashCollateral, GovernmentBonds, CorporateBonds, Equities
MarginType 6 Initial, Variation, IndependentAmount, Maintenance, CrossMargin, PortfolioMargin
BorrowType 5 StockLoan, SecuritiesLending, MarginLoan, RepoBorrow, UnsecuredBorrow
RepoType 6 Bilateral, TriParty, HoldInCustody, Open, Term, Evergreen
AccountType 6 Cash, Margin, PrimeBrokerage, Custody, Settlement, Omnibus
BookType 6 Trading, Hedging, Treasury, Financing, Inventory, Custody
PositionType 5 Long, Short, Flat, Net, Gross
InventoryType 6 Available, Reserved, Borrowed, Lent, Encumbered, PendingSettlement
StrategyType 6 MarketMaking, Arbitrage, Hedging, Directional, Execution, RelativeValue
NettingType 5 None, Bilateral, Multilateral, Portfolio, CrossProduct
DistributionPolicy 5 Accumulating, Distributing, Income, Growth, Mixed
ShareClassHedging 5 Unhedged, CurrencyHedged, DurationHedged, CommodityHedged, PartialHedged
FinancingType 3 LoanLease, RepurchaseAgreement, SecuritiesLending
FutureAssetClass 2 Financial, Commodity
SwapLegType 8 Fixed, Floating, Inflation, Credit, Equity, Commodity, ForeignExchange, Basis
RateIndex 8 SecuredOvernightFinancingRate, FedFunds, EuroShortTermRate, SterlingOvernightIndexAverage, EuroInterbankOfferedRate, TokyoOvernightAverageRate, SwissAverageRateOvernight, ConsumerPriceIndex
CompoundingMethod 5 Simple, Compounded, Averaged, Flat, Straight
StubType 5 None, ShortFront, ShortBack, LongFront, LongBack
BarrierType 6 UpAndIn, UpAndOut, DownAndIn, DownAndOut, DoubleKnockIn, DoubleKnockOut
AveragingMethod 5 Arithmetic, Geometric, Weighted, VolumeWeighted, SpotAverage
ExoticOptionFeature 8 Barrier, Digital, Asian, Lookback, Cliquet, Chooser, Compound, Quanto
CorporateActionType 9 CashDividend, StockDividend, StockSplit, ReverseSplit, RightsIssue, SpinOff, Merger, TenderOffer, Delisting
ListingStatus 6 Listed, Suspended, Delisted, PendingListing, PendingDelisting, Unlisted
SecurityStatus 7 Active, Inactive, Matured, Defaulted, Called, Converted, Expired
ExerciseEventType 5 Automatic, Voluntary, Assignment, Expiration, EarlyExercise
TenderOfferType 5 Cash, Stock, Mixed, DutchAuction, ExchangeOffer
DelistingReason 6 Merger, Acquisition, Bankruptcy, Regulatory, Voluntary, FailureToMeetRequirements
LegRole 4 Payer, Receiver, Buyer, Seller
PayoffStyle 3 Linear, Optional, Binary
SettlementType 9 Physical, Cash, NonDeliverable, ElectAtExercise, DeliveryVersusPayment, PaymentVersusPayment, FreeOfPayment, HoldInCustody, TriParty
SettlementStatus 8 Pending, Instructed, Matched, Unmatched, Settled, PartiallySettled, Failed, Canceled
ClearingModel 5 Bilateral, CentralCounterparty, PrimeBroker, SponsoredAccess, AgentCleared
ClearingHouse 11 NationalSecuritiesClearingCorporation, FixedIncomeClearingCorporation, OptionsClearingCorporation, ChicagoMercantileExchange, IntercontinentalExchangeClear, LondonClearingHouse, EurexClearing, DepositoryTrustClearingCorporation, Euroclear, Clearstream, Other
SettlementFailReason 9 InsufficientSecurities, InsufficientCash, CounterpartyMismatch, InstructionMismatch, RegulatoryHold, MarketDeadlineMissed, CorporateAction, SystemIssue, Other
AllocationMethod 8 AveragePrice, SpecificLot, ProRata, FirstInFirstOut, LastInFirstOut, Manual, Automated, StepOut
GiveUpType 5 None, GiveUp, GiveIn, AveragePriceGiveUp, ClearingGiveUp
BenchmarkType 8 InterestRate, EquityIndex, FixedIncomeIndex, CommodityIndex, ForeignExchangeFixing, InflationIndex, CreditIndex, Custom
IndexWeightingMethod 8 MarketCapitalization, FloatAdjustedMarketCapitalization, PriceWeighted, EqualWeighted, Fundamental, VolatilityWeighted, RiskParity, ModifiedMarketCapitalization
CorporateActionAdjustmentType 7 None, PriceReturn, TotalReturn, NetTotalReturn, GrossTotalReturn, CapitalOnly, DivisorAdjustment
CalculationAgentType 7 Exchange, BenchmarkAdministrator, IndexProvider, CalculationAgent, Dealer, IndependentAgent, Internal
UnderlyingAssetClass 24 Agriculture, Basket, Commodity, Credit, Currency, Debt, Energy, Environmental, Equity, ExtractionResources, Future, GeneratedResources, Index, IndustrialProducts, InterestRate, Metals, MixedAssets, Option, Other, Paper, PolypropyleneProducts, Services, StockDividend, Swap
Industry 74 EnergyEquipmentAndServices, OilGasAndConsumableFuels, Chemicals, ConstructionMaterials, ContainersAndPackaging, MetalsAndMining, PaperAndForestProducts, AerospaceAndDefense, BuildingProducts, ConstructionAndEngineering, ElectricalEquipment, IndustrialConglomerates, Machinery, TradingCompaniesAndDistributors, CommercialServicesAndSupplies, ProfessionalServices, AirFreightAndLogistics, PassengerAirlines, MarineTransportation, GroundTransportation, TransportationInfrastructure, AutomobileComponents, Automobiles, HouseholdDurables, LeisureProducts, TextilesApparelAndLuxuryGoods, HotelsRestaurantsAndLeisure, DiversifiedConsumerServices, Distributors, BroadlineRetail, SpecialtyRetail, ConsumerStaplesDistributionAndRetail, Beverages, FoodProducts, Tobacco, HouseholdProducts, PersonalCareProducts, HealthCareEquipmentAndSupplies, HealthCareProvidersAndServices, HealthCareTechnology, Biotechnology, Pharmaceuticals, LifeSciencesToolsAndServices, Banks, FinancialServices, ConsumerFinance, CapitalMarkets, MortgageRealEstateInvestmentTrusts, Insurance, InformationTechnologyServices, Software, CommunicationsEquipment, TechnologyHardwareStorageAndPeripherals, ElectronicEquipmentInstrumentsAndComponents, SemiconductorsAndSemiconductorEquipment, DiversifiedTelecommunicationServices, WirelessTelecommunicationServices, Media, Entertainment, InteractiveMediaAndServices, ElectricUtilities, GasUtilities, MultiUtilities, WaterUtilities, IndependentPowerAndRenewableElectricityProducers, DiversifiedRealEstateInvestmentTrusts, IndustrialRealEstateInvestmentTrusts, HotelAndResortRealEstateInvestmentTrusts, OfficeRealEstateInvestmentTrusts, HealthCareRealEstateInvestmentTrusts, ResidentialRealEstateInvestmentTrusts, RetailRealEstateInvestmentTrusts, SpecializedRealEstateInvestmentTrusts, RealEstateManagementAndDevelopment
IndustryGroup 25 Energy, Materials, CapitalGoods, CommercialAndProfessionalServices, Transportation, AutomobilesAndComponents, ConsumerDurablesAndApparel, ConsumerServices, ConsumerDiscretionaryDistributionAndRetail, ConsumerStaplesDistributionAndRetail, FoodBeverageAndTobacco, HouseholdAndPersonalProducts, HealthCareEquipmentAndServices, PharmaceuticalsBiotechnologyAndLifeSciences, Banks, FinancialServices, Insurance, SoftwareAndServices, TechnologyHardwareAndEquipment, SemiconductorsAndSemiconductorEquipment, TelecommunicationServices, MediaAndEntertainment, Utilities, EquityRealEstateInvestmentTrusts, RealEstateManagementAndDevelopment
InstrumentType 11 Spot, Option, Forward, Future, Swap, Financing, Right, Warrant, Spread, Pair, Basket
MetalType 13 Gold, Silver, Copper, Platinum, Palladium, Aluminum, Zinc, Nickel, Lead, Tin, Steel, Cobalt, Iron
MutualFundEndedness 2 OpenEnded, ClosedEnded
OptionExerciseType 3 American, European, Bermudan
OptionType 2 Call, Put
OrderStatus 9 New, PendingNew, PartiallyFilled, Filled, Canceled, Rejected, Expired, Suspended, PendingCancel
ExecutionType 8 New, Trade, Canceled, Replaced, Rejected, Expired, TradeCorrect, TradeCancel
ExecutionInstruction 8 AllOrNone, DoNotIncrease, DoNotReduce, ParticipateDoNotInitiate, StayOnOfferSide, StayOnBidSide, LastPeg, MidPricePeg
LiquidityFlag 6 Added, Removed, RoutedOut, Auction, None, Neutral
PositionEffect 5 Open, Close, CloseToday, CloseYesterday, Rolled
OrderCapacity 5 Agency, Principal, RisklessPrincipal, Proprietary, MarketMaker
ShortSaleRestriction 5 None, AlternativeUptickRule, UptickRule, LocateRequired, BorrowRequired
OrderFlag 4 None, FillOrKill, AllOrNone, ImmediateOrCancel
OrderType 7 Limit, Market, Stop, StopLimit, MarketOnClose, LimitOnClose, Pegged
QuoteCondition 6 Regular, Indicative, Manual, FastTrading, SlowTrading, Closed
TradeCondition 8 Regular, Auction, AveragePrice, Block, DerivativelyPriced, PriorReferencePrice, OutOfSequence, Canceled
CrossType 5 Internal, Exchange, Broker, OpeningAuction, ClosingAuction
Sector 11 Energy, Materials, Industrials, ConsumerDiscretionary, ConsumerStaples, HealthCare, Financials, InformationTechnology, CommunicationServices, Utilities, RealEstate
SecurityType 16 Equity, Option, Bond, Forward, Future, PerpetualFuture, Swap, Financing, Spread, Fund, Commodity, Currency, Pair, Index, Warrant, Right
Side 2 Buy, Sell
SwapType 6 InterestRate, Commodity, Equity, Credit, ForeignExchange, Other
SubIndustry 163 OilAndGasDrilling, OilAndGasEquipmentAndServices, IntegratedOilAndGas, OilAndGasExplorationAndProduction, OilAndGasRefiningAndMarketing, OilAndGasStorageAndTransportation, CoalAndConsumableFuels, CommodityChemicals, DiversifiedChemicals, FertilizersAndAgriculturalChemicals, IndustrialGases, SpecialtyChemicals, ConstructionMaterials, MetalGlassAndPlasticContainers, PaperAndPlasticPackagingProductsAndMaterials, Aluminum, DiversifiedMetalsAndMining, Copper, Gold, PreciousMetalsAndMinerals, Silver, Steel, ForestProducts, PaperProducts, AerospaceAndDefense, BuildingProducts, ConstructionAndEngineering, ElectricalComponentsAndEquipment, HeavyElectricalEquipment, IndustrialConglomerates, ConstructionMachineryAndHeavyTransportationEquipment, AgriculturalAndFarmMachinery, IndustrialMachinerySuppliesAndComponents, TradingCompaniesAndDistributors, CommercialPrinting, EnvironmentalAndFacilitiesServices, OfficeServicesAndSupplies, DiversifiedSupportServices, SecurityAndAlarmServices, HumanResourcesAndEmploymentServices, ResearchAndConsultingServices, DataProcessingAndOutsourcedServices, AirFreightAndLogistics, PassengerAirlines, MarineTransportation, RailTransportation, CargoGroundTransportation, PassengerGroundTransportation, AirportServices, HighwaysAndRailtracks, MarinePortsAndServices, AutomotivePartsAndEquipment, TiresAndRubber, AutomobileManufacturers, MotorcycleManufacturers, ConsumerElectronics, HomeFurnishings, Homebuilding, HouseholdAppliances, HousewaresAndSpecialties, LeisureProducts, ApparelAccessoriesAndLuxuryGoods, Footwear, Textiles, CasinosAndGaming, HotelsResortsAndCruiseLines, LeisureFacilities, Restaurants, EducationServices, SpecializedConsumerServices, Distributors, BroadlineRetail, ApparelRetail, ComputerAndElectronicsRetail, HomeImprovementRetail, OtherSpecialtyRetail, AutomotiveRetail, HomeFurnishingRetail, DrugRetail, FoodDistributors, FoodRetail, ConsumerStaplesMerchandiseRetail, Brewers, DistillersAndVintners, SoftDrinksAndNonAlcoholicBeverages, AgriculturalProductsAndServices, PackagedFoodsAndMeats, Tobacco, HouseholdProducts, PersonalCareProducts, HealthCareEquipment, HealthCareSupplies, HealthCareDistributors, HealthCareServices, HealthCareFacilities, ManagedHealthCare, HealthCareTechnology, Biotechnology, Pharmaceuticals, LifeSciencesToolsAndServices, DiversifiedBanks, RegionalBanks, DiversifiedFinancialServices, MultiSectorHoldings, SpecializedFinance, CommercialAndResidentialMortgageFinance, TransactionAndPaymentProcessingServices, ConsumerFinance, AssetManagementAndCustodyBanks, InvestmentBankingAndBrokerage, DiversifiedCapitalMarkets, FinancialExchangesAndData, MortgageRealEstateInvestmentTrusts, InsuranceBrokers, LifeAndHealthInsurance, MultiLineInsurance, PropertyAndCasualtyInsurance, Reinsurance, InformationTechnologyConsultingAndOtherServices, InternetServicesAndInfrastructure, ApplicationSoftware, SystemsSoftware, CommunicationsEquipment, TechnologyHardwareStorageAndPeripherals, ElectronicEquipmentAndInstruments, ElectronicComponents, ElectronicManufacturingServices, TechnologyDistributors, SemiconductorMaterialsAndEquipment, Semiconductors, AlternativeCarriers, IntegratedTelecommunicationServices, WirelessTelecommunicationServices, Advertising, Broadcasting, CableAndSatellite, Publishing, MoviesAndEntertainment, InteractiveHomeEntertainment, InteractiveMediaAndServices, ElectricUtilities, GasUtilities, MultiUtilities, WaterUtilities, IndependentPowerProducersAndEnergyTraders, RenewableElectricity, DiversifiedRealEstateInvestmentTrusts, IndustrialRealEstateInvestmentTrusts, HotelAndResortRealEstateInvestmentTrusts, OfficeRealEstateInvestmentTrusts, HealthCareRealEstateInvestmentTrusts, MultiFamilyResidentialRealEstateInvestmentTrusts, SingleFamilyResidentialRealEstateInvestmentTrusts, RetailRealEstateInvestmentTrusts, OtherSpecializedRealEstateInvestmentTrusts, SelfStorageRealEstateInvestmentTrusts, TelecomTowerRealEstateInvestmentTrusts, TimberRealEstateInvestmentTrusts, DataCenterRealEstateInvestmentTrusts, DiversifiedRealEstateActivities, RealEstateOperatingCompanies, RealEstateDevelopment, RealEstateServices
TimeInForce 8 None, Day, GoodTillCanceled, ImmediateOrCancel, FillOrKill, GoodTillDate, AtOpen, AtClose
ExecutionDisposition 3 Regular, Bust, Correct
ForeignExchangeTenor 52 Today, Tomorrow, Spot, SpotNext, Day2, Day3, Day4, Week1, Week2, Week3, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, BrazilianFuturesRoll1, BrazilianFuturesRoll2, Year1, Year2, Year3, Year4, Year5, Year6, Year7, Year8, Year9, Year10, Year15, Year20, Year25, Year30, InternationalMonetaryMarket1, InternationalMonetaryMarket2, InternationalMonetaryMarket3, InternationalMonetaryMarket4
FactorGroup 5 Style, Industry, Country, Currency, Market
FamaFrenchFactor 5 Market, Size, Value, Profitability, Investment
FutureMonthCode 12 F, G, H, J, K, M, N, Q, U, V, X, Z
FutureSpreadLegType 4 BuyLeg, SellLeg, NearLeg, FarLeg
FutureSpreadSubType 2 Asset, Calendar
StyleFactor 6 Value, Momentum, Quality, Size, Volatility, Yield
OrderSide 4 Buy, Sell, SellShort, BuyToCover
TickDirection 2 Up, Down

Metadata

Release files for finance-enums 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for finance-enums 0.8.0
File Actions
finance_enums-0.8.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for finance_enums-0.8.0-cp311-abi3-win_amd64.whl
finance_enums-0.8.0-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details for finance_enums-0.8.0-cp311-abi3-manylinux_2_28_x86_64.whl
finance_enums-0.8.0-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details for finance_enums-0.8.0-cp311-abi3-manylinux_2_28_aarch64.whl
finance_enums-0.8.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for finance_enums-0.8.0-cp311-abi3-macosx_11_0_arm64.whl

Total release size: 2.5 MB

Release files / finance_enums-0.8.0-cp311-abi3-win_amd64.whl

Download URL finance_enums-0.8.0-cp311-abi3-win_amd64.whl
Size 466.1 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
e34d4ddf4687bf2a60dd948622acdc2be64b722a772cda3372c5aadff8c8649c
BLAKE2b-256 checksum
How to use checksums
a0e50309c8db212acc36acd0b9ab46cfbcce09fa2a22748f377e016c1336719b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / finance_enums-0.8.0-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL finance_enums-0.8.0-cp311-abi3-manylinux_2_28_x86_64.whl
Size 706.6 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
a2ee5a9321500fa6abc06b78252a63f6e8ba3645c270af8726501a7565dd7fff
BLAKE2b-256 checksum
How to use checksums
7d2c014b9eec55b623fc6a14285e033311aebe5eb7d98d14f61619057d06476c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / finance_enums-0.8.0-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL finance_enums-0.8.0-cp311-abi3-manylinux_2_28_aarch64.whl
Size 713.1 kB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
28f0ac22d1fedb15edea173388f7ffe584b6c8c8736ce701eaad660041c68bb9
BLAKE2b-256 checksum
How to use checksums
94b48c4e97baf5985dbb3811226479f7a8e583194b9e389ef7c4b89dc7834783
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / finance_enums-0.8.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL finance_enums-0.8.0-cp311-abi3-macosx_11_0_arm64.whl
Size 650.5 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
30eff5e4fa7179324a44b2f957c008adab6a59b10630e074031eb3220fe60e6a
BLAKE2b-256 checksum
How to use checksums
5fb9c36eb3edc6eccf014865d048c03fe0bc52d013e6d09cf9abadb002efff0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for finance-enums 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page