Skip to content

Repository files navigation

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
  • Financing: CollateralType, MarginType, BorrowType, RepoType, FinancingType
  • Swaps and structured products: SwapType, SwapLegType, BarrierType, AveragingMethod, ExoticOptionFeature
  • Post-trade and clearing: SettlementType, DeliveryType, SettlementStatus, ClearingModel, ClearingHouse, SettlementFailReason, AllocationMethod, GiveUpType
  • Rates and schedules: DayCountConvention, BusinessDayConvention, RollConvention, StubType, ScheduleFrequency, PeriodUnit, PeriodTiming, RateIndex, CompoundingMethod, OvernightAccrualMethod, PriceIndexCalculationMethod, InterestRateSwapType, InterestRateProductType, SwaptionCashSettlementMethod
  • Bonds and money markets: BondType, IssuerType, CouponType, Seniority, RedemptionFeature, DebtGuaranteeType, AmortizationType, SecurityForm, AssetBackedCollateralType, MoneyMarketInstrumentType, YieldType, DurationType
  • Credit: RestructuringClause, CreditEventType, ObligationCategory, ObligationCharacteristic, CreditDefaultSwapTransactionType, CreditRatingAgency, CreditRatingOutlook, CreditQuality
  • Foreign exchange: ForeignExchangeProductType, ForeignExchangeTenor, ForeignExchangeQuoteBasis, ForeignExchangeBenchmark, ForeignExchangeDeltaConvention, ForeignExchangeAtTheMoneyConvention, ForeignExchangeVolatilityQuoteType, OptionStrikeQuoteBasis, OptionPremiumQuoteBasis, TouchType, PayoutTiming
  • 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, TimeInForce
  • Market data: QuoteCondition, TradeCondition, AggressorSide, 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 declare an Invalid = 0 variant.
  • ISO code families use their own standard "no value" code at ordinal 0 instead: Currency → XXX, CountryCodeAlpha2 → XX, CountryCodeAlpha3 → XXX, ExchangeCode → XXXX.

Families are plain Rust enums under rust/src/enums/, one directory per domain (fixed_income/, credit/, foreign_exchange/, trading/, ...) and one file per topic, marked with #[abi_safe_enum] from the abi_safe_enum crate in rust/:

#[abi_safe_enum]
pub enum OrderStatus {
    Invalid = 0,
    New,          // 1
    Filled = 10,  // explicit ordinal; gaps are allowed
    Canceled,     // 11
}

The attribute rejects duplicate ordinals and families without an ordinal-0 variant, and gives each enum the smallest #[repr] (u8, u16, or u32) that holds its largest ordinal. The width is part of the ABI, so a family near a boundary pins a wider one with #[abi_safe_enum(repr = u16)], as the country code families do. Each enum gets NAME, VARIANTS, ORDINALS, ordinal() / from_ordinal(), name() / from_name(), Display, and FromStr.

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 crate is finance_enums (rust/):

[dependencies]
finance_enums = "0.9"
use finance_enums::data::ExchangeCode_VARIANTS;

Its capi feature adds the C ABI exports and builds libfinance_enums; Rust users who only need the enums leave it off.

Note

This library was generated using copier from the Base Python Project Template repository.

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.

  • The finance_enums crate's capi feature (rust/src/capi.rs) 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, FE_<Family>_MAX_ORDINAL, and the FE_ENUMS_ORDINAL_VALID(family, ordinal) macro, and matching C++ enum class definitions in namespace fe that use the same width as the Rust enum, each with an fe::enum_traits<Family> specialization. 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 every family in the C ABI export, including Currency and ExchangeCode. Ordinals can have gaps, so FE_<Family>_COUNT is a variant count, not a bound; check an ordinal with FE_ENUMS_ORDINAL_VALID or checked_from_ordinal.

A few C++ enumerators share a name with a <windows.h> macro, such as fe::CountryCodeAlpha2::IN. The header compiles either way, but code that names such an enumerator after including <windows.h> needs #undef IN first.

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

auto sec = fe::SecurityType::Equity;                 // enum class, std::uint8_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))
    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::{abi_compatible, assert_abi_compatible};
use finance_enums::{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

143 families, 1370 variants

Show all 143 enum families
Family Count Variants
BenchmarkType 8 InterestRate, EquityIndex, FixedIncomeIndex, CommodityIndex, ForeignExchangeFixing, InflationIndex, CreditIndex, Custom
IndexWeightingMethod 8 MarketCapitalization, FloatAdjustedMarketCapitalization, PriceWeighted, EqualWeighted, Fundamental, VolatilityWeighted, RiskParity, ModifiedMarketCapitalization
CalculationAgentType 7 Exchange, BenchmarkAdministrator, IndexProvider, CalculationAgent, Dealer, IndependentAgent, Internal
RestructuringClause 4 NoRestructuring, FullRestructuring, ModifiedRestructuring, ModifiedModifiedRestructuring
CreditEventType 11 Bankruptcy, FailureToPay, Restructuring, ObligationAcceleration, ObligationDefault, RepudiationMoratorium, GovernmentalIntervention, Writedown, ImpliedWritedown, MaturityExtension, DistressedRatingsDowngrade
ObligationCategory 6 Payment, BorrowedMoney, ReferenceObligationsOnly, Bond, Loan, BondOrLoan
ObligationCharacteristic 15 NotSubordinated, SpecifiedCurrency, NotSovereignLender, NotDomesticCurrency, NotDomesticLaw, Listed, NotDomesticIssuance, NotContingent, AssignableLoan, ConsentRequiredLoan, DirectLoanParticipation, Transferable, MaximumMaturity, AcceleratedOrMatured, NotBearer
CreditDefaultSwapTransactionType 13 NorthAmericanCorporate, EuropeanCorporate, EuropeanFinancialCorporate, WesternEuropeanSovereign, EmergingEuropeanCorporate, AsiaCorporate, AsiaSovereign, JapanCorporate, JapanSovereign, AustraliaCorporate, LatinAmericaSovereign, NewZealandCorporate, SingaporeCorporate
CreditRatingAgency 9 StandardAndPoors, Moodys, Fitch, DominionBondRatingService, AmBest, JapanCreditRatingAgency, RatingAndInvestmentInformation, KrollBondRatingAgency, ScopeRatings
CreditRatingOutlook 4 Positive, Negative, Stable, Developing
CreditQuality 4 InvestmentGrade, HighYield, Distressed, Defaulted
FactorGroup 5 Style, Industry, Country, Currency, Market
FamaFrenchFactor 5 Market, Size, Value, Profitability, Investment
StyleFactor 6 Value, Momentum, Quality, Size, Volatility, Yield
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
FinancingType 3 LoanLease, RepurchaseAgreement, SecuritiesLending
BondType 11 Corporate, Government, Municipal, Agency, Supranational, CoveredBond, AssetBacked, MortgageBacked, Convertible, StructuredNote, CollateralizedDebtObligation
IssuerType 10 Sovereign, CentralBank, QuasiGovernment, RegionalGovernment, LocalGovernment, Supranational, Corporate, FinancialInstitution, SpecialPurposeVehicle, Fund
CouponType 11 Fixed, Floating, Zero, StepUp, InflationLinked, PaymentInKind, InverseFloating, IndexLinked, Structured, StepDown, InterestOnly
Seniority 10 SeniorSecured, SeniorUnsecured, SeniorSubordinated, Subordinated, JuniorSubordinated, Preferred, SeniorNonPreferred, LowerTierTwoSubordinated, UpperTierTwoSubordinated, TierOneSubordinated
AmortizationType 6 Bullet, Linear, MortgageStyle, NegativeAmortization, SinkingFund, Accreting
RedemptionFeature 9 Callable, Puttable, Convertible, Exchangeable, ContingentConvertible, Sinkable, Extendible, Perpetual, MakeWholeCallable
DebtGuaranteeType 5 GovernmentGuaranteed, JointlyGuaranteed, Secured, Unsecured, NegativePledge
SecurityForm 3 Bearer, Registered, BearerOrRegistered
AssetBackedCollateralType 6 HomeEquityLoan, AutoLoan, StudentLoan, CreditCardReceivable, Mortgage, Other
DayCountConvention 22 Actual360, Actual365Fixed, ActualActualIsda, Thirty360Isda, Thirty360European, Business252, ActualActualIcma, ActualActualAfb, ActualActualYear, Actual365Actual, Actual365Leap, Actual364, Actual36525, NoLeap360, NoLeap365, Thirty360UnitedStates, Thirty360UnitedStatesEndOfMonth, Thirty360PublicSecuritiesAssociation, Thirty360EuropeanIsda, Thirty360EuropeanPlus, Thirty365European, OneOne
MoneyMarketInstrumentType 9 TreasuryBill, CommercialPaper, CertificateOfDeposit, BankersAcceptance, MediumTermNote, TimeDeposit, PromissoryNote, BankNote, EuroCommercialPaper
RateIndex 8 SecuredOvernightFinancingRate, EffectiveFederalFundsRate, EuroShortTermRate, SterlingOvernightIndexAverage, EuroInterbankOfferedRate, TokyoOvernightAverageRate, SwissAverageRateOvernight, ConsumerPriceIndex
CompoundingMethod 4 None, Straight, Flat, SpreadExclusive
OvernightAccrualMethod 4 Compounded, OvernightCompoundedAnnualRate, Averaged, AveragedDaily
PriceIndexCalculationMethod 3 Monthly, Interpolated, InterpolatedJapan
BusinessDayConvention 7 Unadjusted, Following, ModifiedFollowing, Preceding, ModifiedPreceding, Nearest, FloatingRateNote
RollConvention 46 None, EndOfMonth, InternationalMoneyMarket, InternationalMoneyMarketAustralia, InternationalMoneyMarketCanada, InternationalMoneyMarketNewZealand, SydneyFuturesExchange, TreasuryBill, FloatingRateNote, DayOfMonth1, DayOfMonth2, DayOfMonth3, DayOfMonth4, DayOfMonth5, DayOfMonth6, DayOfMonth7, DayOfMonth8, DayOfMonth9, DayOfMonth10, DayOfMonth11, DayOfMonth12, DayOfMonth13, DayOfMonth14, DayOfMonth15, DayOfMonth16, DayOfMonth17, DayOfMonth18, DayOfMonth19, DayOfMonth20, DayOfMonth21, DayOfMonth22, DayOfMonth23, DayOfMonth24, DayOfMonth25, DayOfMonth26, DayOfMonth27, DayOfMonth28, DayOfMonth29, DayOfMonth30, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
StubType 8 None, ShortFront, ShortBack, LongFront, LongBack, SmartFront, SmartBack, Both
ScheduleFrequency 12 Daily, Weekly, Monthly, Quarterly, SemiAnnual, Annual, AtMaturity, AdHoc, Biweekly, EveryFourWeeks, EveryTwoMonths, EveryFourMonths
PeriodUnit 4 Day, Week, Month, Year
PeriodTiming 2 PeriodStart, PeriodEnd
SwapType 6 InterestRate, Commodity, Equity, Credit, ForeignExchange, Other
SwapLegType 9 Fixed, Floating, Inflation, Credit, Equity, Commodity, ForeignExchange, Basis, Overnight
InterestRateSwapType 7 FixedForFloating, Basis, OvernightIndex, CrossCurrency, ZeroCouponInflation, YearOnYearInflation, Amortizing
InterestRateProductType 7 Swap, ForwardRateAgreement, Cap, Floor, Collar, Swaption, Future
SwaptionCashSettlementMethod 4 CashPrice, ParYield, ZeroCouponYield, CollateralizedCashPrice
YieldType 28 AfterTaxYield, AnnualYield, YieldAtIssue, YieldToAverageMaturity, BookYield, YieldToNextCall, YieldChangeSinceClose, CompoundYield, CurrentYield, TrueGrossYield, YieldWithInflationAssumption, InverseFloaterBondYield, MostRecentClosingYield, YieldToLongestAverageLife, MarkToMarketYield, YieldToMaturity, YieldToNextRefund, OpenAverageYield, PreviousCloseYield, ProceedsYield, YieldToNextPut, SemiAnnualYield, YieldToShortestAverageLife, SimpleYield, TaxEquivalentYield, YieldToTenderDate, TrueYield, YieldToWorst
DurationType 3 Simple, Macaulay, Modified
ForeignExchangeDeltaConvention 4 Spot, Forward, PremiumAdjustedSpot, PremiumAdjustedForward
ForeignExchangeAtTheMoneyConvention 4 Spot, Forward, DeltaNeutral, PutCallFiftyDelta
ForeignExchangeVolatilityQuoteType 3 AtTheMoney, RiskReversal, Butterfly
OptionStrikeQuoteBasis 2 PutCurrencyPerCallCurrency, CallCurrencyPerPutCurrency
OptionPremiumQuoteBasis 5 PercentageOfCallCurrencyAmount, PercentageOfPutCurrencyAmount, CallCurrencyPerPutCurrency, PutCurrencyPerCallCurrency, Explicit
ForeignExchangeProductType 5 Spot, OutrightForward, Swap, NonDeliverableForward, NonDeliverableSwap
ForeignExchangeTenor 54 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, TomorrowNext, BrokenDate
ForeignExchangeQuoteBasis 2 BaseCurrencyPerQuoteCurrency, QuoteCurrencyPerBaseCurrency
ForeignExchangeBenchmark 6 WorldMarketsReuters, Bloomberg, EuropeanCentralBank, CentralBank, MitsubishiUfj, Other
SecurityType 16 Equity, Option, Bond, Forward, Future, PerpetualFuture, Swap, Financing, Spread, Fund, Commodity, Currency, Pair, Index, Warrant, Right
InstrumentType 11 Spot, Option, Forward, Future, Swap, Financing, Right, Warrant, Spread, Pair, Basket
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
CommodityType 8 Energy, Metals, Agriculture, Livestock, Softs, Lumber, Freight, Carbon
EnergyType 8 Crude, NaturalGas, HeatingOil, Gasoline, Electricity, LiquefiedNaturalGas, Propane, Uranium
MetalType 13 Gold, Silver, Copper, Platinum, Palladium, Aluminum, Zinc, Nickel, Lead, Tin, Steel, Cobalt, Iron
AgricultureType 11 Corn, Wheat, Oats, Soybean, Cocoa, Coffee, Sugar, Cotton, OrangeJuice, Cattle, Hogs
LivestockType 3 Cattle, Feeder, Hogs
ContractStyle 2 Standardized, NonStandardized
ContractUnit 6 Share, Unit, Contract, CurrencyAmount, NotionalAmount, IndexPoint
PayoffStyle 3 Linear, Optional, Binary
LegRole 4 Payer, Receiver, Buyer, Seller
EquityType 8 Shares, PreferredShares, ConvertibleShares, PreferredConvertibleShares, DepositoryReceipt, Warrant, Right, Unit
FundType 7 ExchangeTradedFund, MutualFund, RealEstateInvestmentTrust, UnitTrust, SocieteInvestissementCapitalVariable, OpenEndedInvestmentCompany, LimitedPartnership
FundSubType 4 Index, Sector, Active, Passive
MutualFundEndedness 2 OpenEnded, ClosedEnded
DistributionPolicy 5 Accumulating, Distributing, Income, Growth, Mixed
ShareClassHedging 5 Unhedged, CurrencyHedged, DurationHedged, CommodityHedged, PartialHedged
FutureAssetClass 2 Financial, Commodity
FutureMonthCode 12 F, G, H, J, K, M, N, Q, U, V, X, Z
FutureSpreadLegType 4 BuyLeg, SellLeg, NearLeg, FarLeg
FutureSpreadSubType 2 Asset, Calendar
OptionType 2 Call, Put
OptionExerciseType 3 American, European, Bermudan
ExoticOptionFeature 8 Barrier, Digital, Asian, Lookback, Cliquet, Chooser, Compound, Quanto
BarrierType 6 UpAndIn, UpAndOut, DownAndIn, DownAndOut, DoubleKnockIn, DoubleKnockOut
AveragingMethod 5 Arithmetic, Geometric, Weighted, VolumeWeighted, SpotAverage
TouchType 4 OneTouch, NoTouch, DoubleOneTouch, DoubleNoTouch
PayoutTiming 2 Immediate, Deferred
CorporateActionType 9 CashDividend, StockDividend, StockSplit, ReverseSplit, RightsIssue, SpinOff, Merger, TenderOffer, Delisting
CorporateActionAdjustmentType 7 None, PriceReturn, TotalReturn, NetTotalReturn, GrossTotalReturn, CapitalOnly, DivisorAdjustment
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
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 7 Open, Closed, Halted, Suspended, Outage, PartialOutage, Delayed
AuctionType 6 Opening, Closing, Intraday, Volatility, Call, Indicative
MarketStatusReason 8 ScheduledOpen, ScheduledClose, Halt, CircuitBreaker, Regulatory, Technical, Volatility, Holiday
VenueType 8 Exchange, AlternativeTradingSystem, MultilateralTradingFacility, OrganizedTradingFacility, DarkPool, ElectronicCommunicationNetwork, Dealer, RequestForQuote
MarketType 10 Equities, FixedIncome, ForeignExchange, Commodities, Derivatives, Options, Futures, Funds, DigitalAssets, OverTheCounter
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
SegmentType 7 Primary, Secondary, Segment, Composite, Lit, Dark, Retail
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

Releases

Used by

Contributors

Languages