Table of Contents

Struct Currency

Namespace
DatabentoDotNet.Reference
Assembly
DatabentoDotNet.Reference.dll

A currency code — ISO 4217 alpha-3.

[JsonConverter(typeof(ReferenceCodeJsonConverter<Currency>))]
public readonly record struct Currency : IReferenceCode<Currency>, IEquatable<Currency>
Implements
Inherited Members

Remarks

An open set: a code this library does not know is carried, not lost. Upstream ends this enum in an Unknown(String) variant (enums.rs:1169) so a code Databento adds next month round-trips untouched, and a C# enum cannot hold a payload. See IReferenceCode<TSelf> for the shape this takes instead and why.

The members come from the CUREN group of the vendored corporate_actions.list_enums response, which is the oracle rather than a count typed into an issue.

Constructors

Currency(string)

Wraps a wire code, known or not. Prefer a named member such as Aed where one exists, and From(string?) where the value came from the server.

public Currency(string code)

Parameters

code string

The wire code.

Exceptions

ArgumentException

code is null or empty. A blank code is the absence of a value, which is default.

Properties

Aed

UAE Dirham (AED).

public static Currency Aed { get; }

Property Value

Currency

Afn

Afghanis (AFN).

public static Currency Afn { get; }

Property Value

Currency

All

Albanian Lek (ALL).

public static Currency All { get; }

Property Value

Currency

Amd

Armenian Dram (AMD).

public static Currency Amd { get; }

Property Value

Currency

Ang

Netherlands Antilles Guilders (ANG).

public static Currency Ang { get; }

Property Value

Currency

Aoa

Angola Kwanza (AOA).

public static Currency Aoa { get; }

Property Value

Currency

Ars

Argentine Peso (ARS).

public static Currency Ars { get; }

Property Value

Currency

Aud

Australian Dollar (AUD).

public static Currency Aud { get; }

Property Value

Currency

Awg

Aruban Guilder (AWG).

public static Currency Awg { get; }

Property Value

Currency

Azn

Azerbaijani Manat (AZN).

public static Currency Azn { get; }

Property Value

Currency

Bam

Convertible Marks (BAM).

public static Currency Bam { get; }

Property Value

Currency

Bbd

Barbados Dollar (BBD).

public static Currency Bbd { get; }

Property Value

Currency

Bdt

Bangladesh Taka (BDT).

public static Currency Bdt { get; }

Property Value

Currency

Bgn

Bulgarian Lev (BGN).

public static Currency Bgn { get; }

Property Value

Currency

Bhd

Bahraini Dinar (BHD).

public static Currency Bhd { get; }

Property Value

Currency

Bif

Burundi Franc (BIF).

public static Currency Bif { get; }

Property Value

Currency

Bmd

Bermuda Dollar (BMD).

public static Currency Bmd { get; }

Property Value

Currency

Bnd

Brunei Dollar (BND).

public static Currency Bnd { get; }

Property Value

Currency

Bob

Boliviano (BOB).

public static Currency Bob { get; }

Property Value

Currency

Bov

Mvdol (BOV).

public static Currency Bov { get; }

Property Value

Currency

Brl

Brazilian Real (BRL).

public static Currency Brl { get; }

Property Value

Currency

Bsd

Bahamas Dollar (BSD).

public static Currency Bsd { get; }

Property Value

Currency

Btn

Bhutanese Ngultrum (BTN).

public static Currency Btn { get; }

Property Value

Currency

Bwp

Botswana Pula (BWP).

public static Currency Bwp { get; }

Property Value

Currency

Byn

Belarusian Ruble (New) (BYN).

public static Currency Byn { get; }

Property Value

Currency

Bzd

Belize Dollar (BZD).

public static Currency Bzd { get; }

Property Value

Currency

Cad

Canadian Dollar (CAD).

public static Currency Cad { get; }

Property Value

Currency

Cdf

Congolese Franc (CDF).

public static Currency Cdf { get; }

Property Value

Currency

Chf

Swiss Francs (CHF).

public static Currency Chf { get; }

Property Value

Currency

Clf

Chilean Unidad de Fomento (CLF).

public static Currency Clf { get; }

Property Value

Currency

Clp

Chilean Peso (CLP).

public static Currency Clp { get; }

Property Value

Currency

Cny

Chinese Yuan Renminbi (CNY).

public static Currency Cny { get; }

Property Value

Currency

Code

The wire code, or null when this names no value.

public string? Code { get; }

Property Value

string

Cop

Colombian Peso (COP).

public static Currency Cop { get; }

Property Value

Currency

Cou

Colombian (Unidad de Valor Real) (COU).

public static Currency Cou { get; }

Property Value

Currency

Crc

Costa Rican Colon (CRC).

public static Currency Crc { get; }

Property Value

Currency

Cup

Cuban Peso (CUP).

public static Currency Cup { get; }

Property Value

Currency

Cve

Cape Verde Escudo (CVE).

public static Currency Cve { get; }

Property Value

Currency

Cyp

Cypriot Pound (CYP).

public static Currency Cyp { get; }

Property Value

Currency

Czk

Czech Koruna (CZK).

public static Currency Czk { get; }

Property Value

Currency

Djf

Djibouti Franc (DJF).

public static Currency Djf { get; }

Property Value

Currency

Dkk

Danish Kroner (DKK).

public static Currency Dkk { get; }

Property Value

Currency

Dop

Dominican Peso (DOP).

public static Currency Dop { get; }

Property Value

Currency

Dzd

Algerian Dinar (DZD).

public static Currency Dzd { get; }

Property Value

Currency

Ecs

Ecuador Sucre (ECS).

public static Currency Ecs { get; }

Property Value

Currency

Eek

Estonian Kroon (EEK).

public static Currency Eek { get; }

Property Value

Currency

Egp

Egyptian Pound (EGP).

public static Currency Egp { get; }

Property Value

Currency

Ern

Eritrean Nakfa (ERN).

public static Currency Ern { get; }

Property Value

Currency

Etb

Ethiopian Birr (ETB).

public static Currency Etb { get; }

Property Value

Currency

Eur

Euros (EUR).

public static Currency Eur { get; }

Property Value

Currency

Fjd

Fiji Dollar (FJD).

public static Currency Fjd { get; }

Property Value

Currency

Fkp

Falklands Pounds (FKP).

public static Currency Fkp { get; }

Property Value

Currency

Gbp

Pound Sterling (GBP).

public static Currency Gbp { get; }

Property Value

Currency

Gbx

GB Pence (GBX).

public static Currency Gbx { get; }

Property Value

Currency

Gel

Georgian Lari (GEL).

public static Currency Gel { get; }

Property Value

Currency

Ghs

Ghanaian Cedi (GHS).

public static Currency Ghs { get; }

Property Value

Currency

Gip

Gibraltar Pounds (GIP).

public static Currency Gip { get; }

Property Value

Currency

Gmd

Gambian Dalasi (GMD).

public static Currency Gmd { get; }

Property Value

Currency

Gnf

Guinean Franc (GNF).

public static Currency Gnf { get; }

Property Value

Currency

Grd

Greek Drachma (GRD).

public static Currency Grd { get; }

Property Value

Currency

Gtq

Guatamala Quetzal (GTQ).

public static Currency Gtq { get; }

Property Value

Currency

Gyd

Guyana Dollar (GYD).

public static Currency Gyd { get; }

Property Value

Currency

HasValue

true when this names a code — known or not.

public bool HasValue { get; }

Property Value

bool

Hkd

Hong Kong Dollar (HKD).

public static Currency Hkd { get; }

Property Value

Currency

Hnl

Honduras Lempira (HNL).

public static Currency Hnl { get; }

Property Value

Currency

Hrk

Croatian Kuna (HRK).

public static Currency Hrk { get; }

Property Value

Currency

Htg

Haiti Gourde (HTG).

public static Currency Htg { get; }

Property Value

Currency

Huf

Hungarian Forint (HUF).

public static Currency Huf { get; }

Property Value

Currency

Idr

Indonesian Rupiah (IDR).

public static Currency Idr { get; }

Property Value

Currency

Ils

Israeli New Shekel (ILS).

public static Currency Ils { get; }

Property Value

Currency

Inr

Indian Rupees (INR).

