Commit e4f5463
fix: resolve duplicate field names in Candle model causing lowercase OHLCV fields to be dropped
The OpenAPI codegen mapped both lowercase (o,h,l,c,v) and uppercase (O,H,L,C,V)
JSON properties to the same Python attribute names using aliases. In Python, each
redefinition clobbers the previous attribute, so only the uppercase-alias versions
survived.
Fix: give each uppercase field a unique Python attribute name (open_raw, high_raw,
low_raw, close_raw, volume_raw) with alias= to preserve the JSON key mapping.
This matches the naming convention used in DetailedCandlestick and the original
Candlestick model before the v1.0.3 API key shortening.
Co-Authored-By: kutay <kutaybuy@gmail.com>1 parent d576ed1 commit e4f5463
1 file changed
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments