futurefeader commited on
Commit
734419a
·
verified ·
1 Parent(s): b2b126b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +72 -0
README.md CHANGED
@@ -1,3 +1,75 @@
1
  ---
2
  license: apache-2.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
  ---
4
+
5
+ > **Languages:** [简体中文](README_ZH.md) · [English](README.md)
6
+
7
+ # dojo_forex_kline — FX Daily Bars
8
+
9
+ ## Overview
10
+
11
+ Daily OHLC and amplitude for major currency pairs. Used to convert revenue, profit, and other filing amounts into a **single currency** when report currency and listing/analysis currency differ.
12
+
13
+ Typical case: regional revenue in **HKD** in [dojo_main_income](https://huggingface.co/datasets/AlphaDojo/dojo_main_income) while analysis targets **USD** — apply `HKDUSD` (or equivalent) at the report date.
14
+
15
+ ## Intended Use: Cross-Currency Revenue Breakdown
16
+
17
+ [dojo_main_income](https://huggingface.co/datasets/AlphaDojo/dojo_main_income) region slices (`mainop_type = 3`) and [dojo_fin_indicators](https://huggingface.co/datasets/AlphaDojo/dojo_fin_indicators) `currency` store amounts in **original report currency**. This dataset is needed when:
18
+
19
+ | Scenario | Description |
20
+ |----------|-------------|
21
+ | Listing market ≠ report currency | e.g. HKD regional revenue vs USD analysis |
22
+ | Cross-region mix | Normalize CNY / HKD / USD segments before computing mix % |
23
+ | Valuation alignment | Market cap and price are in trading currency; revenue mix needs the same unit |
24
+
25
+ ### Conversion Flow (reference)
26
+
27
+ 1. Read segment revenue and `currency` from `dojo_main_income`.
28
+ 2. Determine target currency from listing market in `dojo_stock_info`.
29
+ 3. Fetch FX rate for `report_date` from this dataset (e.g. `HKDUSD`, `USDCNY`).
30
+ 4. Convert `main_business_income` and recompute `mbi_ratio`.
31
+
32
+ ### Example
33
+
34
+ ```
35
+ Filing: Region "Hong Kong" = HKD 1.0B (currency: HKD)
36
+ Target: USD presentation
37
+
38
+ FX on report_date: HKD-USD close → HKD 1.0B × rate ≈ USD X.XB
39
+ ```
40
+
41
+ Use `close` vs `open` and period-end vs filing date consistently in your own pipeline.
42
+
43
+ ## Files
44
+
45
+ | File | Description |
46
+ |------|-------------|
47
+ | `data.parquet` | FX daily bars |
48
+
49
+ ## Key Fields
50
+
51
+ | Field | Description |
52
+ |-------|-------------|
53
+ | `symbol` | Currency pair (e.g. `HKDUSD`, `USDCNY`) |
54
+ | `bar_time` | Trade date |
55
+ | `open` / `close` / `high` / `low` | OHLC; `close` is the usual conversion reference |
56
+ | `amplitude` | Daily amplitude |
57
+
58
+ ## Scale (reference)
59
+
60
+ ~**1k** rows (few pairs × limited date window).
61
+
62
+ ## Comparison with dojo_stock_kline
63
+
64
+ | Aspect | dojo_stock_kline | dojo_forex_kline |
65
+ |--------|------------------|------------------|
66
+ | Underlying | Equities | Currency pairs |
67
+ | Fields | vol, adjustment, dividends/splits | amplitude, no volume |
68
+ | Primary use | Price history | Cross-currency filing amounts |
69
+
70
+ ## Related Datasets
71
+
72
+ - [dojo_main_income](https://huggingface.co/datasets/AlphaDojo/dojo_main_income) — revenue segments to convert
73
+ - [dojo_fin_indicators](https://huggingface.co/datasets/AlphaDojo/dojo_fin_indicators) — `currency`, total revenue and profit
74
+ - [dojo_stock_info](https://huggingface.co/datasets/AlphaDojo/dojo_stock_info) — listing market
75
+ - [dojo_quote](https://huggingface.co/datasets/AlphaDojo/dojo_quote) — quote currency