public static Currency Inr { get; }

Property Value

Currency

Iqd

Iraqi Dinar (IQD).

public static Currency Iqd { get; }

Property Value

Currency

Irr

Iranian Rial (IRR).

public static Currency Irr { get; }

Property Value

Currency

IsKnown

true when Code is one of KnownCodes.

public bool IsKnown { get; }

Property Value

bool

Remarks

false is not an error. It means the server sent something newer than the table this library shipped with, and the code is still in Code to be read, logged, or sent back in a filter.

Isk

Icelandic Krona (ISK).

public static Currency Isk { get; }

Property Value

Currency

Jmd

Jamaican Dollar (JMD).

public static Currency Jmd { get; }

Property Value

Currency

Jod

Jordanian Dinar (JOD).

public static Currency Jod { get; }

Property Value

Currency

Jpy

Japanese Yen (JPY).

public static Currency Jpy { get; }

Property Value

Currency

Kes

Kenyan Shilling (KES).

public static Currency Kes { get; }

Property Value

Currency

Kgs

Kyrgyzstan Som (KGS).

public static Currency Kgs { get; }

Property Value

Currency

Khr

Cambodian Riel (KHR).

public static Currency Khr { get; }

Property Value

Currency

Kmf

Comoro Franc (KMF).

public static Currency Kmf { get; }

Property Value

Currency

KnownCodes

Every code the reference API reported for this type when the fixture was captured — 179 of them.

public static IReadOnlySet<string> KnownCodes { get; }

Property Value

IReadOnlySet<string>

Kpw

North Korean Won (KPW).

public static Currency Kpw { get; }

Property Value

Currency

Krw

Korean Won (KRW).

public static Currency Krw { get; }

Property Value

Currency

Kwd

Kuwaiti Dinar (KWD).

public static Currency Kwd { get; }

Property Value

Currency

Kyd

Cayman Islands Dollar (KYD).

public static Currency Kyd { get; }

Property Value

Currency

Kzt

Kazakhstan Tenge (KZT).

public static Currency Kzt { get; }

Property Value

Currency

Lak

Lao Liberation Kip (LAK).

public static Currency Lak { get; }

Property Value

Currency

Lbp

Lebanese Pound (LBP).

public static Currency Lbp { get; }

Property Value

Currency

Lkr

Sri Lankan Rupee (LKR).

public static Currency Lkr { get; }

Property Value

Currency

Lrd

Liberian Dollar (LRD).

public static Currency Lrd { get; }

Property Value

Currency

Lsl

Lesotho Loti (LSL).

public static Currency Lsl { get; }

Property Value

Currency

Ltl

Lithuanian Litas (LTL).

public static Currency Ltl { get; }

Property Value

Currency

Lyd

Libyan Dinar (LYD).

public static Currency Lyd { get; }

Property Value

Currency

Mad

Moroccan Dirham (MAD).

public static Currency Mad { get; }

Property Value

Currency

Mdl

Moldovan Leu (MDL).

public static Currency Mdl { get; }

Property Value

Currency

Mga

Malagasy Ariary (MGA).

public static Currency Mga { get; }

Property Value

Currency

Mkd

Macedonian Denar (MKD).

public static Currency Mkd { get; }

Property Value

Currency

Mmk

Myanmar Kyat (MMK).

public static Currency Mmk { get; }

Property Value

Currency

Mnt

Mongolian Tugrik (MNT).

public static Currency Mnt { get; }

Property Value

Currency

Mop

Macau Pataca (MOP).

public static Currency Mop { get; }

Property Value

Currency

Mro

Mauritanian Ouguiya (MRO).

public static Currency Mro { get; }

Property Value

Currency

Mur

Mauritius Rupee (MUR).

public static Currency Mur { get; }

Property Value

Currency

Mvr

Maldivian Rufiyaa (MVR).

public static Currency Mvr { get; }

Property Value

Currency

Mwk

Malawi Kwacha (MWK).

public static Currency Mwk { get; }

Property Value

Currency

Mxn

Mexican Nuevo Peso (MXN).

public static Currency Mxn { get; }

Property Value

Currency

Mxv

Mexican Unidad de Inversion (UDI) (MXV).

