Currency Pairs

Standardized currency pairs build for storing exchange rates following ISO 4217.

Semantic Contract

Definitions

ColumnDescription
base_currency_idReference to Currencies.
quote_currency_idReference to Currencies.

Sample & Implementation

A list of Currency Pairs
idbase_currency_idquote_currency_id
112
213
314
432
534
624
CREATE TABLE IF NOT EXISTS currency_pairs (
    id INTEGER PRIMARY KEY,
    base_currency_id INTEGER NOT NULL,
    quote_currency_id INTEGER NOT NULL,
    FOREIGN KEY (base_currency_id) REFERENCES currencies(id),
    FOREIGN KEY (quote_currency_id) REFERENCES currencies(id)
)

Data Format

Field

Type

Dependencies

On this page

Star us on GitHub

If you enjoy this content and find it useful, give us a star on GitHub to show your support and stay updated with our latest improvements.