public static Currency Mxv { get; }

Property Value

Currency

Myr

Malaysian Ringgit (MYR).

public static Currency Myr { get; }

Property Value

Currency

Mzn

Mozambique Metical (MZN).

public static Currency Mzn { get; }

Property Value

Currency

Nad

Namibian Dollar (NAD).

public static Currency Nad { get; }

Property Value

Currency

Ngn

Nigerian Naira (NGN).

public static Currency Ngn { get; }

Property Value

Currency

Nio

Nicaraguan Cordoba Oro (NIO).

public static Currency Nio { get; }

Property Value

Currency

Nok

Norwegian Krone (NOK).

public static Currency Nok { get; }

Property Value

Currency

Npr

Nepalese Rupee (NPR).

public static Currency Npr { get; }

Property Value

Currency

Nzd

New Zealand Dollar (NZD).

public static Currency Nzd { get; }

Property Value

Currency

Omr

Omani Rial (OMR).

public static Currency Omr { get; }

Property Value

Currency

Pab

Panama Balboa (PAB).

public static Currency Pab { get; }

Property Value

Currency

Pen

Peruvian Nuevo Sol (PEN).

public static Currency Pen { get; }

Property Value

Currency

Pgk

Papua New Guinea Kina (PGK).

public static Currency Pgk { get; }

Property Value

Currency

Php

Philippines Peso (PHP).

public static Currency Php { get; }

Property Value

Currency

Pkr

Pakistan Rupee (PKR).

public static Currency Pkr { get; }

Property Value

Currency

Pln

Polish Złoty (New) (PLN).

public static Currency Pln { get; }

Property Value

Currency

Pyg

Paraguay Guarani (PYG).

public static Currency Pyg { get; }

Property Value

Currency

Qar

Qatar Rial (QAR).

public static Currency Qar { get; }

Property Value

Currency

Ron

Romanian Leu (New) (RON).

public static Currency Ron { get; }

Property Value

Currency

Rsd

Serbian Dinars (RSD).

public static Currency Rsd { get; }

Property Value

Currency

Rub

Russian Ruble (New) (RUB).

public static Currency Rub { get; }

Property Value

Currency

Rwf

Rwandan Franc (RWF).

public static Currency Rwf { get; }

Property Value

Currency

Sar

Saudi Arabian Riyal (SAR).

public static Currency Sar { get; }

Property Value

Currency

Sbd

Solomon Islands Dollar (SBD).

public static Currency Sbd { get; }

Property Value

Currency

Scr

Seychelles Rupee (SCR).

public static Currency Scr { get; }

Property Value

Currency

Sdd

Sudanese Dinar (SDD).

public static Currency Sdd { get; }

Property Value

Currency

Sdg

Sudanese Pound (SDG).

public static Currency Sdg { get; }

Property Value

Currency

Sek

Swedish Kroner (SEK).

public static Currency Sek { get; }

Property Value

Currency

Sgd

Singapore Dollar (SGD).

public static Currency Sgd { get; }

Property Value

Currency

Shp

St. Helena Pounds (SHP).

public static Currency Shp { get; }

Property Value

Currency

Sll

Sierra Leone (SLL).

public static Currency Sll { get; }

Property Value

Currency

Sos

Somalia Shilling (SOS).

public static Currency Sos { get; }

Property Value

Currency

Srd

Surinam Dollar (SRD).

public static Currency Srd { get; }

Property Value

Currency

Std

Sao Tome and Principe Dobra (STD).

public static Currency Std { get; }

Property Value

Currency

Svc

El Salvador Colon (SVC).

public static Currency Svc { get; }

Property Value

Currency

Syp

Syrian Pound (SYP).

public static Currency Syp { get; }

Property Value

Currency

Szl

Swaziland Lilangeni (SZL).

public static Currency Szl { get; }

Property Value

Currency

Thb

Thai Baht (THB).

public static Currency Thb { get; }

Property Value

Currency

Tjs

Tajikistani Somoni (TJS).

public static Currency Tjs { get; }

Property Value

Currency

Tmm

Turkmenistan Manat (TMM).

public static Currency Tmm { get; }

Property Value

Currency

Tnd

Tunisian Dinar (TND).

public static Currency Tnd { get; }

Property Value

Currency

Top

Tonga Pa`anga (TOP).

public static Currency Top { get; }

Property Value

Currency

Try

Turkish Lira (New) (TRY).

public static Currency Try { get; }

Property Value

Currency

Ttd

Trinidad and Tobago Dollar (TTD).

public static Currency Ttd { get; }

Property Value

Currency

Twd

Taiwan Dollar (TWD).

public static Currency Twd { get; }

Property Value

Currency

Tzs

Tanzanian Shilling (TZS).

public static Currency Tzs { get; }

Property Value

Currency

Uah

Ukrainian Hryvnia (UAH).

public static Currency Uah { get; }

Property Value

Currency

Ugx

Ugandan Shilling (UGX).

public static Currency Ugx { get; }

Property Value

Currency

Usd

US Dollar (USD).

public static Currency Usd { get; }

Property Value

Currency

Usx

US Cents (USX).

public static Currency Usx { get; }

Property Value

Currency

Uyi

Uruguay Peso (Index Linked) (UYI).

public static Currency Uyi { get; }

Property Value

Currency

Uyu

Uruguayan Peso (UYU).

public static Currency Uyu { get; }

Property Value

Currency

Uyw

Uruguayan Unidad Previsional (Pension Unit) (UYW).

public static Currency Uyw { get; }

Property Value

Currency

Uzs

Uzbekistan Sum (UZS).

public static Currency Uzs { get; }

Property Value

Currency

Vef

Venezuala Bolivares Fuertes (VEF).

public static Currency Vef { get; }

Property Value

Currency

Ves

Venezuela Sovereign Bolivar (VES).

public static Currency Ves { get; }

Property Value

Currency

Vnd

Vietnamese Dong (VND).

public static Currency Vnd { get; }

Property Value

Currency

Vuv

Vanuatu Vatu (VUV).

public static Currency Vuv { get; }

Property Value

Currency

Wst

Samoan Tala (WST).

public static Currency Wst { get; }

Property Value

Currency

Xaf

CFA Franc (BEAC) (XAF).

public static Currency Xaf { get; }

Property Value

Currency

Xcd

Caribbean Dollar (XCD).

public static Currency Xcd { get; }

Property Value

Currency

Xdr

International Monetary Fund (XDR).

public static Currency Xdr { get; }

Property Value

Currency

Xfu

UIC-Franc (XFU).

public static Currency Xfu { get; }

Property Value

Currency

Xof

CFA Franc (BCEAO) (XOF).

public static Currency Xof { get; }

Property Value

Currency

Xpf

CFP Franc (XPF).

public static Currency Xpf { get; }

Property Value

Currency

Xts

Codes for testing purposes (XTS).

public static Currency Xts { get; }

Property Value

Currency

Xxx

Codes for transactions/no currencies involved (XXX).

public static Currency Xxx { get; }

Property Value

Currency

Yer

North Yemen Rial (YER).

public static Currency Yer { get; }

Property Value

Currency

Zac

South African Cents (ZAC).

public static Currency Zac { get; }

Property Value

Currency

Zar

South African Rand (ZAR).

public static Currency Zar { get; }

Property Value

Currency

Zmk

Zambian Kwacha (ZMK).

public static Currency Zmk { get; }

Property Value

Currency

Zmw

Zambian New Kwacha (ZMW).

public static Currency Zmw { get; }

Property Value

Currency

Zrn

New Zaire (ZRN).

public static Currency Zrn { get; }

Property Value

Currency

Zwd

Zimbabwe Dollar (ZWD).

public static Currency Zwd { get; }

Property Value

Currency

Zwg

Zimbabwe Gold (ZWG).

public static Currency Zwg { get; }

Property Value

Currency

Zwl

Zimbabwean Dollar (ZWL).

public static Currency Zwl { get; }

Property Value

Currency

Methods

From(string?)

Reads a wire code, mapping null and the empty string to default — the absence of a value.

public static Currency From(string? code)

Parameters

code string

The wire code, or null.

Returns

Currency

The value.

ToString()

The wire code, or the empty string when this names no value.

public override string ToString()

Returns

string

The wire code.